Pro-rata refund calculation
How Litium calculates pro-rata refund amounts for order returns.
This example shows a calculation of the pro-rata refund amount for an order including delivery cost, handling fee and order discount, that is fully returned in one part:

This example shows a calculation of the pro-rata refund amounts for an order including delivery cost, handling fee and order discount, that is fully returned in multiple parts:

The SRO calculations are based on the following principles:
- Quantities are given negative values.
- Row discounts keep their positive values.
- Order discounts are given negative values.
- Delivery costs and fees are given negative values.
- Unit and campaign prices keep their positive values
Payment information rows will remain positive for backward compatibility reasons.