[Fixes] POS amount calculation issue
This commit is contained in:
parent
018b6a4bdd
commit
53bea82514
@ -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."))
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user