| | |
| | | AmountUnInvoiced decimal.Decimal `gorm:"column:amount_not_invoiced;type:decimal(12,2);comment:未开票金额" json:"amountUnInvoiced"` // 未开票金额 |
| | | AmountTotal decimal.Decimal `gorm:"column:amount_total;type:decimal(12,2);comment:价税合计" json:"amountTotal"` // 价税合计 |
| | | Products []*Product `json:"products" gorm:"many2many:service_contract_product;"` |
| | | gorm.Model `json:"-"` |
| | | CrmModel |
| | | } |
| | | |
| | | ServiceContractSearch struct { |
| | |
| | | } |
| | | ) |
| | | |
| | | func (ServiceContract) TableName() string { |
| | | func (slf *ServiceContract) TableName() string { |
| | | return "service_contract" |
| | | } |
| | | |