zhangqian
2024-03-21 f27251d88f2468e7e7e0884e2248cbf9bd09f72c
crm发货补充出货目的位置
1个文件已修改
5 ■■■■■ 已修改文件
service/operation.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/operation.go
@@ -42,6 +42,10 @@
    }
    operations := make([]*models.Operation, 0, len(outputList))
    for _, output := range outputList {
        location, err := models.NewLocationSearch().SetType(int(constvar.LocationTypeCustomer)).First()
        if err != nil {
            return err
        }
        details := make([]*models.OperationDetails, 0, len(output.Products))
        for _, product := range output.Products {
            details = append(details, &models.OperationDetails{
@@ -49,6 +53,7 @@
                ProductId:      product.ProductID,
                Amount:         product.Amount,
                FromLocationID: output.LocationID,
                ToLocationID:   location.Id,
            })
        }
        if opTypeMap[output.WarehouseID] == nil {