mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
It now uses `order.pre_discount_total` to make any calculation, that means you can call it multiple time and you will still get the same adjustment amount, included_tax and tax adjustment when needed. This is assuming nothing changed on the order.