POS Make Payment dialog box fix #1441
This commit is contained in:
parent
d5886f36af
commit
ed8a845e83
@ -274,7 +274,7 @@ erpnext.POS = Class.extend({
|
||||
if(!me.frm.doc[me.party.toLowerCase()] && ((me.frm.doctype == "Quotation" &&
|
||||
me.frm.doc.quotation_to == "Customer")
|
||||
|| me.frm.doctype != "Quotation")) {
|
||||
msgprint("Please select {0} first.", [me.party]);
|
||||
msgprint(__("Please select {0} first.", [me.party]));
|
||||
return;
|
||||
}
|
||||
else
|
||||
@ -569,8 +569,9 @@ erpnext.POS = Class.extend({
|
||||
frappe.call({
|
||||
method: 'erpnext.accounts.doctype.sales_invoice.pos.get_mode_of_payment',
|
||||
callback: function(r) {
|
||||
if(!r.message.length) {
|
||||
if(!r.message) {
|
||||
msgprint(__("Please add to Modes of Payment from Setup."))
|
||||
return;
|
||||
}
|
||||
for (x=0; x<=r.message.length - 1; x++) {
|
||||
mode_of_payment.push(r.message[x].name);
|
||||
|
Loading…
Reference in New Issue
Block a user