fix: unset discount amount from coupon discounts

This commit is contained in:
Gursheen Anand
2023-12-19 15:56:59 +05:30
parent 857843bc29
commit 87e8dd0d63

View File

@@ -428,6 +428,11 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
})
}
}
coupon_code() {
this.frm.set_value("discount_amount", 0);
this.frm.set_value("additional_discount_percentage", 0);
}
};
frappe.ui.form.on(cur_frm.doctype,"project", function(frm) {