From 2dc2d671da6891639213372d9f77dd3b27e0c304 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 19 Feb 2016 13:00:55 +0530 Subject: [PATCH] [clean-up] --- .../accounts/doctype/payment_request/payment_request.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py index 0115072a98..8418567e5f 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.py +++ b/erpnext/accounts/doctype/payment_request/payment_request.py @@ -47,14 +47,10 @@ class PaymentRequest(Document): def on_cancel(self): self.set_as_cancelled() - - def on_update_after_submit(self): - pass - - def set_status(self): - pass def get_payment_url(self): + """ This is blanck method to trigger hooks call from individual payment gateway app + which will return respective payment gateway""" pass def make_invoice(self): @@ -161,6 +157,7 @@ def make_payment_request(**args): args = frappe._dict(args) ref_doc = frappe.get_doc(args.dt, args.dn) + gateway_account = get_gateway_details(args) base_rounded_total, rounded_total = get_amount(ref_doc, args.dt)