01 Refactor currency handling in client models and calculations: Update models to store values in GTQ instead of centavos, adjust cost basis calculations, and modify API responses and frontend currency formatting to reflect the new structure.
This commit is contained in:
parent
8c3faeec3f
commit
8d442b7c6f
5 changed files with 16 additions and 69 deletions
|
|
@ -199,7 +199,7 @@ async def api_export_transactions(
|
|||
writer.writerow([
|
||||
tx.created_at.isoformat(),
|
||||
tx.amount_sats,
|
||||
tx.amount_fiat / 100, # Convert centavos to GTQ for CSV export
|
||||
tx.amount_fiat, # Amount already in GTQ
|
||||
tx.exchange_rate,
|
||||
tx.transaction_type,
|
||||
tx.status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue