To verride the payment amount defaulted by Avalara when creating payments for Sales orders.
According to Field Level Help on Payment Amount:
Important: Be aware that now this field is always defaulted from the sales order TOTAL field, but this might change in future. Make sure you create a workflow to control this field’s value to be the TOTAL less the sum of deposits associated with the order.”
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter name
- Record Type: Select Transaction
- Sub Record Type: Select Sales Order
- Execute as Admin: Enter Checkmark
- Released Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging Checkbox: Enter Checkmark
- Event Definition:
- On Create: Enter Checkmark
- On View or Update: Enter Checkmark
- Click Save
- Right top corner: Click Fields
- Click New Workflow Field
- Label: Enter Label
- Type: Select Currency
- Click Save
- Click State 1
- Bottom right corner: Click New Action
- Click Set Field Value
- Basic Information:
- Trigger On: Select Before Record Submit
- Parameters:
- Field: Select Payment Amount (Workflow)
- Value:
- Select From Field
- Record (Join Field): Select Current Record
- Field: Select Payment Session Amount
- Click Save
- Click State 1
- Bottom right corner: Click New Action
- Click Set Field Value
- Basic Information:
- Trigger On: Select Before Record Submit
- Parameters:
- Field: Select Payment Session Amount
- Value:
- Select From Field
- Record (Join Field): Select Current Record
- Field: Select Payment Amount (Workflow)
- Click Save
- Click Save