mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 23:53:21 +00:00
fix: handle BOM price list currency update (#58638)
This commit is contained in:
@@ -699,7 +699,9 @@ erpnext.bom.BomController = class BomController extends erpnext.TransactionContr
|
||||
get_bom_material_detail(doc, cdt, cdn, secondary_items);
|
||||
}
|
||||
|
||||
buying_price_list(doc) {
|
||||
buying_price_list() {
|
||||
const doc = this.frm.doc;
|
||||
|
||||
if (doc.rm_cost_as_per !== "Price List" && doc.buying_price_list) {
|
||||
this.frm.set_value("buying_price_list", "");
|
||||
return;
|
||||
@@ -710,8 +712,8 @@ erpnext.bom.BomController = class BomController extends erpnext.TransactionContr
|
||||
}
|
||||
}
|
||||
|
||||
plc_conversion_rate(doc) {
|
||||
if (!this.in_apply_price_list && doc.rm_cost_as_per === "Price List") {
|
||||
plc_conversion_rate() {
|
||||
if (!this.in_apply_price_list && this.frm.doc.rm_cost_as_per === "Price List") {
|
||||
this.apply_price_list(null, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user