Merge pull request #17222 from Anurag810/pay_fix

fix: handle for party type member in payment entry(v11)
This commit is contained in:
rohitwaghchaure
2019-04-13 00:10:30 +05:30
committed by GitHub

View File

@@ -536,9 +536,13 @@ class PaymentEntry(AccountsController):
@frappe.whitelist()
def get_outstanding_reference_documents(args):
if isinstance(args, string_types):
args = json.loads(args)
if args.get('party_type') == 'Member':
return
# confirm that Supplier is not blocked
if args.get('party_type') == 'Supplier':
supplier_status = get_supplier_block_status(args['party'])