KeyError: 'cess_account' on running 2b matching tool
Opened this issue · 0 comments
ERPN v14, reconciler branch-14.
Traceback (most recent call last):
File "apps/frappe/frappe/core/doctype/prepared_report/prepared_report.py", line 43, in run_background
result = generate_report_result(report=report, filters=instance.filters, user=instance.owner)
File "apps/frappe/frappe/init.py", line 789, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "apps/frappe/frappe/desk/query_report.py", line 90, in generate_report_result
res = get_report_result(report, filters) or []
File "apps/frappe/frappe/desk/query_report.py", line 71, in get_report_result
res = report.execute_script_report(filters)
File "apps/frappe/frappe/core/doctype/report/report.py", line 142, in execute_script_report
res = self.execute_module(filters)
File "apps/frappe/frappe/core/doctype/report/report.py", line 159, in execute_module
return frappe.get_attr(method_name)(frappe._dict(filters))
File "apps/reconciler/reconciler/reconciler/report/cr_gstr_2b_vs_pr_gstin_matching_tool/cr_gstr_2b_vs_pr_gstin_matching_tool.py", line 14, in execute
return MatchingTool(filters).run()
File "apps/reconciler/reconciler/reconciler/report/cr_gstr_2b_vs_pr_gstin_matching_tool/cr_gstr_2b_vs_pr_gstin_matching_tool.py", line 22, in run
self.get_data()
File "apps/reconciler/reconciler/reconciler/report/cr_gstr_2b_vs_pr_gstin_matching_tool/cr_gstr_2b_vs_pr_gstin_matching_tool.py", line 136, in get_data
gstin_wise_data[entry['supplier_gstin']][2] += get_tax_details(entry['name'])['total_tax_amount']
File "apps/reconciler/reconciler/reconciler/doctype/cd_gstr_2b_data_upload_tool/cd_gstr_2b_data_upload_tool.py", line 395, in get_tax_details
if gst_accounts[account_head_fields[idx]][-1] and not type(gst_accounts[account_head_fields[idx]][-1]) == str:
KeyError: 'cess_account'