liujiandao
2023-10-31 307c699810c39714e82efac9de56f70b93a718a2
controllers/report_forms_controller.go
@@ -152,8 +152,8 @@
   for _, detail := range details {
      var resp response.InventoryHistory
      resp.Amount = detail.Amount
      resp.Unit = params.Unit
      resp.ProductName = params.ProductName
      resp.Unit = detail.Product.Unit
      resp.ProductName = detail.Product.Name
      for _, operation := range operations {
         if detail.OperationID == operation.Id {
            resp.Number = operation.Number
@@ -162,6 +162,7 @@
            resp.ContactedName = operation.ContacterName
            resp.FromLocation = operation.FromLocation.Name
            resp.ToLocation = operation.ToLocation.Name
            resp.BaseOperationType = operation.BaseOperationType
            result = append(result, resp)
            break
         }