[enhance] Payment order (#15056)

This commit is contained in:
rohitwaghchaure
2018-09-11 17:40:37 +05:30
committed by Nabin Hait
parent 76b31deda5
commit 713cfc786f
25 changed files with 2817 additions and 766 deletions

View File

@@ -144,6 +144,21 @@ $.extend(erpnext.utils, {
}
},
make_bank_account: function(doctype, docname) {
frappe.call({
method: "erpnext.accounts.doctype.bank_account.bank_account.make_bank_account",
args: {
doctype: doctype,
docname: docname
},
freeze: true,
callback: function(r) {
var doclist = frappe.model.sync(r.message);
frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
}
})
},
make_subscription: function(doctype, docname) {
frappe.call({
method: "frappe.desk.doctype.auto_repeat.auto_repeat.make_auto_repeat",