@@ -1833,7 +1833,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
if (data && data.apply_rule_on_other_items && JSON.parse(data.apply_rule_on_other_items)) {
|
||||
fields.push(frappe.scrub(data.pricing_rule_for))
|
||||
me.frm.doc.items.forEach(d => {
|
||||
if (in_list(JSON.parse(data.apply_rule_on_other_items), d[data.apply_rule_on])) {
|
||||
if (JSON.parse(data.apply_rule_on_other_items).includes(d[data.apply_rule_on])) {
|
||||
for(var k in data) {
|
||||
|
||||
if (in_list(fields, k) && data[k] && (data.price_or_product_discount === 'Price' || k === 'pricing_rules')) {
|
||||
|
||||
Reference in New Issue
Block a user