private Set<String> getDocumentNos_ToUse() { final Set<String> documentNos = new HashSet<String>(); final Collection<I_PP_MRP> mrps = getPP_MRPs_ToUse(); for (final I_PP_MRP mrp : mrps) { if (mrp == null) { // shall not happen continue; } final int ppMRPId = mrp.getPP_MRP_ID(); final String documentNo = ppMRPId > 0 ? mrpDAO.getDocumentNo(ppMRPId) : null; documentNos.add(documentNo); } return documentNos; }
@Override public int deleteMRPRecords() { final IQueryBuilder<I_PP_MRP> mrpsQuery = createQueryBuilder(); return mrpDAO.deleteMRP(mrpsQuery); }