Skip to content

Commit

Permalink
Renamed Date field to Execution Date (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey <[email protected]>
Co-authored-by: Ruslan Sayfutdinov <[email protected]>
  • Loading branch information
3 people committed Jun 4, 2024
1 parent f6d3f08 commit 9ab394c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cgt_calc/parsers/mssb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
]

COLUMNS_WITHDRAWAL: Final[list[str]] = [
"Date",
"Execution Date",
"Order Number",
"Plan",
"Type",
Expand Down Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/mssb/Withdrawals Report.csv
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9ab394c

Please sign in to comment.