I have made a number of custom fields in the Sales Line table. These fields reflect on sales invoice page. These fields result in modifying the value of business central's out of the box fields i.e., Total Amount Incl. Tax, Tax Amount and Total Amount Exc. Tax on sales invoice page. However, when the invoice is posted, the updated value in the Business Central's out of the box field of posted sales invoice isn't updated.
I want to know the reason behind this and what can be done to address this issue?