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:
|
||||
return True
|
||||
|
||||
if all(
|
||||
(not d.batch_no or (d.batch_no and flt(d.qty) == flt(d.current_qty))) for d in self.items
|
||||
if any(
|
||||
((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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user