Merge pull request #34711 from vishdha/reserved_pos_qty

fix: use stock qty to calculate POS reserved stock
This commit is contained in:
rohitwaghchaure
2023-04-03 21:14:36 +05:30
committed by GitHub

View File

@@ -674,7 +674,7 @@ def get_bin_qty(item_code, warehouse):
def get_pos_reserved_qty(item_code, warehouse):
reserved_qty = frappe.db.sql(
"""select sum(p_item.qty) as qty
"""select sum(p_item.stock_qty) as qty
from `tabPOS Invoice` p, `tabPOS Invoice Item` p_item
where p.name = p_item.parent
and ifnull(p.consolidated_invoice, '') = ''