Subversion Repositories SmartDukaan

Rev

Rev 8103 | Rev 8105 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8103 Rev 8104
Line 301... Line 301...
301
					fedexCodReturnTrackingId = tclient.getOrderAttributeValue(order.getId(), "FedEx_COD_Return_Tracking_No");
301
					fedexCodReturnTrackingId = tclient.getOrderAttributeValue(order.getId(), "FedEx_COD_Return_Tracking_No");
302
				} catch (TException e1) {
302
				} catch (TException e1) {
303
					logger.error("Error while getting the provider information.", e1);
303
					logger.error("Error while getting the provider information.", e1);
304
				}
304
				}
305
				PdfPCell formIdCell= new PdfPCell(new Paragraph("COD Return "+fedexCodReturnTrackingId+" Form id-0325", helvetica6));
305
				PdfPCell formIdCell= new PdfPCell(new Paragraph("COD Return "+fedexCodReturnTrackingId+" Form id-0325", helvetica6));
306
				formIdCell.setPaddingTop(5.0f);
306
				formIdCell.setPaddingTop(2.0f);
307
				formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
307
				formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
308
				formIdCell.setBorder(Rectangle.NO_BORDER);
308
				formIdCell.setBorder(Rectangle.NO_BORDER);
309
				chargesTable.addCell(new Phrase("PRIORITY OVERNIGHT ", helvetica8));
309
				chargesTable.addCell(new Phrase("PRIORITY OVERNIGHT ", helvetica8));
310
				chargesTable.addCell(formIdCell);
310
				chargesTable.addCell(formIdCell);
311
				
311
				
Line 415... Line 415...
415
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
415
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
416
			}
416
			}
417
			else{
417
			else{
418
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
418
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
419
			}
419
			}
420
			formIdCell.setPaddingTop(20.0f);
420
			formIdCell.setPaddingTop(10.0f);
421
			formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
421
			formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
422
			formIdCell.setBorder(Rectangle.NO_BORDER);
422
			formIdCell.setBorder(Rectangle.NO_BORDER);
423
		}
423
		}
424
		
424
		
425
	
425
	
Line 435... Line 435...
435
				fedexPackageBarcode = tclient.getOrderAttributeValue(order.getId(), "FedEx_Package_BarCode");
435
				fedexPackageBarcode = tclient.getOrderAttributeValue(order.getId(), "FedEx_Package_BarCode");
436
			} catch (TException e1) {
436
			} catch (TException e1) {
437
				logger.error("Error while getting the provider information.", e1);
437
				logger.error("Error while getting the provider information.", e1);
438
			}
438
			}
439
			awbNumberCell = new PdfPCell(new Paragraph(" ", helvetica6));
439
			awbNumberCell = new PdfPCell(new Paragraph(" ", helvetica6));
440
			awbNumberCell.setPaddingBottom(5.0f);
440
			awbNumberCell.setPaddingBottom(2.0f);
441
		}
441
		}
442
		awbNumberCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
442
		awbNumberCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
443
		awbNumberCell.setBorder(Rectangle.NO_BORDER);
443
		awbNumberCell.setBorder(Rectangle.NO_BORDER);
444
 
444
 
445
		providerInfoTable.addCell(providerNameCell);
445
		providerInfoTable.addCell(providerNameCell);
Line 571... Line 571...
571
	private PdfPTable getTaxCumRetailInvoiceTable(Order order, Provider provider, String ourAddress, String tinNo){
571
	private PdfPTable getTaxCumRetailInvoiceTable(Order order, Provider provider, String ourAddress, String tinNo){
572
		PdfPTable taxTable = new PdfPTable(1);
572
		PdfPTable taxTable = new PdfPTable(1);
573
		Phrase phrase = null;
573
		Phrase phrase = null;
574
		taxTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
574
		taxTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
575
		taxTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
575
		taxTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
576
 
576
		
-
 
577
		PdfPTable logoTitleAndOurAddressTable = new PdfPTable(new float[]{0.4f, 0.6f});
-
 
578
		PdfPTable titleAndSolrAddressTable= new PdfPTable(1);
577
		PdfPTable logoTable = new PdfPTable(2);
579
		PdfPTable logoTable = new PdfPTable(2);
578
		addLogoTable(logoTable,order); 
580
		addLogoTable(logoTable,order); 
579
		
581
		
580
		if (order.getOrderType().equals(OrderType.B2B)) {
582
		if (order.getOrderType().equals(OrderType.B2B)) {
581
			phrase = new Phrase("TAX INVOICE", helveticaBold12);
583
			phrase = new Phrase("TAX INVOICE", helveticaBold12);
Line 605... Line 607...
605
 
607
 
606
		PdfPCell disclaimerCell = new PdfPCell(new Phrase("Goods once sold will not be taken back.\nAll disputes subject to Delhi Jurisdiction.\nThis is a Computer generated Invoice.", helvetica8));
608
		PdfPCell disclaimerCell = new PdfPCell(new Phrase("Goods once sold will not be taken back.\nAll disputes subject to Delhi Jurisdiction.\nThis is a Computer generated Invoice.", helvetica8));
607
		disclaimerCell.setHorizontalAlignment(Element.ALIGN_LEFT);
609
		disclaimerCell.setHorizontalAlignment(Element.ALIGN_LEFT);
608
		disclaimerCell.setBorder(Rectangle.NO_BORDER);
610
		disclaimerCell.setBorder(Rectangle.NO_BORDER);
609
		
611
		
-
 
612
		
-
 
613
		titleAndSolrAddressTable.addCell(retailInvoiceTitleCell);
-
 
614
		titleAndSolrAddressTable.addCell(sorlAddress);
-
 
615
		
610
		taxTable.addCell(logoTable);
616
		logoTitleAndOurAddressTable.addCell(logoTable);
611
		taxTable.addCell(retailInvoiceTitleCell);
617
		logoTitleAndOurAddressTable.addCell(titleAndSolrAddressTable);
-
 
618
		
612
		taxTable.addCell(sorlAddress);
619
		taxTable.addCell(logoTitleAndOurAddressTable);
613
		taxTable.addCell(addrAndOrderDetailsTable);
620
		taxTable.addCell(addrAndOrderDetailsTable);
614
		taxTable.addCell(invoiceTable);
621
		taxTable.addCell(invoiceTable);
615
		taxTable.addCell(disclaimerCell);
622
		taxTable.addCell(disclaimerCell);
616
 
623
 
617
		return taxTable;
624
		return taxTable;