| Line 916... |
Line 916... |
| 916 |
String cardExpiryMonth = getCellString(row.getCell(col++));
|
916 |
String cardExpiryMonth = getCellString(row.getCell(col++));
|
| 917 |
String cvv = getCellString(row.getCell(col++));
|
917 |
String cvv = getCellString(row.getCell(col++));
|
| 918 |
String verificationPin = getCellString(row.getCell(col++));
|
918 |
String verificationPin = getCellString(row.getCell(col++));
|
| 919 |
boolean orderPlaced = getCellString(row.getCell(col++)).equals("1") ? true : false;
|
919 |
boolean orderPlaced = getCellString(row.getCell(col++)).equals("1") ? true : false;
|
| 920 |
orderRow.setCardNumber(cardNumber);
|
920 |
orderRow.setCardNumber(cardNumber);
|
| 921 |
orderRow.setCvv( StringUtils.repeat("0",3 - cvv.length()) + cvv);
|
921 |
orderRow.setCvv(StringUtils.repeat("0", 3 - cvv.length()) + cvv);
|
| 922 |
orderRow.setCardName(cardName);
|
922 |
orderRow.setCardName(cardName);
|
| 923 |
orderRow.setExpiryYr(cardExpiryYr);
|
923 |
orderRow.setExpiryYr(cardExpiryYr);
|
| 924 |
orderRow.setExpiryMonth(cardExpiryMonth);
|
924 |
orderRow.setExpiryMonth(cardExpiryMonth);
|
| 925 |
orderRow.setVerificationPin(verificationPin);
|
925 |
orderRow.setVerificationPin(verificationPin);
|
| 926 |
orderRow.setOrderPlaced(orderPlaced);
|
926 |
orderRow.setOrderPlaced(orderPlaced);
|
| Line 1567... |
Line 1567... |
| 1567 |
order.getFulfilmentWarehouseId(), order.getLineItem().getQuantity(), order.getId());
|
1567 |
order.getFulfilmentWarehouseId(), order.getLineItem().getQuantity(), order.getId());
|
| 1568 |
}
|
1568 |
}
|
| 1569 |
}
|
1569 |
}
|
| 1570 |
}
|
1570 |
}
|
| 1571 |
|
1571 |
|
| - |
|
1572 |
public void moveOrders() throws Exception {
|
| - |
|
1573 |
// Clear all Reservations
|
| - |
|
1574 |
for (Map.Entry<Integer, String> integerStringEntry : ProfitMandiConstants.WAREHOUSE_MAP.entrySet()) {
|
| - |
|
1575 |
transactionService.moveOrdersFulfimentWarehouse(integerStringEntry.getKey());
|
| - |
|
1576 |
}
|
| - |
|
1577 |
}
|
| - |
|
1578 |
|
| 1572 |
public void fixOrders() throws Exception {
|
1579 |
public void fixOrders() throws Exception {
|
| 1573 |
List<Order> orders = orderRepository.selectAllOrderDatesBetweenByStatus(
|
1580 |
List<Order> orders = orderRepository.selectAllOrderDatesBetweenByStatus(
|
| 1574 |
LocalDate.now().minusDays(10).atStartOfDay(), LocalDateTime.now(),
|
1581 |
LocalDate.now().minusDays(10).atStartOfDay(), LocalDateTime.now(),
|
| 1575 |
OrderStatus.SUBMITTED_FOR_PROCESSING);
|
1582 |
OrderStatus.SUBMITTED_FOR_PROCESSING);
|
| 1576 |
orders = orders.stream().filter(x -> x.getCreateTimestamp().isAfter(LocalDateTime.of(2021, 7, 21, 0, 0, 0)))
|
1583 |
orders = orders.stream().filter(x -> x.getCreateTimestamp().isAfter(LocalDateTime.of(2021, 7, 21, 0, 0, 0)))
|