Fix group_order for stock order
This commit is contained in:
parent
f77f2fcbfd
commit
9d588f70cc
1 changed files with 1 additions and 1 deletions
|
@ -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....
|
||||
|
|
Loading…
Reference in a new issue