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(
|
p, u = db.execute(
|
||||||
select(Product.name, StockKeepingUnit.units)
|
select(Product.name, StockKeepingUnit.units)
|
||||||
.join(Product.skus)
|
.join(Product.skus)
|
||||||
.where(StockKeepingUnit.product_id == item.sku_id)
|
.where(StockKeepingUnit.id == item.sku_id)
|
||||||
).one()
|
).one()
|
||||||
list_.append(
|
list_.append(
|
||||||
schemas.NonContractPurchase(
|
schemas.NonContractPurchase(
|
||||||
|
Loading…
Reference in New Issue
Block a user