Advertisement
tko_pb

28 september

Sep 27th, 2018
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.     //public boolean isRequisitionLineHasAttachment (String requisitionID) {
  2.     public boolean validateRequisitionLine (String requisitionID) {
  3.         boolean isValid = true;
  4.         Requisition requi = OBDal.getInstance().get(Requisition.class, requisitionID);
  5.         for (RequisitionLine re : requi.getProcurementRequisitionLineList()) {
  6.             boolean isInvestasi = re.getProduct().getProductCategory().getSearchKey().equalsIgnoreCase("INVESTASI") ==true;
  7.             if (isInvestasi)
  8.                 isValid = isRequisitionLineHasAttachment(re);
  9.         }
  10.         return isValid;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement