fix: can't multiply sequence by non-int of type 'float
This commit is contained in:
parent
1bd83e69ee
commit
33f984c7af
@ -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', this.value);
|
frappe.model.set_value(frm.doc.doctype, frm.doc.name, 'additional_discount_percentage', parseFloat(this.value));
|
||||||
me.hide_discount_control(this.value);
|
me.hide_discount_control(this.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -948,4 +948,4 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
show ? this.$component.removeClass('d-none') : this.$component.addClass('d-none');
|
show ? this.$component.removeClass('d-none') : this.$component.addClass('d-none');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user