Subversion Repositories SmartDukaan

Rev

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

Rev 20836 Rev 20838
Line 54... Line 54...
54
    
54
    
55
	private TransactionClient tsc = null;
55
	private TransactionClient tsc = null;
56
	private InventoryClient csc = null;
56
	private InventoryClient csc = null;
57
	private LogisticsClient lsc = null;
57
	private LogisticsClient lsc = null;
58
	private DecimalFormat weightFormat = new DecimalFormat("0.000");
58
	private DecimalFormat weightFormat = new DecimalFormat("0.000");
59
	private static DateFormat df = new SimpleDateFormat("MMddyyyy");
59
	private static DateFormat df = new SimpleDateFormat("MMddyy");
60
	public ManifestGenerator() {
60
	public ManifestGenerator() {
61
		try {
61
		try {
62
			tsc = new TransactionClient();
62
			tsc = new TransactionClient();
63
			csc = new InventoryClient();
63
			csc = new InventoryClient();
64
			lsc = new LogisticsClient();
64
			lsc = new LogisticsClient();
Line 225... Line 225...
225
					ordersTable.addCell(new Phrase(store.getPhone(), helvetica8));
225
					ordersTable.addCell(new Phrase(store.getPhone(), helvetica8));
226
				}
226
				}
227
				
227
				
228
			}
228
			}
229
			if(isCod) {
229
			if(isCod) {
230
				table.addCell(new Phrase("Manifest ID: COD" + df.format(new Date()) + String.format("%02d", warehouseId) + String.format("%02d", providerId), helvetica9));
230
				table.addCell(new Phrase("Manifest ID: C" + df.format(new Date()) + String.format("%02d", warehouseId) + String.format("%02d", providerId), helvetica9));
231
			    table.addCell(new Phrase("PAYMODE: COD", helvetica9));
231
			    table.addCell(new Phrase("PAYMODE: COD", helvetica9));
232
			}
232
			}
233
			else {
233
			else {
234
				table.addCell(new Phrase("Manifest ID: PRE" + df.format(new Date()) + String.format("%02d", buyerInfo.getAddressId()) + String.format("%02d", providerId), helvetica8));
234
				table.addCell(new Phrase("Manifest ID: P" + df.format(new Date()) + String.format("%02d", buyerInfo.getAddressId()) + String.format("%02d", providerId), helvetica8));
235
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
235
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
236
			}
236
			}
237
			if(provider.getPickup() == PickUpType.RUNNER){
237
			if(provider.getPickup() == PickUpType.RUNNER){
238
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
238
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
239
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));
239
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));