fix: check for pricing rules on item
(cherry picked from commit ecd83b12abb19e0e41a50e914a89b320e1f577eb) (cherry picked from commit 32d96423795c99ed2cc46cf1cc04fbf636dac5c7)
This commit is contained in:
parent
3d7e87185c
commit
5084b9bd4b
@ -1509,6 +1509,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
|
|
||||||
remove_pricing_rule_for_item(item) {
|
remove_pricing_rule_for_item(item) {
|
||||||
|
if (item.pricing_rules){
|
||||||
let me = this;
|
let me = this;
|
||||||
return this.frm.call({
|
return this.frm.call({
|
||||||
method: "erpnext.accounts.doctype.pricing_rule.pricing_rule.remove_pricing_rule_for_item",
|
method: "erpnext.accounts.doctype.pricing_rule.pricing_rule.remove_pricing_rule_for_item",
|
||||||
@ -1535,6 +1536,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply_pricing_rule(item, calculate_taxes_and_totals) {
|
apply_pricing_rule(item, calculate_taxes_and_totals) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user