Subversion Repositories SmartDukaan

Rev

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

Rev 12543 Rev 12729
Line 39... Line 39...
39
    private static final String ourAddressBangaloreSR = "Spice Online Retail Pvt. Ltd.\n Shop No. 320, Municipal 59th Cross,\n Next to Rammandir Ground,\n 3rd Block, Rajaji Nagar,\nBangalore - 560010, Karnataka\n";
39
    private static final String ourAddressBangaloreSR = "Spice Online Retail Pvt. Ltd.\n Shop No. 320, Municipal 59th Cross,\n Next to Rammandir Ground,\n 3rd Block, Rajaji Nagar,\nBangalore - 560010, Karnataka\n";
40
    private static final String ourAddressGurgaon = "Spice online Retail Private Limited,\n SHOP NO. 10 & 11,\n OLD DELHI ROAD,OPP SECTOR-14, GURGAON-122001 Haryana\n";
40
    private static final String ourAddressGurgaon = "Spice online Retail Private Limited,\n SHOP NO. 10 & 11,\n OLD DELHI ROAD,OPP SECTOR-14, GURGAON-122001 Haryana\n";
41
    
41
    
42
    private static final String amazonAddress = "Spice Online Retail Pvt. Ltd. C/O Amazon Seller Services  Pvt. Ltd.,\nBuilding H Prathmesh Complex, Saravali Village,\nOpp Hotel Vatika Kalyan, Bhivandi Junction,\nBhiwandi, Maharashtra\n";
42
    private static final String amazonAddress = "Spice Online Retail Pvt. Ltd. C/O Amazon Seller Services  Pvt. Ltd.,\nBuilding H Prathmesh Complex, Saravali Village,\nOpp Hotel Vatika Kalyan, Bhivandi Junction,\nBhiwandi, Maharashtra\n";
43
    private static final String amazonAddreseBangalore = "Spice Online Retail Pvt. Ltd.\n C/O Amazon Seller Services Pvt. Ltd.\n 38 & 39, Soukya Road,\n kacherakanahalli,\n Hoskote Taluka,\n Bangalore  -560067, Karnataka\n";
43
    private static final String amazonAddreseBangalore = "Spice Online Retail Pvt. Ltd.\n C/O Amazon Seller Services Pvt. Ltd.\n 38 & 39, Soukya Road,\n kacherakanahalli,\n Hoskote Taluka,\n Bangalore  -560067, Karnataka\n";
-
 
44
    private static final String amazonAddressMewat = "AMAZON Seller Services Pvt. Limited,\n  Gokaldas Warehousing Corporation,  Unit No 1,\n Village Taoru,  Tehsil Taoru, Distt Mewat - 122105";
44
    private static final String flipkartAddressGgn = "Spice Online Retail Pvt. Ltd.\n C/O. Flipkart Internet Pvt. Ltd, \n KILLA NO.219/15-16 25/1 220/11 12/1 12/2 13/1/113/1/2 20 21/1 21/2/1 22/1 23/1/1,\n Bohra Kalan, PATAUDI, GURGAON - 122001, Haryana\n";
45
    private static final String flipkartAddressGgn = "Spice Online Retail Pvt. Ltd.\n C/O. Flipkart Internet Pvt. Ltd, \n KILLA NO.219/15-16 25/1 220/11 12/1 12/2 13/1/113/1/2 20 21/1 21/2/1 22/1 23/1/1,\n Bohra Kalan, PATAUDI, GURGAON - 122001, Haryana\n";
45
    private static final String tinNoDelhi = "07250399732";
46
    private static final String tinNoDelhi = "07250399732";
46
    private static final String tinNoMum = "27450984008";
47
    private static final String tinNoMum = "27450984008";
47
    private static final String tinNoBan = "29171183852";
48
    private static final String tinNoBan = "29171183852";
48
    private static final String tinNoFkGgn = "06681944625";
49
    private static final String tinNoFkGgn = "06681944625";
Line 204... Line 205...
204
	    		shippingAddress = flipkartAddressGgn;
205
	    		shippingAddress = flipkartAddressGgn;
205
	    		shippingTinNo = tinNoFkGgn;
206
	    		shippingTinNo = tinNoFkGgn;
206
	    	} else if(shippingWarehouseId == 2857){
207
	    	} else if(shippingWarehouseId == 2857){
207
	    		shippingAddress = ourAddressGurgaon;
208
	    		shippingAddress = ourAddressGurgaon;
208
	    		shippingTinNo = tinNoOurGgn;
209
	    		shippingTinNo = tinNoOurGgn;
-
 
210
	    	} else if(shippingWarehouseId == 3295){
-
 
211
	    		shippingAddress = amazonAddressMewat;
-
 
212
	    		shippingTinNo = tinNoOurGgn;
209
	    	}
