aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/views.py')
-rw-r--r--python/Dawn/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 2cf8ee5b..97873eaf 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -341,6 +341,8 @@ def trade_manage(tradeid, kind):
url_for('trade_manage', tradeid=tradeid, kind=kind))
else:
if kind == 'cds':
+ if trade.swap_type != 'CD_INDEX':
+ trade.account_code = 'BAC'
trade.cashaccount = trade.fcm_account.cash_account
session.commit()
if form.upload_globeop.data: