Files
carvalho-finances/apps/api/internal/model/pending_bill.go
T
Mlcavalho1andClaude Sonnet 4.6 2b8524dcde feat: #44 fatura de cartão com data futura fica pendente até confirmação
- Nova tabela pending_bill_imports (migration 016)
- ImportHandler.Confirm: quando is_credit_card=true e payment_date > hoje,
  salva como pending em vez de inserir transações
- Novos endpoints: GET /pending-bills, POST /pending-bills/:id/confirm,
  DELETE /pending-bills/:id
- Dashboard inclui pending_bill_imports no payload
- Frontend: resultado "fatura salva como pendente" no ImportView
- AccountsView exibe widget de faturas pendentes com ações de confirmar/descartar
- dashboard_test: mock de PendingBillRepo + TransactionRepository

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-28 22:26:42 -03:00

11 lines
300 B
Go

package model
type PendingBillImport struct {
ID int `json:"id"`
Filename string `json:"filename"`
PaymentDate string `json:"payment_date"`
Total float64 `json:"total"`
Rows []ImportRow `json:"rows"`
CreatedAt string `json:"created_at"`
}