| | |
| | | ) |
| | | |
| | | type AddInvoice struct { |
| | | 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 |
| | | Subject string `gorm:"subject" json:"subject"` // 主题 |
| | | InvoiceStatusId int `gorm:"invoice_status_id" json:"invoiceStatusId"` // 发票状态id |
| | | SourceType constvar.InvoiceSourceType `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细单2服务合同) |
| | | SourceId int `gorm:"source_id" json:"sourceId"` // 源单id |
| | | TaxpayerIdNumber string `gorm:"taxpayer_id_number" json:"taxpayerIdNumber"` // 纳税识别号 |
| | | InvoiceNumber string `gorm:"invoice_number" json:"invoiceNumber"` // 发票号码 |
| | | InvoiceDate string `gorm:"invoice_date" json:"invoiceDate"` // 开票日期 |
| | | CourierNumber string `gorm:"courier_number" json:"courierNumber"` // 物流单号 |
| | | CourierCompanyId int `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司 |
| | | Products []model.Product `json:"products"` //发票对应产品,从相应源单里获取 |
| | | 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 |
| | | Subject string `gorm:"subject" json:"subject"` // 主题 |
| | | InvoiceStatusId int `gorm:"invoice_status_id" json:"invoiceStatusId"` // 发票状态id |
| | | SourceType constvar.InvoiceSourceType `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细单2服务合同) |
| | | SourceId int `gorm:"source_id" json:"sourceId"` // 源单id |
| | | TaxpayerIdNumber string `gorm:"taxpayer_id_number" json:"taxpayerIdNumber"` // 纳税识别号 |
| | | InvoiceNumber string `gorm:"invoice_number" json:"invoiceNumber"` // 发票号码 |
| | | InvoiceDate string `gorm:"invoice_date" json:"invoiceDate"` // 开票日期 |
| | | 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"` |
| | | 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 |
| | | Subject string `gorm:"subject" json:"subject"` // 主题 |
| | | InvoiceStatusId int `gorm:"invoice_status_id" json:"invoiceStatusId"` // 发票状态id |
| | | SourceType int `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细单2服务合同) |
| | | SourceId int `gorm:"source_id" json:"sourceId"` // 源单id |
| | | TaxpayerIdNumber string `gorm:"taxpayer_id_number" json:"taxpayerIdNumber"` // 纳税识别号 |
| | | InvoiceNumber string `gorm:"invoice_number" json:"invoiceNumber"` // 发票号码 |
| | | InvoiceDate int `gorm:"invoice_date" json:"invoiceDate"` // 开票日期 |
| | | CourierNumber string `gorm:"courier_number" json:"courierNumber"` // 物流单号 |
| | | CourierCompanyId int `gorm:"courier_company_id" json:"courierCompanyId"` // 物流公司 |
| | | Products []model.Product `json:"products"` //发票对应产品,从相应源单里获取 |
| | | 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 |
| | | Subject string `gorm:"subject" json:"subject"` // 主题 |
| | | InvoiceStatusId int `gorm:"invoice_status_id" json:"invoiceStatusId"` // 发票状态id |
| | | SourceType int `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细单2服务合同) |
| | | SourceId int `gorm:"source_id" json:"sourceId"` // 源单id |
| | | TaxpayerIdNumber string `gorm:"taxpayer_id_number" json:"taxpayerIdNumber"` // 纳税识别号 |
| | | InvoiceNumber string `gorm:"invoice_number" json:"invoiceNumber"` // 发票号码 |
| | | InvoiceDate int `gorm:"invoice_date" json:"invoiceDate"` // 开票日期 |
| | | 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 { |