feat: add recursion qty field in promotional scheme

(cherry picked from commit 7075c50b85)
This commit is contained in:
Gursheen Anand
2024-03-12 13:16:39 +05:30
committed by Mergify
parent 9ce68deff5
commit 5f4b23d4af
4 changed files with 30 additions and 5 deletions

View File

@@ -1816,8 +1816,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
let items = [];
me.frm.doc.items.forEach(d => {
// if same item was added a free item through a different pricing rule, keep it
if(d.item_code != item.remove_free_item || !d.is_free_item || removed_pricing_rule?.includes(d.pricing_rules)) {
// if same item was added as free item through a different pricing rule, keep it
if(d.item_code != item.remove_free_item || !d.is_free_item || !removed_pricing_rule?.includes(d.pricing_rules)) {
items.push(d);
}
});