Add Print Detail
This commit is contained in:
@@ -224,3 +224,16 @@ type PaymentTypeDistribution struct {
|
||||
PaymentType string
|
||||
Count int
|
||||
}
|
||||
|
||||
type OrderPrintDetail struct {
|
||||
ID int64 `gorm:"column:id"`
|
||||
PartnerName string `gorm:"column:partner_name"`
|
||||
OrderID string `gorm:"column:order_id"`
|
||||
VisitDate time.Time `gorm:"column:visit_date"`
|
||||
PaymentType string `gorm:"column:payment_type"`
|
||||
OrderItems []OrderItem `gorm:"foreignKey:OrderID;constraint:OnDelete:CASCADE;"`
|
||||
Source string `gorm:"column:source"`
|
||||
TicketStatus string `gorm:"column:ticket_status"`
|
||||
Total float64 `gorm:"column:total"`
|
||||
Fee float64 `gorm:"column:fee"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user