Skip to content

Commit

Permalink
Merge pull request #2796 from bcgov/fix/prashanth-hde-effective-dt-fi…
Browse files Browse the repository at this point in the history
…x-2769

FIX: HDE Transactions effective date fix in spreadsheet 2769
  • Loading branch information
AlexZorkin authored Jan 13, 2024
2 parents c64962f + 2682f87 commit 9cf00cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/services/SpreadSheetBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def add_credit_transfers(self, credit_trades, user):
worksheet.write(row_index, 8, credit_trade.status.friendly_name)

# If the trade doesn't have an effective date but meets certain other criteria, write the update timestamp.
if credit_trade.update_timestamp:
if credit_trade.trade_effective_date:
worksheet.write(row_index, 9, credit_trade.trade_effective_date, date_format)
elif credit_trade.update_timestamp:
# Conditions for using the update timestamp.
approved_status = credit_trade.status.status == "Approved"
valid_trade_type = credit_trade.type.the_type in ["Credit Reduction", "Credit Validation"]
Expand Down

0 comments on commit 9cf00cd

Please sign in to comment.