Condition – Auto populate carriage charges on a sales order when the transaction total is less than 150
Solution:
We can add a custom transaction line to the line items as carriage charges through a workflow.
In the workflow, give the conditions as workflow triggered only when the sales order is created, transaction total is less than 150, and sales order record is saved.
Add a new action button to the State1 of the workflow and, select Line item for the action button.
In the Parameter, under field subtab – Select the fields for the item line
Name – Select the service item to be added in the line item
Amount – In the formula column, provide the formula to calculate the amount for the item (total*10/100)
Assumptions:
The carriage cost auto-population is based on a certain percentage of the total value of the sales order
This is not related to the Shipping cost
Considering only the numerical value of the transaction not the currency value