Fix group_order for stock order

This commit is contained in:
Patrick Gansterer 2017-10-29 20:44:05 +01:00
parent f77f2fcbfd
commit 9d588f70cc
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class GroupOrder < ActiveRecord::Base
# Generate some data for the javascript methods in ordering view
def load_data
data = {}
data[:account_balance] = ordergroup.account_balance
data[:account_balance] = ordergroup.nil? ? BigDecimal.new('+Infinity') : ordergroup.account_balance
data[:available_funds] = ordergroup.nil? ? BigDecimal.new('+Infinity') : ordergroup.get_available_funds(self)
# load prices and other stuff....