POS fix: setting discount amount

This commit is contained in:
Nabin Hait 2015-01-21 17:50:09 +05:30
parent f19b1e0c6b
commit 59de1e23bc

View File

@ -114,7 +114,7 @@ erpnext.POS = Class.extend({
});
this.wrapper.find('input.discount-amount').on("change", function() {
frappe.model.set_value(me.frm.doctype, me.frm.docname, "discount_amount", this.value);
frappe.model.set_value(me.frm.doctype, me.frm.docname, "discount_amount", flt(this.value));
});
this.call_function("remove-items", function() {me.remove_selected_items();});