|
@@ -73,7 +73,7 @@ func (sql Unit) ConsiderPersNumbers() *UnitScope {
|
|
|
return sql.Scope().ConsiderPersNumbers()
|
|
|
}
|
|
|
func (sql *UnitScope) ConsiderPersNumbers() *UnitScope {
|
|
|
- return sql.Group("PersNumber").Order("id", "DESC")
|
|
|
+ return sql.Group("PersNumber").Order("CreateOrderDate", "DESC")
|
|
|
}
|
|
|
|
|
|
func (sql Unit) ConsiderUniqueCodes() *UnitScope {
|