mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
fix: consider negative stock qty in stock reco
(cherry picked from commit 15272d0e56)
This commit is contained in:
committed by
Mergify
parent
4fd99ed763
commit
603f737c99
@@ -336,6 +336,7 @@ class StockReconciliation(StockController):
|
|||||||
posting_date=self.posting_date,
|
posting_date=self.posting_date,
|
||||||
posting_time=self.posting_time,
|
posting_time=self.posting_time,
|
||||||
for_stock_levels=True,
|
for_stock_levels=True,
|
||||||
|
consider_negative_batches=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
total_current_qty += current_qty
|
total_current_qty += current_qty
|
||||||
@@ -1101,6 +1102,7 @@ class StockReconciliation(StockController):
|
|||||||
posting_time=doc.posting_time,
|
posting_time=doc.posting_time,
|
||||||
ignore_voucher_nos=[doc.voucher_no],
|
ignore_voucher_nos=[doc.voucher_no],
|
||||||
for_stock_levels=True,
|
for_stock_levels=True,
|
||||||
|
consider_negative_batches=True,
|
||||||
)
|
)
|
||||||
or 0
|
or 0
|
||||||
) * -1
|
) * -1
|
||||||
|
|||||||
Reference in New Issue
Block a user