mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-24 05:47:15 +00:00
fix(stock): keep mapped cost center in stock entry items (#59286)
(cherry picked from commit 7f608f31eb)
This commit is contained in:
committed by
Mergify
parent
3b9c74024a
commit
091fcfee7e
@@ -1342,7 +1342,10 @@ erpnext.stock.StockEntry = class StockEntry extends erpnext.stock.StockControlle
|
||||
this.frm.trigger("toggle_display_account_head");
|
||||
|
||||
erpnext.accounts.dimensions.update_dimension(this.frm, this.frm.doctype);
|
||||
this.set_default_account("cost_center", "cost_center");
|
||||
|
||||
if (!this.frm.doc.__onload?.load_after_mapping) {
|
||||
this.set_default_account("cost_center", "cost_center");
|
||||
}
|
||||
|
||||
this.frm.refresh_fields("items");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user