| | |
| | | ) |
| | | |
| | | type AddInvoice struct { |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:发票编号"` //发票编号 |
| | | ClientId int `gorm:"client_id" json:"clientId"` // 客户id |
| | | InvoiceTypeId int `gorm:"invoice_type_id" json:"invoiceTypeId"` // 发票类型id |
| | | PrincipalId int `gorm:"principal_id" json:"principalId"` // 销售负责人id |
| | |
| | | CourierNumber string `gorm:"courier_number" json:"courierNumber"` // 物流单号 |
| | | CourierCompanyId int `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司 |
| | | Products []model.Product `json:"products"` //发票对应产品,从相应源单里获取 |
| | | CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"` |
| | | } |
| | | |
| | | type UpdateInvoice struct { |
| | | Id int `json:"id" binding:"required"` |
| | | Number string `json:"number" gorm:"column:number;type:varchar(255);comment:发票编号"` //发票编号 |
| | | ClientId int `gorm:"client_id" json:"clientId"` // 客户id |
| | | InvoiceTypeId int `gorm:"invoice_type_id" json:"invoiceTypeId"` // 发票类型id |
| | | PrincipalId int `gorm:"principal_id" json:"principalId"` // 销售负责人id |
| | |
| | | CourierNumber string `gorm:"courier_number" json:"courierNumber"` // 物流单号 |
| | | CourierCompanyId int `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司 |
| | | Products []model.Product `json:"products"` //发票对应产品,从相应源单里获取 |
| | | CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"` |
| | | } |
| | | |
| | | type GetInvoiceList struct { |