Merge pull request #7150 from coopdevs/use-order-balance-object

Feature-toggle all remaining parts of the app where the order balance is shown
This commit is contained in:
Pau Pérez Fabregat
2021-03-30 15:58:12 +02:00
committed by GitHub
20 changed files with 318 additions and 121 deletions

View File

@@ -6,7 +6,7 @@ module OpenFoodNetwork
end
def balance
-completed_orders.to_a.sum(&:outstanding_balance)
-completed_orders.to_a.sum(&:old_outstanding_balance)
end
private