You are on page 1of 2

The It's name is P_status contains three types of variables are team input

objectives.

waiting for delivery.

ready to delivery, waiting for pickle

2 - article prepaired date - based on the ststus will get date on respective
orders

logic
+ (article prepaired date(reception) + 25 days).

after 25 day data should be visible in this button()

---------------------------------------------------------------------------

Preparation Delayed - ZRM Relaunch -----> reciption date + 48hrs

by code -------------
//new added
case TOPY: //1--->Preparation Delayed - ZRM Relaunch

val = isTOPYOrder(orderStage,orderItemStage);
if (StringUtils.isNotBlank(val))
reportTypeJoiner.add(val);
break;

case WDED://2-->Client Relaunch - Store Collection

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)")

You might also like