perf: process_gl_map causing performance issues in the reposting

(cherry picked from commit a96fa55704)

# Conflicts:
#	erpnext/stock/doctype/stock_entry/stock_entry.py
This commit is contained in:
Rohit Waghchaure
2025-08-02 12:16:45 +05:30
committed by Mergify
parent 2c44e4ec2c
commit af7dc363e1
4 changed files with 9 additions and 3 deletions

View File

@@ -663,7 +663,9 @@ class StockController(AccountsController):
).format(wh, self.company)
)
return process_gl_map(gl_list, precision=precision)
return process_gl_map(
gl_list, precision=precision, from_repost=frappe.flags.through_repost_item_valuation
)
def get_debit_field_precision(self):
if not frappe.flags.debit_field_precision: