fix: negative stock error while making stock reconciliation (#40016)
fix: negative stock error while making stock reco
This commit is contained in:
parent
864d7ae04c
commit
da184d709b
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user