Subversion Repositories SmartDukaan

Rev

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

Rev 12590 Rev 12809
Line 145... Line 145...
145
	private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
145
	private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
146
	private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
146
	private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
147
 
147
 
148
	private static final String delhiPincodePrefix = "11";
148
	private static final String delhiPincodePrefix = "11";
149
	private static final String[] maharashtraPincodePrefix = {"40", "41", "42", "43", "44"};
149
	private static final String[] maharashtraPincodePrefix = {"40", "41", "42", "43", "44"};
-
 
150
	private static final String[] telanganaPincodes = {"500001","500002","500003","500004","500005","500006","500007","500008","500009","500010","500011","500012","500013","500014","500015","500016","500017","500018","500019","500020","500021","500022","500023","500024","500025","500026","500027","500028","500029","500030","500031","500032","500033","500034","500035","500036","500037","500038","500039","500040","500041","500042","500043","500044","500045","500046","500047","500048","500049","500050","500051","500052","500053","500054","500055","500056","500057","500058","500059","500060","500061","500062","500063","500064","500065","500066","500067","500068","500069","500070","500071","500072","500073","500074","500075","500076","500077","500078","500079","500080","500081","500082","500083","500084","500085","500086","500087","500088","500089","500090","500091","500092","500093","500094","500095","500096","500097","500098","500178","500409","501218","501301","501401","501510","501511","501512","502307","502319","517501","517502","517503","517505","517507","520001","520002","520003","520004","520005","520006","520007","520008","520009","520010","520011","520012","520013","520014","520015","521108","521225","522001","522002","522003","522004","522005","522006","522007","522019","522509","530001","530002","530003","530004","530005","530007","530008","530009","530010","530010","530011","530012","530013","530014","530015","530016","530017","530018","530020","530021","530022","530023","530024","530026","530027","530028","530029","530032","530035","530040","530041","530043","530044","530045","530046","531001","533101","533103","533104","533105"};
150
 
151
 
151
	public InvoiceGenerationService() {
152
	public InvoiceGenerationService() {
152
		try {
153
		try {
153
			tsc = new TransactionClient();
154
			tsc = new TransactionClient();
154
			csc = new InventoryClient();
155
			csc = new InventoryClient();
Line 753... Line 754...
753
			if(order.getCustomer_pincode().startsWith(delhiPincodePrefix)) {
754
			if(order.getCustomer_pincode().startsWith(delhiPincodePrefix)) {
754
				return true;
755
				return true;
755
			} else {
756
			} else {
756
				return false;
757
				return false;
757
			}
758
			}
-
 
759
		} else if(order.getWarehouse_id() == 3298){
-
 
760
			for(int i=0; i< telanganaPincodes.length; i++) {
-
 
761
				if(order.getCustomer_pincode().trim().equalsIgnoreCase(telanganaPincodes[i])) {
-
 
762
					return true;
-
 
763
				}
-
 
764
			}
-
 
765
			return false;
-
 
766
		}
758
		} else {
767
		else {
759
			for(int i=0; i< maharashtraPincodePrefix.length; i++) {
768
			for(int i=0; i< maharashtraPincodePrefix.length; i++) {
760
				if(order.getCustomer_pincode().startsWith(maharashtraPincodePrefix[i])) {
769
				if(order.getCustomer_pincode().startsWith(maharashtraPincodePrefix[i])) {
761
					return true;
770
					return true;
762
				}
771
				}
763
			}
772
			}