Change the default sort in Closing Stock
This commit is contained in:
parent
ce01a4d1f3
commit
e06c8b484e
@ -154,7 +154,7 @@ def build_report(date_: date, cost_centre_id: uuid.UUID, db: Session) -> List[sc
|
|||||||
or_(Voucher.voucher_type != VoucherType.CLOSING_STOCK, Voucher.date != date_),
|
or_(Voucher.voucher_type != VoucherType.CLOSING_STOCK, Voucher.date != date_),
|
||||||
)
|
)
|
||||||
.group_by(StockKeepingUnit, Product, ProductGroup)
|
.group_by(StockKeepingUnit, Product, ProductGroup)
|
||||||
.order_by(amount_sum.desc())
|
.order_by(ProductGroup.name, Product.name, StockKeepingUnit.units)
|
||||||
).all()
|
).all()
|
||||||
|
|
||||||
physical_list = (
|
physical_list = (
|
||||||
|
Loading…
Reference in New Issue
Block a user