- Migration 011: closing_day/due_day em accounts + tabela credit_bills - CreditBillService: cria/atualiza fatura corrente on-demand no GET /accounts - Widget FATURA ATUAL no dashboard com total e botão PAGAR - AccountsView: campos closing_day/due_day para contas credit + painel fatura - Dashboard: current_bills lista faturas não pagas de todos os cartões Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
23 lines
801 B
Go
23 lines
801 B
Go
package model
|
|
|
|
type CreditBill struct {
|
|
ID int `json:"id"`
|
|
AccountID int `json:"account_id"`
|
|
AccountName string `json:"account_name"`
|
|
PeriodStart string `json:"period_start"`
|
|
PeriodEnd string `json:"period_end"`
|
|
DueDate string `json:"due_date"`
|
|
Total float64 `json:"total"`
|
|
Paid bool `json:"paid"`
|
|
PaidAt *string `json:"paid_at,omitempty"`
|
|
PaymentAccountID *int `json:"payment_account_id,omitempty"`
|
|
}
|
|
|
|
type CreditBillInput struct {
|
|
AccountID int `json:"account_id"`
|
|
PeriodStart string `json:"period_start"`
|
|
PeriodEnd string `json:"period_end"`
|
|
DueDate string `json:"due_date"`
|
|
PaymentAccountID *int `json:"payment_account_id,omitempty"`
|
|
}
|