I created new custom line field for “Sales Invoice” page via extension using Visual Studio code. I am able to publish, see the new line field in “Sales Invoice” item section(line) and able to save data.
When posted, the custom field not appear in “Posted Sales Invoice”.
How to achieve this? Please help.
Please find attached screenshots from ‘Sales Invoice’ and ‘Posted Sales Invoice’
Posted Sales Invoice Line and Sales Invoice Line are based upon two different tables: Sales Invoice Line and Sales Line respectively. It seems you have added the field only in Sales Line table and Sales Invoice Subform/ page and not added in Sales Invoice Line table and Posted Sales Invoice Subform.
You will have to add it in both the table and Pages.