fix: handle for party type member in payment entry

This commit is contained in:
Anurag Mishra 2019-04-12 15:03:46 +05:30
parent 54ba900e72
commit 95714297a4

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'])