diff --git a/app/models/concerns/balance.rb b/app/models/concerns/balance.rb index 651a439417..af70eacce5 100644 --- a/app/models/concerns/balance.rb +++ b/app/models/concerns/balance.rb @@ -9,7 +9,7 @@ module Balance # Branches by the OrderBalance abstraction def outstanding_balance - OrderBalance.new(self) + @order_balance ||= OrderBalance.new(self) end # Returns the order balance by considering the total as money owed to the order distributor aka.