| Line 555... |
Line 555... |
| 555 |
}
|
555 |
}
|
| 556 |
|
556 |
|
| 557 |
@RequestMapping(value = "/downloadDelayDayTemplate", method = RequestMethod.GET)
|
557 |
@RequestMapping(value = "/downloadDelayDayTemplate", method = RequestMethod.GET)
|
| 558 |
public ResponseEntity<?> downloadDelayDayTemplate(HttpServletRequest request) throws Exception {
|
558 |
public ResponseEntity<?> downloadDelayDayTemplate(HttpServletRequest request) throws Exception {
|
| 559 |
List<List<?>> rows = new ArrayList<>();
|
559 |
List<List<?>> rows = new ArrayList<>();
|
| - |
|
560 |
rows.add(Arrays.asList("-", "-", "Vehicle Delay"));
|
| - |
|
561 |
rows.add(Arrays.asList("-", "-", "Vehicle Breakdown"));
|
| 560 |
|
562 |
|
| 561 |
org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
|
563 |
org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
|
| 562 |
.getCSVByteStream(Arrays.asList("AirwayBillNumber", "Delay Day", "Reason"), rows);
|
564 |
.getCSVByteStream(Arrays.asList("AirwayBillNumber", "Delay Day", "Reason"), rows);
|
| 563 |
|
565 |
|
| 564 |
final HttpHeaders headers = new HttpHeaders();
|
566 |
final HttpHeaders headers = new HttpHeaders();
|
| Line 776... |
Line 778... |
| 776 |
|
778 |
|
| 777 |
@RequestMapping(value = "/delayBillingTemplate", method = RequestMethod.GET)
|
779 |
@RequestMapping(value = "/delayBillingTemplate", method = RequestMethod.GET)
|
| 778 |
public ResponseEntity<?> delayBillingTemplate(HttpServletRequest request) throws Exception {
|
780 |
public ResponseEntity<?> delayBillingTemplate(HttpServletRequest request) throws Exception {
|
| 779 |
List<List<?>> rows = new ArrayList<>();
|
781 |
List<List<?>> rows = new ArrayList<>();
|
| 780 |
|
782 |
|
| - |
|
783 |
rows.add(Arrays.asList("-",
|
| - |
|
784 |
"Shipment on hold, low invoice value, please ensure order value of minimum Rs. 40,000."));
|
| - |
|
785 |
|
| - |
|
786 |
rows.add(Arrays.asList("-", "Order Billed,Shipping will be done tomorrow."));
|
| - |
|
787 |
|
| 781 |
org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
|
788 |
org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
|
| 782 |
.getCSVByteStream(Arrays.asList("Invoice Number", "Reason"), rows);
|
789 |
.getCSVByteStream(Arrays.asList("Invoice Number", "Reason"), rows);
|
| 783 |
|
790 |
|
| 784 |
final HttpHeaders headers = new HttpHeaders();
|
791 |
final HttpHeaders headers = new HttpHeaders();
|
| 785 |
headers.set("Content-Type", "text/csv");
|
792 |
headers.set("Content-Type", "text/csv");
|