| Line 1048... |
Line 1048... |
| 1048 |
|
1048 |
|
| 1049 |
LocalDateTime startDateTime = StringUtils.toDateTime(startTimeString);
|
1049 |
LocalDateTime startDateTime = StringUtils.toDateTime(startTimeString);
|
| 1050 |
LocalDateTime endDateTime = StringUtils.toDateTime(endTimeString);
|
1050 |
LocalDateTime endDateTime = StringUtils.toDateTime(endTimeString);
|
| 1051 |
long countItems = 0;
|
1051 |
long countItems = 0;
|
| 1052 |
List<FofoOrder> fofoOrders = new ArrayList<>();
|
1052 |
List<FofoOrder> fofoOrders = new ArrayList<>();
|
| 1053 |
if(searchType.equalsIgnoreCase("purchaseReference") && !invoiceNumber.isEmpty()){
|
1053 |
if(searchType.equalsIgnoreCase(ProfitMandiConstants.INVOICE_NUMBER) && !invoiceNumber.isEmpty()){
|
| 1054 |
try {
|
1054 |
try {
|
| 1055 |
FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndInvoiceNumber(loginDetails.getFofoId(), invoiceNumber);
|
1055 |
FofoOrder fofoOrder = fofoOrderRepository.selectByFofoIdAndInvoiceNumber(loginDetails.getFofoId(), invoiceNumber);
|
| 1056 |
fofoOrders.add(fofoOrder);
|
1056 |
fofoOrders.add(fofoOrder);
|
| 1057 |
} catch (ProfitMandiBusinessException e) {
|
1057 |
} catch (ProfitMandiBusinessException e) {
|
| 1058 |
LOGGER.info("Sale history not found : ", e);
|
1058 |
LOGGER.info("Sale history not found : ", e);
|