ADR-056: Money
Estado
Accepted — 2026-08-23
Decisión
- V1: USD only (
Organization.currency = USD). Otra moneda = amendment. - Persistencia: entero en cents (
amountCentsbigint/int) oDECIMAL(19,4)— se elige cents (integer) en Prisma para evitar float. - Dominio: VO
Money(cents + currency). NuncanumberIEEE para sumar AR. - JSON API:
{ "amountCents": 840000, "currency": "USD" }y opcionalamountDisplay: "$8,400.00"generado en presentation. - IA: si extrae "$8,400" → cents; si no puede parsear → no inventar (ADR-019).
- Dashboard: sumas en cents, redondeo half-up solo al display.
DOC-021 usa “amount” en prosa; implementación = cents.