|
|
@ -114,6 +114,10 @@ public class PositionCodeAppService |
|
|
|
|
|
|
|
entity.LocationName = location.Name; |
|
|
|
|
|
|
|
entity.StdPackQty = input.StdPackQty; |
|
|
|
entity.BasicUom = input.BasicUom; |
|
|
|
entity.Type = input.Type; |
|
|
|
|
|
|
|
await _repository.UpdateAsync(entity).ConfigureAwait(false); |
|
|
|
var dto = ObjectMapper.Map<PositionCode, PositionCodeDTO>(entity); |
|
|
|
|
|
|
@ -136,12 +140,12 @@ public class PositionCodeAppService |
|
|
|
var itemBasic = await ItemBasicAppService.GetByCodeAsync(positionCode.PartCode).ConfigureAwait(false); |
|
|
|
positionCode.PartName = itemBasic.Name; |
|
|
|
positionCode.PartDesc = itemBasic.Desc1; |
|
|
|
//positionCode.BasicUom = itemBasic.BasicUom;
|
|
|
|
//positionCode.StdPackQty = itemBasic.StdPackQty;
|
|
|
|
|
|
|
|
positionCode.Code = positionCode.Type + positionCode.Code; |
|
|
|
positionCode.CreatorId= CurrentUser.Id; |
|
|
|
var location = await LocationAppService.GetByCodeAsync(positionCode.LocationCode).ConfigureAwait(false); |
|
|
|
positionCode.LocationName = location.Name; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return dictionary; |
|
|
|