Add EUR currency support for international transactions
All checks were successful
Deploy to VPS / deploy (push) Successful in 50s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-04-07 20:29:37 -06:00
parent 4da00750a8
commit efe6d88286
7 changed files with 134 additions and 1 deletions

View File

@@ -194,7 +194,8 @@ def create_transaction(
session.refresh(tx)
# Send push notification
symbol = "" if tx.currency == Currency.CRC else tx.currency.value
symbols = {Currency.CRC: "", Currency.USD: "$", Currency.EUR: ""}
symbol = symbols.get(tx.currency, tx.currency.value)
amount_str = f"{symbol}{tx.amount:,.0f}" if tx.currency == Currency.CRC else f"{symbol}{tx.amount:,.2f}"
is_deposit = tx.transaction_type == TransactionType.DEPOSITO
send_push_to_all(