jiangshuai
2023-10-21 34dd354c55ffff3339a3232a7a1ba6ec8fe49f60
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)