I have a script report that is extending the file
apps/erpnext/erpnext/public/js/financial_statements.js. So all the columns in my report and everything is quite messed up and it doesn’t get changed from the python file of my report.
This is how the report looks:
I figured out that it was because of this code in
In the case of my report, the
formatter function on line 5 is also receiving
undefined value for the parameter called
data.account_name and at the line 16 at
So making those conditions a little bit robust by checking for the existence of
data like so
data && column.fieldname=="account" at line 6 for example and also on line 16 is solving the problem.
And the report looks good: