mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-09 23:39:28 +00:00
fix: handle BOM price list currency update (#58638)
(cherry picked from commit db52e465d0)
Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com>
This commit is contained in:
@@ -685,7 +685,9 @@ erpnext.bom.BomController = class BomController extends erpnext.TransactionContr
|
|||||||
get_bom_material_detail(doc, cdt, cdn, secondary_items);
|
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) {
|
if (doc.rm_cost_as_per !== "Price List" && doc.buying_price_list) {
|
||||||
this.frm.set_value("buying_price_list", "");
|
this.frm.set_value("buying_price_list", "");
|
||||||
return;
|
return;
|
||||||
@@ -696,8 +698,8 @@ erpnext.bom.BomController = class BomController extends erpnext.TransactionContr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plc_conversion_rate(doc) {
|
plc_conversion_rate() {
|
||||||
if (!this.in_apply_price_list && doc.rm_cost_as_per === "Price List") {
|
if (!this.in_apply_price_list && this.frm.doc.rm_cost_as_per === "Price List") {
|
||||||
this.apply_price_list(null, true);
|
this.apply_price_list(null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user