| | |
| | | "fmt" |
| | | "github.com/shopspring/decimal" |
| | | "gorm.io/gorm" |
| | | "wms/constvar" |
| | | "wms/pkg/mysqlx" |
| | | ) |
| | | |
| | |
| | | |
| | | LocationProductAmountWithOperation struct { |
| | | //LocationProductAmount LocationProductAmount `json:"locationProductAmount"` |
| | | LocationProductAmountId int `json:"locationProductAmount" gorm:"location_product_amount_id"` |
| | | LocationId int `json:"locationId" gorm:"column:location_id"` |
| | | LocationName string `json:"locationName" gorm:"column:location_name"` |
| | | ProductId string `json:"productId" gorm:"column:product_id"` |
| | | ProductName string `json:"productName" gorm:"column:product_name"` |
| | | Amount decimal.Decimal `json:"amount" gorm:"column:amount"` |
| | | Unit string `json:"unit" gorm:"column:unit"` |
| | | CreateDate string `json:"createDate" gorm:"column:create_date"` |
| | | AdjustAmount decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"` |
| | | DifferenceAmount decimal.Decimal `json:"differenceAmount" gorm:"-"` |
| | | OperationId int `json:"operationId" gorm:"column:operation_id"` |
| | | LocationProductAmountId int `json:"locationProductAmount" gorm:"location_product_amount_id"` |
| | | LocationId int `json:"locationId" gorm:"column:location_id"` |
| | | LocationName string `json:"locationName" gorm:"column:location_name"` |
| | | ProductId string `json:"productId" gorm:"column:product_id"` |
| | | ProductName string `json:"productName" gorm:"column:product_name"` |
| | | Amount decimal.Decimal `json:"amount" gorm:"column:amount"` |
| | | Unit string `json:"unit" gorm:"column:unit"` |
| | | CreateDate string `json:"createDate" gorm:"column:create_date"` |
| | | AdjustAmount decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"` |
| | | DifferenceAmount decimal.Decimal `json:"differenceAmount" gorm:"-"` |
| | | OperationId int `json:"operationId" gorm:"column:operation_id"` |
| | | Status constvar.OperationStatus `json:"status" gorm:"status"` |
| | | } |
| | | ) |
| | | |