Browse Source

Fixed ConsiderPersNumbers()

Dmitry Yu Okunev 4 years ago
parent
commit
aaed618d14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      unit.go

+ 1 - 1
unit.go

@@ -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 {