liujiandao
2024-04-18 7d1b46b246613585acda03a2148db76ebea79de1
物料字段类型修改
2个文件已修改
6 ■■■■ 已修改文件
models/location_product_amount.go 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/material.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/location_product_amount.go
@@ -49,8 +49,8 @@
        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:"-"`
        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"`
        BaseOperationType       constvar.BaseOperationType `json:"baseOperationType" gorm:"base_operation_type"`
models/material.go
@@ -79,7 +79,7 @@
        IsStorage               int             `gorm:"type:tinyint(1);default:1;comment:是否存库(1是2否)" json:"isStorage"`   //无库存的在wms以及srm中需要过滤掉
        IsVirtual               int             `json:"isVirtual" gorm:"type:tinyint(1);default:2;comment:是否虚拟物料(1是2否)"` //虚拟物料在MRP计算时跳过该层级直接领用下级物料,虚拟物料不生成工单
        ReorderRuleNum          int64           `json:"reorderRuleNum"`
        MoreUnit                bool            `json:"moreUnit" gorm:"type:tinyint(1);default:false;comment:启动多单位"`
        MoreUnit                *bool           `json:"moreUnit" gorm:"type:tinyint(1);default:false;comment:启动多单位"`
        MoreUnitList            []UnitItems     `json:"moreUnitList" gorm:"-"`
        MoreUnitValue           string          `json:"-" gorm:"type:varchar(255);comment:多单位值"`
        GrossWeight             decimal.Decimal `json:"grossWeight" gorm:"type:decimal(20,3);comment:毛重"`