Fix issue after merging hotfix into staging-fixes

This commit is contained in:
Rohit Waghchaure 2018-10-04 16:33:43 +05:30
parent 7d929c508f
commit 18678696db
2 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,12 @@ def get_data(filters):
filters_data.append(["against_voucher", "in", assets])
company_finance_book = erpnext.get_default_finance_book(filters.get("company"))
if (not filters.get('finance_book') or (filters.get('finance_book') == company_finance_book)):
filters_data.append(["finance_book", "in", ['', filters.get('finance_book')]])
elif filters.get("finance_book"):
filters_data.append(["finance_book", "=", filters.get('finance_book')])
gl_entries = frappe.get_all('GL Entry',
filters= filters_data,
fields = ["against_voucher", "debit_in_account_currency as debit", "voucher_no", "posting_date"],

View File

@ -7,7 +7,7 @@ def get_data():
'Purchase Invoice': 'purchase_receipt',
'Asset': 'purchase_receipt',
'Landed Cost Voucher': 'receipt_document',
'Auto Repeat': 'reference_document'
'Auto Repeat': 'reference_document',
'Purchase Receipt': 'return_against'
},
'internal_links': {