Subversion Repositories SmartDukaan

Rev

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

Rev 7057 Rev 7079
Line 245... Line 245...
245
			}
245
			}
246
			document.close();
246
			document.close();
247
			baosPDF.close();
247
			baosPDF.close();
248
			// Adding facility to store the bill on the local directory. This will happen for only for Mahipalpur warehouse.
248
			// Adding facility to store the bill on the local directory. This will happen for only for Mahipalpur warehouse.
249
			if(withBill && !printAll){
249
			if(withBill && !printAll){
250
				String strOrderId = StringUtils.repeat("0", 10-String.valueOf(orderId).length());  
250
				String strOrderId = StringUtils.repeat("0", 10-String.valueOf(orderId).length()) + orderId;  
251
				String dirPath = "/SaholicInvoices" + File.separator + strOrderId.substring(0, 2) + File.separator + strOrderId.substring(2, 4) + File.separator + strOrderId.substring(4, 6);
251
				String dirPath = "/SaholicInvoices" + File.separator + strOrderId.substring(0, 2) + File.separator + strOrderId.substring(2, 4) + File.separator + strOrderId.substring(4, 6);
252
				String filename = dirPath + File.separator + orderId + ".pdf";
252
				String filename = dirPath + File.separator + orderId + ".pdf";
253
				File dirFile = new File(dirPath);
253
				File dirFile = new File(dirPath);
254
				if(!dirFile.exists()){
254
				if(!dirFile.exists()){
255
					dirFile.mkdirs();
255
					dirFile.mkdirs();