Subversion Repositories SmartDukaan

Rev

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

Rev 4805 Rev 5227
Line 5... Line 5...
5
import in.shop2020.model.v1.catalog.InventoryService.Client;
5
import in.shop2020.model.v1.catalog.InventoryService.Client;
6
import in.shop2020.model.v1.catalog.InventoryServiceException;
6
import in.shop2020.model.v1.catalog.InventoryServiceException;
7
import in.shop2020.model.v1.catalog.Item;
7
import in.shop2020.model.v1.catalog.Item;
8
import in.shop2020.model.v1.catalog.Source;
8
import in.shop2020.model.v1.catalog.Source;
9
import in.shop2020.model.v1.catalog.SourceItemPricing;
9
import in.shop2020.model.v1.catalog.SourceItemPricing;
-
 
10
import in.shop2020.model.v1.catalog.status;
10
import in.shop2020.thrift.clients.CatalogClient;
11
import in.shop2020.thrift.clients.CatalogClient;
11
import in.shop2020.util.Utils;
12
import in.shop2020.util.Utils;
12
 
13
 
13
import java.io.BufferedWriter;
14
import java.io.BufferedWriter;
14
import java.io.File;
15
import java.io.File;
Line 116... Line 117...
116
			itemDetail.put("SHOWMRP", showmrp +"");
117
			itemDetail.put("SHOWMRP", showmrp +"");
117
			itemDetail.put("IS_SELECTED", item.isDefaultForEntity() ? "SELECTED" : "");
118
			itemDetail.put("IS_SELECTED", item.isDefaultForEntity() ? "SELECTED" : "");
118
			itemDetails.add(itemDetail);
119
			itemDetails.add(itemDetail);
119
			
120
			
120
			String bestDealsText = item.getBestDealText();
121
			String bestDealsText = item.getBestDealText();
121
			if( bestDealsText != null && bestDealsText.length() > 0 && offerText == null){
122
			if( bestDealsText != null && bestDealsText.length() > 0 && offerText == null && status.ACTIVE.equals(item.getItemStatus())){
122
				offerText = bestDealsText;
123
				offerText = bestDealsText;
123
			}
124
			}
124
		}
125
		}
125
		
126
		
126
		
127