Use a single “Recalculate Pricing” microflow. At the start of the flow, normalize all numeric fields by treating empty values as zero. Then calculate the discount, net price, additional charges, GST, and final price in separate activities to keep the logic clear and make debugging easier.
A Decision activity should be used to determine whether the discount is calculated from DiscountPercent or whether the manually entered DiscountValue is used.
Empty or null decimal values should always be handled by defaulting them to 0 before any arithmetic is performed, using variables or inline conditions.
In most scenarios, GST is best calculated after adding the applicable extra charges to the net price, unless specific business or tax rules require a different approach.
Hello Priyanka,
(if $Pricing/Freight != empty then $Pricing/Freight else 0) +
(if $Pricing/PackingForwarding != empty then $Pricing/PackingForwarding else 0) +
(if $Pricing/InsuranceValue != empty then $Pricing/InsuranceValue else 0)
Additionally, For the calculation part you can create a sub microflow so that would easy to debug in future if any issue persist.
Regards,
Guna