package purchase import ( "github.com/shopspring/decimal" "srm/global" ) // PurchaseProductConfirm 采购单产品确认表 type PurchaseProductConfirm struct { global.GVA_MODEL_INT PurchaseNumber string `json:"purchaseNumber" gorm:"type:varchar(255);comment:采购单编号"` ProductId string `json:"productId" gorm:"type:varchar(255);comment:产品编码"` ProductName string `json:"productName" gorm:"type:varchar(255);comment:产品名"` Principal string `json:"principal" gorm:"type:varchar(255);comment:收货人"` Unit string `json:"unit" gorm:"type:varchar(255);comment:计量单位"` Specs string `json:"specs" gorm:"type:varchar(255);comment:规格"` Type string `json:"type" gorm:"type:varchar(255);comment:型号"` Amount decimal.Decimal `json:"amount" gorm:"type:decimal(12,4);not null;comment:采购数量"` OverReceiveAmount decimal.Decimal `json:"overReceiveAmount" gorm:"type:decimal(12,4);comment:已收货数量"` NotReceiveAmount decimal.Decimal `json:"notReceiveAmount" gorm:"type:decimal(12,4);comment:未收货数量"` NowReceiveAmount decimal.Decimal `json:"nowReceiveAmount" gorm:"-"` //本次收货数量 SurplusReceiveAmount decimal.Decimal `json:"surplusReceiveAmount" gorm:"type:decimal(12,4);comment:剩余收货数量"` } func (PurchaseProductConfirm) TableName() string { return "srm_purchase_product_confirm" }