From 53bea825144e81e03e5a5792c16c9aad00d26cad Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 6 Jul 2016 16:09:26 +0530 Subject: [PATCH] [Fixes] POS amount calculation issue --- erpnext/accounts/page/pos/pos.js | 1 + erpnext/public/js/payment/payments.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 6d3ef3dc0d..a1a502aea4 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -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.")) }) }, diff --git a/erpnext/public/js/payment/payments.js b/erpnext/public/js/payment/payments.js index 4cd12f1f50..dc0b02638d 100644 --- a/erpnext/public/js/payment/payments.js +++ b/erpnext/public/js/payment/payments.js @@ -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()