[Fix] Orders not creating from the POS for new customer if customer name is based on naming series (#8933)
* [Fix] Orders not creating from the POS for new customer if customer name is based on naming series * [fix] Disabled price field in POS, if Allow User to Edit Rate field is disabled in POS profile * added customer name in the search bar of the customer * search customer by phone number and email id in the POS
This commit is contained in:
committed by
Nabin Hait
parent
99b734bfd7
commit
d2be55b2e0
@@ -606,7 +606,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
this.frm.doc.change_amount = 0.0;
|
||||
this.frm.doc.base_change_amount = 0.0;
|
||||
if(this.frm.doc.paid_amount > this.frm.doc.grand_total && !this.frm.doc.is_return) {
|
||||
var payment_types = $.map(cur_frm.doc.payments, function(d) { return d.type });
|
||||
var payment_types = $.map(this.frm.doc.payments, function(d) { return d.type });
|
||||
if (in_list(payment_types, 'Cash')) {
|
||||
this.frm.doc.change_amount = flt(this.frm.doc.paid_amount - this.frm.doc.grand_total +
|
||||
this.frm.doc.write_off_amount, precision("change_amount"));
|
||||
|
||||
Reference in New Issue
Block a user