You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rohitwaghchaure
I updated to v13.13.0 (version-13) after that I am getting the error unsupported operand type(s) for +=: 'int' and 'NoneType' at Consolidated financial statement report.
How can I resolve it?
Traceback (most recent call last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 68, in application
response = frappe.api.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle
data = execute_cmd(cmd)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/init.py", line 1199, in call
return fn(*args, **newargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/init.py", line 615, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/query_report.py", line 236, in run
result = generate_report_result(report, filters, user, custom_columns)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/query_report.py", line 78, in generate_report_result
res = report.execute_script_report(filters)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/report/report.py", line 125, in execute_script_report
res = self.execute_module(filters)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/report/report.py", line 142, in execute_module
return frappe.get_attr(method_name)(frappe._dict(filters))
File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py", line 50, in execute
data, message, chart, report_summary = get_balance_sheet_data(fiscal_year, companies, columns, filters)
File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py", line 78, in get_balance_sheet_data
message, opening_balance = prepare_companywise_opening_balance(asset, liability, equity, companies)
File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.py", line 118, in prepare_companywise_opening_balance
opening_value += get_opening_balance(account_name, data, company)
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 13.13.0 Release Notes
Features & Enhancements
Fixes