fix: rate changed on changing of the qty
This commit is contained in:
@@ -1249,10 +1249,10 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
this.frm.fields_dict.items.grid.toggle_enable("conversion_factor",
|
this.frm.fields_dict.items.grid.toggle_enable("conversion_factor",
|
||||||
((item.uom != item.stock_uom) && !frappe.meta.get_docfield(cur_frm.fields_dict.items.grid.doctype, "conversion_factor").read_only)? true: false);
|
((item.uom != item.stock_uom) && !frappe.meta.get_docfield(cur_frm.fields_dict.items.grid.doctype, "conversion_factor").read_only)? true: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qty(doc, cdt, cdn) {
|
qty(doc, cdt, cdn) {
|
||||||
|
if (!this.frm.doc.__onload?.load_after_mapping) {
|
||||||
let item = frappe.get_doc(cdt, cdn);
|
let item = frappe.get_doc(cdt, cdn);
|
||||||
// item.pricing_rules = ''
|
// item.pricing_rules = ''
|
||||||
frappe.run_serially([
|
frappe.run_serially([
|
||||||
@@ -1263,6 +1263,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
() => this.apply_pricing_rule(item, true)
|
() => this.apply_pricing_rule(item, true)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stock_qty(doc, cdt, cdn) {
|
stock_qty(doc, cdt, cdn) {
|
||||||
let item = frappe.get_doc(cdt, cdn);
|
let item = frappe.get_doc(cdt, cdn);
|
||||||
|
|||||||
Reference in New Issue
Block a user