diff options
Diffstat (limited to 'python/report_ops/cash.py')
| -rw-r--r-- | python/report_ops/cash.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/report_ops/cash.py b/python/report_ops/cash.py index f851d8d1..552058a8 100644 --- a/python/report_ops/cash.py +++ b/python/report_ops/cash.py @@ -12,7 +12,7 @@ from serenitas.ops.trade_dataclasses import Ccy from serenitas.ops.dataclass_mapping import Fund from .misc import Custodian, get_dir -from .wires import Report +from .base import Report @dataclass @@ -24,6 +24,7 @@ class CashReport(Report, table_name="cash_balances"): currency_code: Ccy balance: float custodian: ClassVar[Custodian] = field(metadata={"insert": False}) + _registry: ClassVar = field(default={}, metadata={"insert": False}) def __init_subclass__(cls, custodian): cls.custodian = custodian @@ -144,8 +145,8 @@ class ScotiaCashReport(CashReport, custodian="SCOTIA"): return cls( date=prev_business_day(d["knowledge_date"]), fund=d["fund"], - account_name=d["Account"], - account_number=d["Account Name"], + account_name=d["Account Name"], + account_number=d["Account"], currency_code="USD", balance=d["Opening Bal."], ) |
