[Fix] Payment request not working

This commit is contained in:
Rohit Waghchaure
2018-10-03 15:55:51 +05:30
parent 183972f58f
commit 210f4984f7
3 changed files with 10 additions and 8 deletions

View File

@@ -211,8 +211,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
},
make_payment_request: function() {
const me = this;
const payment_request_type = (in_list(['Sales Order', 'Sales Invoice'], me.frm.doc.doctype))
var me = this;
const payment_request_type = (in_list(['Sales Order', 'Sales Invoice'], this.frm.doc.doctype))
? "Inward" : "Outward";
frappe.call({