From 429664515552af2884eff44e18c58def9ea526a3 Mon Sep 17 00:00:00 2001 From: Maxim Andreev Date: Sun, 19 May 2024 12:34:20 +0300 Subject: [PATCH] ibdds: starting from 2023 no need to report in thousand --- investments/ibdds/ibdds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/investments/ibdds/ibdds.py b/investments/ibdds/ibdds.py index 6fa3752..d0cc6cd 100644 --- a/investments/ibdds/ibdds.py +++ b/investments/ibdds/ibdds.py @@ -45,7 +45,7 @@ def parse_reports(activity_report_filepath: str) -> InteractiveBrokersCashReport def dds_specific_round(source_amount: Money) -> Money: - return (source_amount / 1000).round(3) + return source_amount.round(2) def show_report(cash: List[Cash]): @@ -71,7 +71,7 @@ def show_report(cash: List[Cash]): withdrawals_amount = dds_specific_round(withdrawals_amount) report: List[List[Any]] = [ - [f'{currency.name} {currency.iso_numeric_code}', 'Сумма в тысячах единиц'], + [f'{currency.name} {currency.iso_numeric_code}', 'Сумма'], ['Остаток денежных средств на счете на начало отчетного периода', begin_amount], ['Зачислено денежных средств за отчетный период', deposits_amount], ['Списано денежных средств за отчетный период', abs(withdrawals_amount)],