mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: negative stock error while making stock reconciliation (#40016)
fix: negative stock error while making stock reco
This commit is contained in:
@@ -909,8 +909,9 @@ class StockReconciliation(StockController):
|
|||||||
if allow_negative_stock:
|
if allow_negative_stock:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if all(
|
if any(
|
||||||
(not d.batch_no or (d.batch_no and flt(d.qty) == flt(d.current_qty))) for d in self.items
|
((d.serial_and_batch_bundle or d.batch_no) and flt(d.qty) == flt(d.current_qty))
|
||||||
|
for d in self.items
|
||||||
):
|
):
|
||||||
allow_negative_stock = True
|
allow_negative_stock = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user