diff --git a/cgt_calc/parsers/mssb.py b/cgt_calc/parsers/mssb.py index d91b2738..a2c6c055 100644 --- a/cgt_calc/parsers/mssb.py +++ b/cgt_calc/parsers/mssb.py @@ -31,7 +31,7 @@ ] COLUMNS_WITHDRAWAL: Final[list[str]] = [ - "Date", + "Execution Date", "Order Number", "Plan", "Type", @@ -168,7 +168,7 @@ def _init_from_withdrawal_report( action = ActionType.SELL transaction = BrokerTransaction( - date=datetime.datetime.strptime(row["Date"], "%d-%b-%Y").date(), + date=datetime.datetime.strptime(row["Execution Date"], "%d-%b-%Y").date(), action=action, symbol=KNOWN_SYMBOL_DICT[row["Plan"]], description=row["Plan"], diff --git a/tests/test_data/mssb/Withdrawals Report.csv b/tests/test_data/mssb/Withdrawals Report.csv index c6a3c3f5..96dc195a 100644 --- a/tests/test_data/mssb/Withdrawals Report.csv +++ b/tests/test_data/mssb/Withdrawals Report.csv @@ -1,4 +1,4 @@ -Date,Order Number,Plan,Type,Order Status,Price,Quantity,Net Amount,Net Share Proceeds,Tax Payment Method +Execution Date,Order Number,Plan,Type,Order Status,Price,Quantity,Net Amount,Net Share Proceeds,Tax Payment Method 01-Apr-2021,ORDER_NUMBER_HIDDEN,GSU Class C,Sale,Complete,"$2,110.00",-2,"$4,219.95",0,N/A 02-Apr-2021,ORDER_NUMBER_HIDDEN,Cash,Sale,Complete,$1.00,"-4,218.95","$4,218.95",0,N/A 09-Feb-2023,ORDER_NUMBER_HIDDEN,Cash,Sale,Complete,$1.00,"-3,170.93","$3,170.93",0,N/A