diff --git a/erpnext/accounts/report/general_ledger/general_ledger.py b/erpnext/accounts/report/general_ledger/general_ledger.py index d18c27ae346f..456e983c4885 100644 --- a/erpnext/accounts/report/general_ledger/general_ledger.py +++ b/erpnext/accounts/report/general_ledger/general_ledger.py @@ -492,8 +492,16 @@ def get_result_as_list(data, filters): d['balance'] = balance d['account_currency'] = filters.account_currency - d['bill_no'] = inv_details.get(d.get('against_voucher'), '') + if d.get('against_voucher'): + bill_no = [] + for against in d.get('against_voucher').split(','): + against = against.strip() + if against and against in inv_details: + bill_no.append(inv_details[against]) + d['bill_no'] = ', '.join(bill_no) if bill_no else '' + else: + d['bill_no'] = '' return data def get_supplier_invoice_details():