I just found a bug with calculation option “Use Plain Sum” after my client report a small discrepancy in cents.
Their use case is that they use a delivery company that takes 15% commission.
So I have two rules:
- New Order Added Rule
- Adds calculation if delivery entity is not null
- Ticket Total Changed Rule
- Refreshes calculation if delivery entity is not null
In the calculation type I selected Use Plain Sum because commission is calculated on the ticket amount before tax or any other calculations (discounts, promos etc.) they provide to their customers.
However, with the User Plain Sum option enabled, when you add an order tag that has a price, calculation seems to exclude order tag prices entirely even though the Total Amount has changed.
Though discrepancy is small, over time this becomes a huge issue as it adds up.