| | |
| | | material.unit, |
| | | wms_location_product_amount.create_date, |
| | | wms_operation_details.amount as adjust_amount, |
| | | wms_operation.id as operation_id`). |
| | | wms_operation.id as operation_id, |
| | | wms_operation.status`). |
| | | InnerJoins("inner join wms_location_product on wms_location_product.id=wms_location_product_amount.location_product_id"). |
| | | InnerJoins("inner join material on material.id=wms_location_product.product_id"). |
| | | InnerJoins("inner join wms_location on wms_location.id=wms_location_product.location_id"). |
| | |
| | | "fmt" |
| | | "github.com/shopspring/decimal" |
| | | "gorm.io/gorm" |
| | | "wms/constvar" |
| | | "wms/pkg/mysqlx" |
| | | ) |
| | | |
| | |
| | | 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"` |
| | | } |
| | | ) |
| | | |