Subversion Repositories SmartDukaan

Rev

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

Rev 23861 Rev 24009
Line 235... Line 235...
235
				ffdr.setBrand(doc.getString("brand_s"));
235
				ffdr.setBrand(doc.getString("brand_s"));
236
 
236
 
237
				for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
237
				for (int j = 0; j < doc.getJSONArray("_childDocuments_").length(); j++) {
238
					JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
238
					JSONObject childItem = doc.getJSONArray("_childDocuments_").getJSONObject(j);
239
					int itemId = childItem.getInt("itemId_i");
239
					int itemId = childItem.getInt("itemId_i");
-
 
240
					TagListing tl = itemTagListingMap.get(itemId);
240
					if (hotDeal) {
241
					if (hotDeal) {
241
						TagListing tl = itemTagListingMap.get(itemId);
-
 
242
						if (!tl.isHotDeals()) {
242
						if (!tl.isHotDeals()) {
243
							continue;
243
							continue;
244
						}
244
						}
245
					}
245
					}
246
					float sellingPrice = (float) childItem.getDouble("sellingPrice_f");
246
					float sellingPrice = (float) childItem.getDouble("sellingPrice_f");
Line 261... Line 261...
261
						if (item.getCategoryId() == 10020) {
261
						if (item.getCategoryId() == 10020) {
262
							fdi.setMinBuyQuantity(5);
262
							fdi.setMinBuyQuantity(5);
263
						} else {
263
						} else {
264
							fdi.setMinBuyQuantity(1);
264
							fdi.setMinBuyQuantity(1);
265
						}
265
						}
266
						if (hotDeal) {
266
						if (hotDeal || !tl.isActive()) {
267
 
267
 
268
							int totalAvailability = 0; // Using item availability cache for now but can be changed to
268
							int totalAvailability = 0; // Using item availability cache for now but can be changed to
269
														// use caching later.
269
														// use caching later.
270
							try {
270
							try {
271
								ItemAvailabilityCache iac = itemAvailabilityCacheRepository.selectByItemId(itemId);
271
								ItemAvailabilityCache iac = itemAvailabilityCacheRepository.selectByItemId(itemId);