Subversion Repositories SmartDukaan

Rev

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

Rev 20846 Rev 21145
Line 24... Line 24...
24
import java.net.MalformedURLException;
24
import java.net.MalformedURLException;
25
import java.text.DateFormat;
25
import java.text.DateFormat;
26
import java.text.DecimalFormat;
26
import java.text.DecimalFormat;
27
import java.text.SimpleDateFormat;
27
import java.text.SimpleDateFormat;
28
import java.util.ArrayList;
28
import java.util.ArrayList;
-
 
29
import java.util.Calendar;
29
import java.util.Date;
30
import java.util.Date;
30
import java.util.HashMap;
31
import java.util.HashMap;
31
import java.util.List;
32
import java.util.List;
32
import java.util.Map;
33
import java.util.Map;
33
 
34
 
Line 264... Line 265...
264
		} catch (MalformedURLException e) {
265
		} catch (MalformedURLException e) {
265
		    logger.error("Error while creating the manifest file", e);
266
		    logger.error("Error while creating the manifest file", e);
266
		} catch (IOException e) {
267
		} catch (IOException e) {
267
			logger.error("Error while creating the manifest file", e);
268
			logger.error("Error while creating the manifest file", e);
268
		}
269
		}
-
 
270
		
-
 
271
		
-
 
272
		String cod_str = isCod?"COD":"PREPAID";
-
 
273
		String filename_manifest = "/tmp/manifest-"+warehouseId+"- "+providerId+"- "+cod_str+"-"+Calendar.getInstance().getTimeInMillis();
-
 
274
		File f = new File(filename_manifest);
-
 
275
		try{
-
 
276
		FileOutputStream fos = new FileOutputStream(f);
-
 
277
		baosPDF.writeTo(fos);
-
 
278
		}
-
 
279
		catch(Exception manifestWriteException){
-
 
280
			manifestWriteException.printStackTrace();
-
 
281
		}
269
 
282
 
270
		return baosPDF;
283
		return baosPDF;
-
 
284
		
-
 
285
		
271
	}
286
	}
272
 
287
 
273
	private static PickupStore getStoreFromId(List<PickupStore> stores, long storeId){
288
	private static PickupStore getStoreFromId(List<PickupStore> stores, long storeId){
274
		for(PickupStore store: stores){
289
		for(PickupStore store: stores){
275
			if(store.getId() == storeId)
290
			if(store.getId() == storeId)