Merge pull request #17220 from Anurag810/payment-entry-fix

fix: handle for party type member in payment entry (v12)
This commit is contained in:
Nabin Hait 2019-04-15 10:06:08 +05:30 committed by GitHub
commit 9fd3f10b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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