package model import "time" // ZSPUpstreamInvoice 上游发票表 type ZSPUpstreamInvoice struct { ID uint `gorm:"primaryKey" json:"id"` InvoiceNumber string `gorm:"size:100;uniqueIndex;not null" json:"invoice_number"` ContractNumber string `gorm:"size:100;index" json:"contract_number"` BillOfLading string `gorm:"size:100;index" json:"bill_of_lading"` SupplierName string `gorm:"size:200;not null" json:"supplier_name"` Commodity string `gorm:"size:100" json:"commodity"` Amount float64 `gorm:"type:decimal(16,4);not null" json:"amount"` TaxAmount float64 `gorm:"type:decimal(16,4);default:0" json:"tax_amount"` TotalAmount float64 `gorm:"type:decimal(16,4);not null" json:"total_amount"` Currency string `gorm:"size:10;default:'CNY'" json:"currency"` InvoiceDate time.Time `gorm:"not null" json:"invoice_date"` Status string `gorm:"size:20;default:'pending'" json:"status"` FilePath string `gorm:"size:500" json:"file_path"` Remark string `gorm:"size:500" json:"remark"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` } // ZSPDownstreamInvoice 下游发票表 type ZSPDownstreamInvoice struct { ID uint `gorm:"primaryKey" json:"id"` InvoiceNumber string `gorm:"size:100;uniqueIndex;not null" json:"invoice_number"` ContractNumber string `gorm:"size:100;index" json:"contract_number"` BillOfLading string `gorm:"size:100;index" json:"bill_of_lading"` CustomerName string `gorm:"size:200;not null" json:"customer_name"` Commodity string `gorm:"size:100" json:"commodity"` Amount float64 `gorm:"type:decimal(16,4);not null" json:"amount"` TaxAmount float64 `gorm:"type:decimal(16,4);default:0" json:"tax_amount"` TotalAmount float64 `gorm:"type:decimal(16,4);not null" json:"total_amount"` Currency string `gorm:"size:10;default:'CNY'" json:"currency"` InvoiceDate time.Time `gorm:"not null" json:"invoice_date"` Status string `gorm:"size:20;default:'pending'" json:"status"` FilePath string `gorm:"size:500" json:"file_path"` Remark string `gorm:"size:500" json:"remark"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` } // ZSPFreightMiscInvoice 货代杂费发票表 type ZSPFreightMiscInvoice struct { ID uint `gorm:"primaryKey" json:"id"` InvoiceNumber string `gorm:"size:100;uniqueIndex;not null" json:"invoice_number"` ContractNumber string `gorm:"size:100;index" json:"contract_number"` BillOfLading string `gorm:"size:100;index" json:"bill_of_lading"` CompanyName string `gorm:"size:200;not null" json:"company_name"` ExpenseItem string `gorm:"size:200" json:"expense_item"` Amount float64 `gorm:"type:decimal(16,4);not null" json:"amount"` TaxAmount float64 `gorm:"type:decimal(16,4);default:0" json:"tax_amount"` TotalAmount float64 `gorm:"type:decimal(16,4);not null" json:"total_amount"` Currency string `gorm:"size:10;default:'CNY'" json:"currency"` InvoiceDate time.Time `gorm:"not null" json:"invoice_date"` Status string `gorm:"size:20;default:'pending'" json:"status"` FilePath string `gorm:"size:500" json:"file_path"` Remark string `gorm:"size:500" json:"remark"` CreateTime time.Time `json:"create_time"` UpdateTime time.Time `json:"update_time"` }