[Fixes] POS amount calculation issue

This commit is contained in:
Rohit Waghchaure 2016-07-06 16:09:26 +05:30
parent 018b6a4bdd
commit 53bea82514
2 changed files with 2 additions and 1 deletions

View File

@ -741,6 +741,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
var me = this;
frappe.confirm(__("Do you really want to submit the invoice?"), function () {
me.change_status();
frappe.msgprint(__("Sales invoice submitted sucessfully."))
})
},

View File

@ -131,7 +131,7 @@ erpnext.payments = erpnext.stock.StockController.extend({
bind_amount_change_event: function(){
var me = this;
me.selected_mode.change(function(){
me.payment_val = $(this).val() || 0.0;
me.payment_val = flt($(this).val()) || 0.0;
me.selected_mode.val(format_number(me.payment_val, 2))
me.idx = me.selected_mode.attr("idx")
me.update_paid_amount()