mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 15:47:06 +00:00
feat: add recursion qty field in promotional scheme
(cherry picked from commit 7075c50b85)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user