BE-MiniERP/modules/sales/models/sales_order.go
2025-06-22 23:23:26 +07:00

20 lines
581 B
Go

package models
import "time"
type SalesOrder struct {
ID uint `gorm:"primaryKey" json:"id"`
CustomerID uint `json:"customer_id"`
OrderDate time.Time `json:"order_date"`
Status string `json:"status"`
TotalAmount float64 `json:"total_amount"`
Note string `json:"note"`
PaymentTerms string `json:"payment_terms"`
DueDate time.Time `json:"due_date"`
DPAmount float64 `json:"dp_amount"`
DPPaid float64 `json:"dp_paid"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}