AL
AL copied to clipboard
Report 1306 - Standard Sales - Invoice (TWO Triggers)
Report 1306 - Standard Sales - Invoice We need 2 triggers,
- Filter the record
- Replace the net amount with parent amount.
In Line - OnPreDataItem() right at the end of the script we need trigger which takes (Header,Line) as parameters and both are VAR so that we can filter the items. Please find the screen shot below

In Line – OnAfterGetRecord() right after if clause we need trigger which takes (Header,Line) as parameters and both are VAR so that we can replace the net amount with parent amount. Please find the screen shot below
