mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user