| Line 1861... |
Line 1861... |
| 1861 |
}
|
1861 |
}
|
| 1862 |
}
|
1862 |
}
|
| 1863 |
}
|
1863 |
}
|
| 1864 |
}
|
1864 |
}
|
| 1865 |
|
1865 |
|
| 1866 |
public void testToffee() throws Exception {
|
1866 |
public void attachToffeeInvoices() throws Exception {
|
| 1867 |
LOGGER.info("Insurance Sum Summary --- {}",
|
1867 |
/*LOGGER.info("Insurance Sum Summary --- {}",
|
| 1868 |
insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.MIN, LocalDateTime.MAX));
|
1868 |
insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.MIN, LocalDateTime.MAX));
|
| 1869 |
LOGGER.info("Insurance Qty Summary --- {}",
|
1869 |
LOGGER.info("Insurance Qty Summary --- {}",
|
| 1870 |
insurancePolicyRepository.selectQtyGroupByRetailerId(LocalDateTime.MIN, LocalDateTime.MAX));
|
1870 |
insurancePolicyRepository.selectQtyGroupByRetailerId(LocalDateTime.MIN, LocalDateTime.MAX));
|
| 1871 |
LOGGER.info("SmartPhone Amount Summary --- {}",
|
1871 |
LOGGER.info("SmartPhone Amount Summary --- {}",
|
| 1872 |
fofoOrderItemRepository.selectSumAmountGroupByRetailer(LocalDateTime.MIN, LocalDateTime.MAX, 0, true));
|
1872 |
fofoOrderItemRepository.selectSumAmountGroupByRetailer(LocalDateTime.MIN, LocalDateTime.MAX, 0, true));
|
| 1873 |
LOGGER.info("Smartphone Qty Summary --- {}",
|
1873 |
LOGGER.info("Smartphone Qty Summary --- {}",
|
| 1874 |
fofoOrderItemRepository.selectQtyGroupByRetailer(LocalDateTime.MIN, LocalDateTime.MAX, 0, true));
|
1874 |
fofoOrderItemRepository.selectQtyGroupByRetailer(LocalDateTime.MIN, LocalDateTime.MAX, 0, true));*/
|
| 1875 |
List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectAllByProviderId(3, Optional.of(false));
|
1875 |
List<InsurancePolicy> insurancePolicies = insurancePolicyRepository.selectAllByProviderId(3, Optional.of(false));
|
| 1876 |
for(InsurancePolicy insurancePolicy : insurancePolicies) {
|
1876 |
for(InsurancePolicy insurancePolicy : insurancePolicies) {
|
| 1877 |
String invoiceNumber = insurancePolicy.getInvoiceNumber();
|
1877 |
String invoiceNumber = insurancePolicy.getInvoiceNumber();
|
| 1878 |
FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
|
1878 |
FofoOrder fofoOrder = fofoOrderRepository.selectByInvoiceNumber(invoiceNumber);
|
| 1879 |
PdfModel pdfModel = orderService.getInvoicePdfModel(fofoOrder.getId());
|
1879 |
PdfModel pdfModel = orderService.getInvoicePdfModel(fofoOrder.getId());
|