Edit

Share via


Assessable value is incorrect

The assessable value is typically updated automatically based on the transaction value. If the value doesn't appear as expected, you can manually update the assessable value on the UI form. If this method isn't feasible (for example, the control isn't editable, there's no such UI, or it's too tedious to update many lines), you can follow the following mitigation steps together with a code extension to resolve the issue.

Mitigation with a code extension

This section provides guidance on investigating the root cause and adding a code extension, using a purchase order as an example.

  1. Get the table field of the assessable value from UI:

    Go to Accounts payable > Purchase order > All purchase orders. Right-click the Assessable value column. Then, go to Form information > Form Name: PurchTable.

    Screenshot that shows how to get the table field of the assessable value from UI.

    The table field is the AssessableValueTransactionCurrency of the PurchLine_IN table that's extended from the main table PurchLine via table extension framework.

    Screenshot that shows the AssessableValueTransactionCurrency field of the PurchLine_IN table.

  2. Use the Development tools to check the following methods of the main table (the PurchLine table for the purchase order) to ensure they update the assessable value accordingly. You can set breakpoints and debug the process. If an issue occurs, add a code extension to solve the issue.

    • update
    • insert
    • modifiedField

    For example, in PurchLine.modifiedField, there's code logic to update the assessable value. Review and update the code as needed to update the assessable value.

    Screenshot that shows a code logic example about updating the assessable value.