fix: change parseFloat to flt
This commit is contained in:
parent
33f984c7af
commit
3e9f493f15
@ -356,7 +356,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
onchange: function() {
|
onchange: function() {
|
||||||
if (this.value || this.value == 0) {
|
if (this.value || this.value == 0) {
|
||||||
const frm = me.events.get_frm();
|
const frm = me.events.get_frm();
|
||||||
frappe.model.set_value(frm.doc.doctype, frm.doc.name, 'additional_discount_percentage', parseFloat(this.value));
|
frappe.model.set_value(frm.doc.doctype, frm.doc.name, 'additional_discount_percentage', flt(this.value));
|
||||||
me.hide_discount_control(this.value);
|
me.hide_discount_control(this.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user