mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 09:23:09 +00:00
perf: process_gl_map causing performance issues in the reposting
This commit is contained in:
@@ -443,7 +443,7 @@ class PurchaseReceipt(BuyingController):
|
||||
self.make_tax_gl_entries(gl_entries, via_landed_cost_voucher)
|
||||
update_regional_gl_entries(gl_entries, self)
|
||||
|
||||
return process_gl_map(gl_entries)
|
||||
return process_gl_map(gl_entries, from_repost=frappe.flags.through_repost_item_valuation)
|
||||
|
||||
def make_item_gl_entries(self, gl_entries, warehouse_account=None):
|
||||
from erpnext.accounts.doctype.purchase_invoice.purchase_invoice import (
|
||||
|
||||
@@ -1612,7 +1612,7 @@ class StockEntry(StockController):
|
||||
)
|
||||
)
|
||||
|
||||
return process_gl_map(gl_entries)
|
||||
return process_gl_map(gl_entries, from_repost=frappe.flags.through_repost_item_valuation)
|
||||
|
||||
def update_work_order(self):
|
||||
def _validate_work_order(pro_doc):
|
||||
|
||||
Reference in New Issue
Block a user