- create a project
- Create a new extension table for SalesInvoiceTmp table.
- Add new field on SalesInvoiceTmp extension table
- Create new class.
- Expand SalesInvoiceTmp table > Events > Oninserting > Right click and copy event handler method
- Paste it inside the class you created in Step 4.
- Write code inside that that copied method > to assign some value to the new field created.
- Duplicate the report
- Add the field in the design
- Navigate to PrintMgmtDocType Class > Copy Event Handler of GetDefaultReportFormatDelegate
- Paste it in class created in step 4
- Add code so it will direct to new report created in step8
- Duplicate salesInvoiceCOntroller class > Make changes and replace SalesInvoiceReport with new report created.
- Create Extension for SalesInvoiceReport MenuItem and Change Controller property to above class created in step 13
- Build and Deploy the report.
- Navigate to AR > Setup > Form Setup > Print Management > Customer Invoice > Add your new report there
- Open the report and you will see new field added.
Published by
Leave a comment