Fix: Debugging was left in the report

This commit is contained in:
Amritanshu Agrawal 2023-03-24 08:43:54 +05:30
parent b2db7e8f9c
commit 4db26722a3

View File

@ -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")
q = (
list_ = db.execute(
select(
SaleCategory.name,
MenuCategory.name,
@ -99,9 +99,7 @@ def menu_engineering_report(s: date, f: date, db: Session):
ProductVersion.full_name,
)
.order_by(SaleCategory.name, nulls_last(func.sum(Inventory.net).desc()))
)
print(q)
list_ = db.execute(q).all()
).all()
info: list[MeItem] = []
sc_sales: Dict[str, Decimal] = {}
sc_quantity: Dict[str, Decimal] = {}