| | |
| | | for (WrkMast m : wrkMast) { |
| | | if (m == null) { continue; } |
| | | if (Objects.equals(m.getWrkSts(), 11L)) { |
| | | if ("Y".equalsIgnoreCase(m.getPauseMk())) { |
| | | continue; |
| | | } |
| | | if (requiresOutboundErpConfirm(m) && !"Y".equalsIgnoreCase(m.getPdcType())) { |
| | | continue; |
| | | } |
| | | if (m.getUpdMk() != null && "WCS_SENT".equalsIgnoreCase(m.getUpdMk())) { |
| | | continue; |
| | | } |
| | |
| | | } |
| | | return SUCCESS; |
| | | } |
| | | |
| | | private boolean requiresOutboundErpConfirm(WrkMast wrkMast) { |
| | | Integer ioType = wrkMast == null ? null : wrkMast.getIoType(); |
| | | return ioType != null && (ioType == 101 || ioType == 103 || ioType == 104 || ioType == 107 || ioType == 110); |
| | | } |
| | | } |