Subversion Repositories SmartDukaan

Rev

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

Rev 13734 Rev 16196
Line 157... Line 157...
157
	private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
157
	private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
158
	private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
158
	private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
159
 
159
 
160
	private static final String delhiPincodePrefix = "11";
160
	private static final String delhiPincodePrefix = "11";
161
	private static final String[] maharashtraPincodePrefix = {"40", "41", "42", "43", "44"};
161
	private static final String[] maharashtraPincodePrefix = {"40", "41", "42", "43", "44"};
-
 
162
	private static final String[] karnatakaPincodePrefix = {"56", "57", "58", "59"};
162
	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"};
163
	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"};
163
 
164
 
164
	public InvoiceGenerationService() {
165
	public InvoiceGenerationService() {
165
		try {
166
		try {
166
			tsc = new TransactionClient();
167
			tsc = new TransactionClient();
Line 1126... Line 1127...
1126
				if(order.getCustomer_pincode().trim().equalsIgnoreCase(telanganaPincodes[i])) {
1127
				if(order.getCustomer_pincode().trim().equalsIgnoreCase(telanganaPincodes[i])) {
1127
					return true;
1128
					return true;
1128
				}
1129
				}
1129
			}
1130
			}
1130
			return false;
1131
			return false;
-
 
1132
		} else if(order.getWarehouse_id() == 1765 || order.getWarehouse_id() == 1768){
-
 
1133
			for(int i=0; i< karnatakaPincodePrefix.length; i++) {
-
 
1134
				if(order.getCustomer_pincode().startsWith(karnatakaPincodePrefix[i])) {
-
 
1135
					return true;
-
 
1136
				}
-
 
1137
			}
-
 
1138
			return false;
1131
		}
1139
		}
1132
		else {
1140
		else {
1133
			for(int i=0; i< maharashtraPincodePrefix.length; i++) {
1141
			for(int i=0; i< maharashtraPincodePrefix.length; i++) {
1134
				if(order.getCustomer_pincode().startsWith(maharashtraPincodePrefix[i])) {
1142
				if(order.getCustomer_pincode().startsWith(maharashtraPincodePrefix[i])) {
1135
					return true;
1143
					return true;