| Line 531... |
Line 531... |
| 531 |
poi.setStatus(OrderStatus.BILLED);
|
531 |
poi.setStatus(OrderStatus.BILLED);
|
| 532 |
poi.setBilledTimestamp(LocalDateTime.now());
|
532 |
poi.setBilledTimestamp(LocalDateTime.now());
|
| 533 |
}
|
533 |
}
|
| 534 |
|
534 |
|
| 535 |
LocalDate startDate = LocalDate.of(2022, 10, 14);
|
535 |
LocalDate startDate = LocalDate.of(2022, 10, 14);
|
| 536 |
LocalDate endDate = LocalDate.of(2022, 10, 27);
|
536 |
LocalDate endDate = LocalDate.of(2022, 10, 28);
|
| 537 |
|
537 |
|
| 538 |
if (smartPhone) {
|
538 |
if (smartPhone) {
|
| 539 |
if (LocalDateTime.now().isAfter(startDate.atStartOfDay())
|
539 |
if (LocalDateTime.now().isAfter(startDate.atStartOfDay())
|
| 540 |
&& LocalDateTime.now().isBefore(endDate.atStartOfDay())) {
|
540 |
&& LocalDateTime.now().isBefore(endDate.atStartOfDay())) {
|
| 541 |
|
541 |
|
| Line 818... |
Line 818... |
| 818 |
}
|
818 |
}
|
| 819 |
|
819 |
|
| 820 |
private InvoicePdfModel getInvoicePdfModel(FofoOrder fofoOrder) throws ProfitMandiBusinessException {
|
820 |
private InvoicePdfModel getInvoicePdfModel(FofoOrder fofoOrder) throws ProfitMandiBusinessException {
|
| 821 |
|
821 |
|
| 822 |
List<PaymentOptionTransaction> paymentOptionTransactions = paymentOptionTransactionRepository
|
822 |
List<PaymentOptionTransaction> paymentOptionTransactions = paymentOptionTransactionRepository
|
| - |
|
823 |
.selectByReferenceIdAndTypes(fofoOrder.getId(),
|
| 823 |
.selectByReferenceIdAndTypes(fofoOrder.getId(), Arrays.asList(PaymentOptionReferenceType.ORDER, PaymentOptionReferenceType.INSURANCE));
|
824 |
Arrays.asList(PaymentOptionReferenceType.ORDER, PaymentOptionReferenceType.INSURANCE));
|
| 824 |
|
825 |
|
| 825 |
List<CustomPaymentOption> paymentOptions = new ArrayList<>();
|
826 |
List<CustomPaymentOption> paymentOptions = new ArrayList<>();
|
| 826 |
|
827 |
|
| 827 |
InvoicePdfModel pdfModel = new InvoicePdfModel();
|
828 |
InvoicePdfModel pdfModel = new InvoicePdfModel();
|
| 828 |
for (PaymentOptionTransaction paymentOptionTransaction : paymentOptionTransactions) {
|
829 |
for (PaymentOptionTransaction paymentOptionTransaction : paymentOptionTransactions) {
|
| Line 957... |
Line 958... |
| 957 |
pdfModel.setTncs(tncs);
|
958 |
pdfModel.setTncs(tncs);
|
| 958 |
return pdfModel;
|
959 |
return pdfModel;
|
| 959 |
|
960 |
|
| 960 |
}
|
961 |
}
|
| 961 |
|
962 |
|
| 962 |
|
- |
|
| 963 |
private CustomCustomer getCustomCustomer(FofoOrder fofoOrder) throws ProfitMandiBusinessException {
|
963 |
private CustomCustomer getCustomCustomer(FofoOrder fofoOrder) throws ProfitMandiBusinessException {
|
| 964 |
Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
|
964 |
Customer customer = customerRepository.selectById(fofoOrder.getCustomerId());
|
| 965 |
CustomCustomer customCustomer = new CustomCustomer();
|
965 |
CustomCustomer customCustomer = new CustomCustomer();
|
| 966 |
customCustomer.setFirstName(customer.getFirstName());
|
966 |
customCustomer.setFirstName(customer.getFirstName());
|
| 967 |
customCustomer.setLastName(customer.getLastName());
|
967 |
customCustomer.setLastName(customer.getLastName());
|