saveinmed/marketplace/src/stores
Tiago Yamamoto 285f586371 fix: cart price display showing cents as reais (R19 instead of R.19)
Root cause: Cart.tsx used formatCurrency(819) -> '819,00' instead of formatCents(819) -> 'R$ 8,19'

Changes:
- Cart.tsx: Replace formatCurrency with formatCents at all 5 price display points
- Cart.tsx: Add debug logging (logPrice) to trace price values
- cartStore.ts: Add debug logging for addItem, updateQuantity, etc.
- cartStore.ts: Document unitPrice as CENTS in interface
- cartStore.test.ts: Add 7 new price conversion tests for cents handling

All 95 tests pass.
2025-12-26 23:08:55 -03:00
..
cartStore.test.ts fix: cart price display showing cents as reais (R19 instead of R.19) 2025-12-26 23:08:55 -03:00
cartStore.ts fix: cart price display showing cents as reais (R19 instead of R.19) 2025-12-26 23:08:55 -03:00