| Line 18... |
Line 18... |
| 18 |
import in.shop2020.model.v1.order.LineItem;
|
18 |
import in.shop2020.model.v1.order.LineItem;
|
| 19 |
import in.shop2020.model.v1.order.Order;
|
19 |
import in.shop2020.model.v1.order.Order;
|
| 20 |
import in.shop2020.model.v1.order.OrderSource;
|
20 |
import in.shop2020.model.v1.order.OrderSource;
|
| 21 |
import in.shop2020.model.v1.order.OrderStatus;
|
21 |
import in.shop2020.model.v1.order.OrderStatus;
|
| 22 |
import in.shop2020.model.v1.order.OrderType;
|
22 |
import in.shop2020.model.v1.order.OrderType;
|
| - |
|
23 |
import in.shop2020.model.v1.order.ProductCondition;
|
| 23 |
import in.shop2020.model.v1.order.SnapdealOrder;
|
24 |
import in.shop2020.model.v1.order.SnapdealOrder;
|
| 24 |
import in.shop2020.model.v1.order.FlipkartOrder;
|
25 |
import in.shop2020.model.v1.order.FlipkartOrder;
|
| 25 |
import in.shop2020.model.v1.order.TaxType;
|
26 |
import in.shop2020.model.v1.order.TaxType;
|
| 26 |
import in.shop2020.thrift.clients.CatalogClient;
|
27 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 27 |
import in.shop2020.thrift.clients.LogisticsClient;
|
28 |
import in.shop2020.thrift.clients.LogisticsClient;
|
| Line 407... |
Line 408... |
| 407 |
chargesTable.addCell(new Phrase("Term and Condition:- Subject to the Conditions of Carriage which " +
|
408 |
chargesTable.addCell(new Phrase("Term and Condition:- Subject to the Conditions of Carriage which " +
|
| 408 |
"limits the liability of FedEx for loss, delay or damage to the consignment." +
|
409 |
"limits the liability of FedEx for loss, delay or damage to the consignment." +
|
| 409 |
" Visit http://www.fedex.com/in/domestic/services/terms to view the conitions of Carriage" ,
|
410 |
" Visit http://www.fedex.com/in/domestic/services/terms to view the conitions of Carriage" ,
|
| 410 |
new Font(FontFamily.TIMES_ROMAN, 8f)));
|
411 |
new Font(FontFamily.TIMES_ROMAN, 8f)));
|
| 411 |
}
|
412 |
}
|
| - |
|
413 |
|
| - |
|
414 |
if(order.getProductCondition().equals(ProductCondition.BAD)){
|
| - |
|
415 |
chargesTable.addCell(new Phrase(" Item(s) above are sold on as is where is basis. They " +
|
| - |
|
416 |
"may be in dead/defective/damaged/refurbished/incomplete/open condition. These " +
|
| - |
|
417 |
"are not returnable, exchangeable or refundable under any circumstances. No " +
|
| - |
|
418 |
"warranty is assured on these items." ,
|
| - |
|
419 |
new Font(FontFamily.TIMES_ROMAN, 8f)));
|
| - |
|
420 |
}
|
| 412 |
|
421 |
|
| 413 |
addressTable.addCell(new Phrase("If undelivered, return to:", helvetica10));
|
422 |
addressTable.addCell(new Phrase("If undelivered, return to:", helvetica10));
|
| 414 |
addressTable.addCell(addressCell);
|
423 |
addressTable.addCell(addressCell);
|
| 415 |
|
424 |
|
| 416 |
PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
|
425 |
PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
|
| Line 713... |
Line 722... |
| 713 |
logoTitleAndOurAddressTable.addCell(sorlAddress);
|
722 |
logoTitleAndOurAddressTable.addCell(sorlAddress);
|
| 714 |
|
723 |
|
| 715 |
taxTable.addCell(logoTitleAndOurAddressTable);
|
724 |
taxTable.addCell(logoTitleAndOurAddressTable);
|
| 716 |
taxTable.addCell(addrAndOrderDetailsTable);
|
725 |
taxTable.addCell(addrAndOrderDetailsTable);
|
| 717 |
taxTable.addCell(invoiceTable);
|
726 |
taxTable.addCell(invoiceTable);
|
| - |
|
727 |
if(order.getProductCondition().equals(ProductCondition.GOOD)) {
|
| 718 |
taxTable.addCell(disclaimerCell);
|
728 |
taxTable.addCell(disclaimerCell);
|
| - |
|
729 |
}
|
| 719 |
if(order.getSource() == OrderSource.FLIPKART.getValue()) {
|
730 |
if(order.getSource() == OrderSource.FLIPKART.getValue()) {
|
| 720 |
taxTable.addCell(powerTextCell);
|
731 |
taxTable.addCell(powerTextCell);
|
| 721 |
|
732 |
|
| 722 |
}
|
733 |
}
|
| 723 |
return taxTable;
|
734 |
return taxTable;
|