mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
In this class we properly calculated the balance taking into account the orders in cancellation state so we need to use the new implementation if we don't want to introduce a regression by using `#old_oustanding_balance`. I was initially a bit dubious because this method was checking `order.payments` as well but now I see that was redundant. Is on `payment_total` to take into account whether or not the order is paid or any other payment related details.