Skip to content

Commit

Permalink
Merge pull request #1177 from GIRISANKAR/develop
Browse files Browse the repository at this point in the history
Location and Item Type description values missing in Lost Notices
  • Loading branch information
GIRISANKAR committed Dec 6, 2017
2 parents c41c246 + df91a6f commit cd3167b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,9 @@ public ModelAndView applyItemLost(@ModelAttribute("KualiForm") UifFormBase form,
String itemFullLocation = getItemFullLocation(oleLoanDocument.getItemId());
if(itemFullLocation != null) {
oleLoanDocument.setItemFullLocation(itemFullLocation);
oleLoanDocument.setItemLocation(itemFullLocation);
}
oleLoanDocument.setItemTypeDesc(new OleDeliverRequestDocumentHelperServiceImpl().getItemTypeDescByCode(oleLoanDocument.getItemType()));
oleDeliverNotice = getLostNotice(oleLoanDocument.getDeliverNotices());
if(oleDeliverNotice!=null)
oleLoanDocument.setItemLostNote(itemLostDescription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4288,6 +4288,18 @@ public String getItemTypeDescByName(String itemTypeName) {
return itemTypeDesc;
}

public String getItemTypeDescByCode(String itemType) {
String itemTypeDesc = "";
List<OleInstanceItemType> instanceItemTypeList = null;
Map<String, String> instanceItemTypeMap = new HashMap<String, String>();
instanceItemTypeMap.put("instanceItemTypeCode", itemType);
instanceItemTypeList = (List<OleInstanceItemType>) getBusinessObjectService().findMatching(OleInstanceItemType.class, instanceItemTypeMap);
if (instanceItemTypeList != null && instanceItemTypeList.size() > 0) {
itemTypeDesc = instanceItemTypeList.get(0).getInstanceItemTypeDesc();
}
return itemTypeDesc;
}

/**
* This method is to update the item
*
Expand Down

0 comments on commit cd3167b

Please sign in to comment.