Professional Documents
Culture Documents
QPM
QPM
objectives.
2 - article prepaired date - based on the ststus will get date on respective
orders
logic
+ (article prepaired date(reception) + 25 days).
---------------------------------------------------------------------------
by code -------------
//new added
case TOPY: //1--->Preparation Delayed - ZRM Relaunch
val = isTOPYOrder(orderStage,orderItemStage);
if (StringUtils.isNotBlank(val))
reportTypeJoiner.add(val);
break;
val = isWDEDrder(orderStage,orderItemStage);
if (StringUtils.isNotBlank(val))
reportTypeJoiner.add(val);
break;
----
private String isTOPYOrder(OrderStage orderStage, List<OrderItemsStage>
orderItemStageList) {
long count = 0;
List<String> articleStatusList = Arrays.asList("DISPATCHED_TOSTORE",
"RECEIVED_TOSTORE_DC", "SO_CREATED");
if (isActiveOrder(orderStage.getOrderStatus()) &&
orderStage.getDepositPaid() > 0) {
for (OrderItemsStage orderItemsStage : orderItemStageList) {
if
(articleStatusList.contains(orderItemsStage.getArticleStatus())) {
if
(orderItemsStage.getRouteDesignation().equalsIgnoreCase("Store - Delivery to Home")
|| orderItemsStage.getRouteDesignation()
.equalsIgnoreCase("Vendor to
Store - Delivery to Home")
|| orderItemsStage.getRouteDesignation()
.equalsIgnoreCase("DC to
Store - Delivery to Home")) {
count = 1;
}
}
}
}
return count > 0 ? ReportTypeCodes.TOPY.getValue() : EMPTY;
}
-----
in order reposit class
oi.articlePreparedDate is not null and date(oi.articlePreparedDate) < :date and
o.depositPaid >'0' and rps.orderProcessStatus.id in (8,45)")