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