Fix: Debugging was left in the report
This commit is contained in:
parent
b2db7e8f9c
commit
4db26722a3
@ -52,7 +52,7 @@ def menu_engineering_report(s: date, f: date, db: Session):
|
|||||||
)
|
)
|
||||||
|
|
||||||
day = func.date_trunc("day", Voucher.date - timedelta(minutes=settings.NEW_DAY_OFFSET_MINUTES)).label("day")
|
day = func.date_trunc("day", Voucher.date - timedelta(minutes=settings.NEW_DAY_OFFSET_MINUTES)).label("day")
|
||||||
q = (
|
list_ = db.execute(
|
||||||
select(
|
select(
|
||||||
SaleCategory.name,
|
SaleCategory.name,
|
||||||
MenuCategory.name,
|
MenuCategory.name,
|
||||||
@ -99,9 +99,7 @@ def menu_engineering_report(s: date, f: date, db: Session):
|
|||||||
ProductVersion.full_name,
|
ProductVersion.full_name,
|
||||||
)
|
)
|
||||||
.order_by(SaleCategory.name, nulls_last(func.sum(Inventory.net).desc()))
|
.order_by(SaleCategory.name, nulls_last(func.sum(Inventory.net).desc()))
|
||||||
)
|
).all()
|
||||||
print(q)
|
|
||||||
list_ = db.execute(q).all()
|
|
||||||
info: list[MeItem] = []
|
info: list[MeItem] = []
|
||||||
sc_sales: Dict[str, Decimal] = {}
|
sc_sales: Dict[str, Decimal] = {}
|
||||||
sc_quantity: Dict[str, Decimal] = {}
|
sc_quantity: Dict[str, Decimal] = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user