213
	    	}
210
			
214
			
211
			PdfPCell billToShipToCell = new PdfPCell();
215
			PdfPCell billToShipToCell = new PdfPCell();
212
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
216
			billToShipToCell.setHorizontalAlignment(Element.ALIGN_LEFT);
213
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
217
			billToShipToCell.setBorder(Rectangle.NO_BORDER);
Line 295... Line 299...
295
    	String tinNo = "";
299
    	String tinNo = "";
296
    	String contactPerson = "";
300
    	String contactPerson = "";
297
    	if(warehouseId ==7) {
301
    	if(warehouseId ==7) {
298
    		address = ourAddressDelhi;
302
    		address = ourAddressDelhi;
299
    		tinNo = tinNoDelhi;
303
    		tinNo = tinNoDelhi;
300
    		contactPerson = "Mr. Shiv Kumar, Contact No. +91 9911232226";
304
    		contactPerson = "Mr. Shiv Kumar, Contact No. +91 9953858076";
301
    	} else if(warehouseId == 12) {
305
    	} else if(warehouseId == 12) {
302
    		address = ourAddressGoregaon;
306
    		address = ourAddressGoregaon;
303
    		tinNo = tinNoMum;
307
    		tinNo = tinNoMum;
304
    		contactPerson = "Mr. Avinash Sambhaji Lavange, Contact No. +91 9004049589";
308
    		contactPerson = "Mr. Avinash Sambhaji Lavange, Contact No. +91 9004049589";
305
    	} else if(warehouseId == 13) {
309
    	} else if(warehouseId == 13) {
306
    		address = ourAddressBhiwandi;
310
    		address = ourAddressBhiwandi;
307
    		tinNo = tinNoMum;
311
    		tinNo = tinNoMum;
308
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
312
    		contactPerson = "Mr. Vishal Tayade, Contact No. +91 9819231651";
309
    	} else if(warehouseId ==16) {
313
    	} else if(warehouseId ==16) {
310
    		address = amazonAddress;
314
    		address = amazonAddress;
311
    		tinNo = tinNoMum;
315
    		tinNo = tinNoMum;
312
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
316
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
313
    	} else if(warehouseId ==16) {
317
    	} else if(warehouseId ==16) {
Line 320... Line 324...
320
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
324
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
321
    	}
325
    	}
322
    	else if(warehouseId ==1765) {
326
    	else if(warehouseId ==1765) {
323
    		address = ourAddressBangalore;
327
    		address = ourAddressBangalore;
324
    		tinNo = tinNoBan;
328
    		tinNo = tinNoBan;
325
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
329
    		contactPerson = "Mr. Ravi Kumar, Contact No. +91 9686392567";
326
    	}
330
    	}
327
    	else if(warehouseId ==1768) {
331
    	else if(warehouseId ==1768) {
328
    		address = ourAddressBangaloreSR;
332
    		address = ourAddressBangaloreSR;
329
    		tinNo = tinNoBan;
333
    		tinNo = tinNoBan;
330
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
334
    		contactPerson = "Mr. Ravi Kumar, Contact No. +91 9686392567";
331
    	}
335
    	}
332
    	else if(warehouseId ==1771) {
336
    	else if(warehouseId ==1771) {
333
    		address = amazonAddreseBangalore;
337
    		address = amazonAddreseBangalore;
334
    		tinNo = tinNoBan;
338
    		tinNo = tinNoBan;
335
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
339
    		contactPerson = "Mr. Ravi Kumar, Contact No. +91 9686392567";
336
    	}
340
    	}
337
    	else if(warehouseId ==2854) {
341
    	else if(warehouseId ==2854) {
338
    		address = flipkartAddressGgn;
342
    		address = flipkartAddressGgn;
339
    		tinNo = tinNoFkGgn;
343
    		tinNo = tinNoFkGgn;
340
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
344
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
341
    	} 
345
    	} 
342
    	else if(warehouseId ==2857) {
346
    	else if(warehouseId ==2857) {
343
    		address = ourAddressGurgaon;
347
    		address = ourAddressGurgaon;
344
    		tinNo = tinNoOurGgn;
348
    		tinNo = tinNoOurGgn;
345
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
349
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
-
 
350
    	} 
-
 
351
    	else if(warehouseId == 3295) {
-
 
352
    		address = amazonAddressMewat;
-
 
353
    		tinNo = tinNoOurGgn;
-
 
354
    		contactPerson = "Mr. Sandeep Sachdeva, Contact No. +91 9716691287";
346
    	}
355
    	}
347
 
356
 
348
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
357
        PdfPTable billToTable = new PdfPTable(new float[] { 0.2f, 0.8f });
349
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
358
        billToTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
350
 
359