fix: batch qty calculation performance issue

This commit is contained in:
Rohit Waghchaure
2025-09-05 18:18:55 +05:30
parent 1b73170e8c
commit 1a262483a4
3 changed files with 37 additions and 24 deletions

View File

@@ -1070,7 +1070,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: