jiangshuai
2023-10-20 53e13e20bdf8f3ce26d67ae9c2c1ed7212a183d9
1.修改库存盘点bug
1个文件已修改
6 ■■■■■ 已修改文件
controllers/location_product_amount.go 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/location_product_amount.go
@@ -77,10 +77,12 @@
                return
            }
        } else {
            records[k].AdjustAmount = operation.Details[0].Amount
            if len(operation.Details) > 0 {
                records[k].AdjustAmount = operation.Details[0].Amount
                records[k].DifferenceAmount = v.Amount.Add(v.AdjustAmount)
            }
            records[k].OperationId = operation.Id
            records[k].Status = operation.Status
            records[k].DifferenceAmount = v.Amount.Add(v.AdjustAmount)
        }
    }
    util.ResponseFormatListWithPage(c, code.Success, records, int(total), params.Page, params.PageSize)