| | |
| | | rule.Prediction = rule.Amount.Add(rule.Prediction) |
| | | } |
| | | //出库就绪 |
| | | operationType = []constvar.BaseOperationType{constvar.BaseOperationTypeOutgoing, constvar.BaseOperationTypeInternal} |
| | | operationType = []constvar.BaseOperationType{constvar.BaseOperationTypeOutgoing, constvar.BaseOperationTypeInternal, constvar.BaseOperationTypeDisuse} |
| | | amount, err = GetProductAmount(productIds, nil, locationIds, status, operationType) |
| | | if err != nil { |
| | | util.ResponseFormat(c, code.RequestParamError, "查询重订货规则列表失败") |
| | |
| | | } |
| | | prediction = amount.Add(prediction) |
| | | //出库就绪 |
| | | operationType = []constvar.BaseOperationType{constvar.BaseOperationTypeOutgoing, constvar.BaseOperationTypeInternal} |
| | | operationType = []constvar.BaseOperationType{constvar.BaseOperationTypeOutgoing, constvar.BaseOperationTypeInternal, constvar.BaseOperationTypeDisuse} |
| | | list, err = GetProductAmount(productIds, nil, locationIds, status, operationType) |
| | | if err != nil { |
| | | util.ResponseFormat(c, code.RequestParamError, "查询重订货规则列表失败") |
| | |
| | | return err |
| | | } |
| | | params.OrderNumber = decimal.NewFromInt(0) |
| | | err = models.NewReorderRuleSearch().SetID(params.Id).Update(¶ms) |
| | | err = models.NewReorderRuleSearch().SetOrm(db).SetID(params.Id).Update(¶ms) |
| | | return err |
| | | }) |
| | | if err != nil { |