aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/cash.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/cash.py')
-rw-r--r--python/report_ops/cash.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/report_ops/cash.py b/python/report_ops/cash.py
index 641ba8aa..3b9dc7a1 100644
--- a/python/report_ops/cash.py
+++ b/python/report_ops/cash.py
@@ -61,7 +61,9 @@ class IAMDeal(Deal, deal_type=DealType.IAM, table_name="iams"):
start_money: float = field(metadata={"globeop": "StartMoney"})
currency: str = field(metadata={"globeop": "Currency"})
fund: Fund = field(metadata={"globeop": "Fund"})
- maturity: datetime.date = None
+ maturity: datetime.date = field(
+ default=None, metadata={"globeop": "ExpirationDate"}
+ )
uploaded: bool = False
is_offset: bool = False
id: int = field(default=None, metadata={"insert": False})
@@ -81,7 +83,6 @@ class IAMDeal(Deal, deal_type=DealType.IAM, table_name="iams"):
def to_globeop(self, action):
obj = super().to_globeop(action)
obj["Deal Type"] = "IamDeal"
- obj["ExpirationDate"] = self.trade_date if action == "UPDATE" else None
obj["CallNoticeIndicator"] = "24H" if action == "NEW" else None
obj["TransactionIndicator"] = "DEPOSIT" if obj["StartMoney"] > 0 else "LOAN"
obj["StartMoney"] = abs(obj["StartMoney"])