Fix: Checking the wrong id
This commit is contained in:
parent
3dc8f0151e
commit
240ecf3fbb
@ -68,7 +68,7 @@ def report(db: Session) -> List[schemas.NonContractPurchase]:
|
||||
p, u = db.execute(
|
||||
select(Product.name, StockKeepingUnit.units)
|
||||
.join(Product.skus)
|
||||
.where(StockKeepingUnit.product_id == item.sku_id)
|
||||
.where(StockKeepingUnit.id == item.sku_id)
|
||||
).one()
|
||||
list_.append(
|
||||
schemas.NonContractPurchase(
|
||||
|
Loading…
Reference in New Issue
Block a user