Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //public boolean isRequisitionLineHasAttachment (String requisitionID) {
- public boolean validateRequisitionLine (String requisitionID) {
- boolean isValid = true;
- Requisition requi = OBDal.getInstance().get(Requisition.class, requisitionID);
- for (RequisitionLine re : requi.getProcurementRequisitionLineList()) {
- boolean isInvestasi = re.getProduct().getProductCategory().getSearchKey().equalsIgnoreCase("INVESTASI") ==true;
- if (isInvestasi)
- isValid = isRequisitionLineHasAttachment(re);
- }
- return isValid;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement