Subversion Repositories SmartDukaan

Rev

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

Rev 21145 Rev 21146
Line 268... Line 268...
268
			logger.error("Error while creating the manifest file", e);
268
			logger.error("Error while creating the manifest file", e);
269
		}
269
		}
270
		
270
		
271
		
271
		
272
		String cod_str = isCod?"COD":"PREPAID";
272
		String cod_str = isCod?"COD":"PREPAID";
273
		String filename_manifest = "/tmp/manifest-"+warehouseId+"- "+providerId+"- "+cod_str+"-"+Calendar.getInstance().getTimeInMillis();
273
		String filename_manifest = "/tmp/manifest-"+warehouseId+"-"+providerId+"-"+cod_str+"-"+Calendar.getInstance().getTimeInMillis()+".pdf";
274
		File f = new File(filename_manifest);
274
		File f = new File(filename_manifest);
275
		try{
275
		try{
276
		FileOutputStream fos = new FileOutputStream(f);
276
		FileOutputStream fos = new FileOutputStream(f);
277
		baosPDF.writeTo(fos);
277
		baosPDF.writeTo(fos);
278
		}
278
		}