fix: Conside multiple stock entry against a purchase order
This commit is contained in:
parent
9e6abc4948
commit
f2798eab50
@ -535,7 +535,7 @@ class StockEntry(StockController):
|
||||
|
||||
total_allowed = required_qty + (required_qty * (qty_allowance/100))
|
||||
|
||||
if not total_allowed:
|
||||
if not required_qty:
|
||||
frappe.throw(_("Item {0} not found in 'Raw Materials Supplied' table in Purchase Order {1}")
|
||||
.format(se_item.item_code, self.purchase_order))
|
||||
total_supplied = frappe.db.sql("""select sum(transfer_qty)
|
||||
|
Loading…
x
Reference in New Issue
Block a user