add status to expense

This commit is contained in:
2026-05-29 15:44:59 +07:00
parent 1b7bec4f81
commit d26f5c5354
13 changed files with 65 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ type Expense struct {
Receiver string `gorm:"not null;size:255" json:"receiver"`
TransactionDate time.Time `gorm:"type:date;not null" json:"transaction_date"`
CodeNumber string `gorm:"not null;size:50" json:"code_number"`
Status string `gorm:"not null;size:20;default:'draft'" json:"status"`
Description *string `gorm:"type:text" json:"description"`
Tax float64 `gorm:"type:decimal(15,2);not null;default:0" json:"tax"`
Total float64 `gorm:"type:decimal(15,2);not null;default:0" json:"total"`