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.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index fa48f63b..510a0594 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -464,7 +464,14 @@ def trade_manage(tradeid, kind):
save_confirm(trade, old_confirm)
if kind == "cds":
if trade.swap_type != "CD_INDEX":
- trade.account_code = "BAC"
+ if trade.fund == "SERCGMAST":
+ trade.account_code = "BAC"
+ elif trade.fund == "BRINKER":
+ trade.account_code = "BBH"
+ elif trade.fund == "BOWDST":
+ trade.account_code = "BONY"
+ else:
+ raise ValueError("Unknown fund")
trade.cashaccount = trade.fcm_account.cash_account
trade.custodian = trade.fcm_account.custodian
try: