liujiandao
2023-12-04 3f4b175f2d5ba169709bfe29cabc66ddb3ccc6d3
controllers/operation.go
@@ -558,6 +558,9 @@
               SetLocationId(operation.FromLocationID).
               FirstRes()
            if res.Error != nil {
               if res.Error == gorm.ErrRecordNotFound {
                  return errors.New("当前仓库没有该产品,请先入库")
               }
               return res.Error
            }
            if locAmount.Amount.LessThan(value) {