fix: negative stock error while making stock reconciliation (#40016)

fix: negative stock error while making stock reco
This commit is contained in:
rohitwaghchaure 2024-02-22 09:22:58 +05:30 committed by GitHub
parent 864d7ae04c
commit da184d709b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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