Add additional table/fields/data in ERPNext script reports

To add an additional table/text/data into a script report, we can use the variable data_to_be_printed on PY file.

On HTML file, one can get this variable on skip_total_row , I found it when I tried to debug it on google chrome. I have detailed the steps here

Not sure this method is correct, bcs the variable name skip_total_row doesn’t look like designed for this purpose.

It works for us, but if anyone can suggest a better method, please reply on this thread.

On chrome debug, I found this variable. skip_total_row