I was trying to duplicate this report to make another report notify me promotions date but I think there is some issue about writing paythin code as declred above of current pic . Please can any one help me understand
Hello @silocoegypt
If you are planning to duplicate from existing core report: (1) you can either extend it or (2) copy the whole code to the duplicated script report.
This is an example of extending the core report.
def execute(filters=None):
from erpnext.stock.report.stock_balance.stock_balance import execute
columns, data = execute(filters)
return _get_columns(columns), _get_data(data)
Regards,
Ivan
where can I write this code
Hello @silocoegypt
Change the module to point to your custom app, so that the report will appear on your custom app.
Regards,
Ivan