fix: batch qty calculation performance issue

(cherry picked from commit 1a262483a4)
This commit is contained in:
Rohit Waghchaure
2025-09-05 18:18:55 +05:30
committed by Mergify
parent 08cfd00373
commit 921f317423
3 changed files with 37 additions and 24 deletions

View File

@@ -957,7 +957,9 @@ class StockController(AccountsController):
from erpnext.stock.stock_ledger import make_sl_entries
make_sl_entries(sl_entries, allow_negative_stock, via_landed_cost_voucher)
update_batch_qty(self.doctype, self.name, via_landed_cost_voucher=via_landed_cost_voucher)
update_batch_qty(
self.doctype, self.name, self.docstatus, via_landed_cost_voucher=via_landed_cost_voucher
)
def make_gl_entries_on_cancel(self, from_repost=False):
if not from_repost: