Subversion Repositories SmartDukaan

Rev

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

Rev 20832 Rev 20833
Line 102... Line 102...
102
			Document document = new Document();
102
			Document document = new Document();
103
			PdfWriter.getInstance(document, baosPDF);
103
			PdfWriter.getInstance(document, baosPDF);
104
			document.addAuthor("shop2020");
104
			document.addAuthor("shop2020");
105
			document.addTitle("Manifest for warehouse " + warehouseId + " provider " + providerId);
105
			document.addTitle("Manifest for warehouse " + warehouseId + " provider " + providerId);
106
			document.open();
106
			document.open();
107
			PdfPTable table = new PdfPTable(2);
107
			PdfPTable table = new PdfPTable(3);
108
			table.getDefaultCell().setBorder(Rectangle.NO_BORDER);
108
			table.getDefaultCell().setBorder(Rectangle.NO_BORDER);
109
			table.getDefaultCell().setPaddingBottom(10.0f);
109
			table.getDefaultCell().setPaddingBottom(10.0f);
110
			
110
			
111
			Paragraph companyPara = new Paragraph(buyerInfo.getOrganisationName() + " Manifest Report", new Font(FontFamily.TIMES_ROMAN,16f));
111
			Paragraph companyPara = new Paragraph(buyerInfo.getOrganisationName() + " Manifest Report", new Font(FontFamily.TIMES_ROMAN,16f));
112
			PdfPCell companyCell = new PdfPCell();
112
			PdfPCell companyCell = new PdfPCell();
Line 236... Line 236...
236
				
236
				
237
			}
237
			}
238
			table.addCell(companyCell);
238
			table.addCell(companyCell);
239
			table.addCell(addressCell);
239
			table.addCell(addressCell);
240
			if(isCod) {
240
			if(isCod) {
241
				table.addCell(new Phrase("Manifest ID: COD" + df.format(new Date())) + String.format("%02d", warehouseId) + String.format("%02d", providerId));
241
				table.addCell(new Phrase("Manifest ID: COD" + df.format(new Date()) + String.format("%02d", warehouseId) + String.format("%02d", providerId), helvetica8));
242
			    table.addCell(new Phrase("PAYMODE: COD", helvetica8));
242
			    table.addCell(new Phrase("PAYMODE: COD", helvetica8));
243
			}
243
			}
244
			else {
244
			else {
245
				table.addCell(new Phrase("Manifest ID: PRE" + df.format(new Date())) + String.format("%02d", warehouseId) + String.format("%02d", providerId));
245
				table.addCell(new Phrase("Manifest ID: PRE" + df.format(new Date()) + String.format("%02d", warehouseId) + String.format("%02d", providerId), helvetica8));
246
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
246
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
247
			}
247
			}
248
			if(provider.getPickup() == PickUpType.RUNNER){
248
			if(provider.getPickup() == PickUpType.RUNNER){
249
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
249
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
250
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));
250
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));