Subversion Repositories SmartDukaan

Rev

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

Rev 11762 Rev 11864
Line 160... Line 160...
160
	    CatalogService.Client catalogClient;
160
	    CatalogService.Client catalogClient;
161
	    for(Line line : cart.getLines()) {
161
	    for(Line line : cart.getLines()) {
162
	        CartLinePojo linepojo = new CartLinePojo();
162
	        CartLinePojo linepojo = new CartLinePojo();
163
	        catalogClient = new CatalogClient().getClient();
163
	        catalogClient = new CatalogClient().getClient();
164
	        Item item = catalogClient.getItem(line.getItemId());
164
	        Item item = catalogClient.getItem(line.getItemId());
-
 
165
	        linepojo.setDealText(line.isSetDealText()? line.getDealText() : item.getBestDealText());
165
	        linepojo.setDataProtectionAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DATA)>0);
166
	        linepojo.setDataProtectionAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DATA)>0);
166
	        linepojo.setTheftInsuranceAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
167
	        linepojo.setTheftInsuranceAvailable(getCatalogCleint(catalogClient).getPrefferedInsurerForItem(line.getItemId(), InsurerType.DEVICE)>0);
167
	        linepojo.setItemId(line.getItemId());
168
	        linepojo.setItemId(line.getItemId());
168
	        linepojo.setActualPrice(line.getActualPrice());
169
	        linepojo.setActualPrice(line.getActualPrice());
169
	        linepojo.setDataProtectionAmount(line.getDataProtectionAmount());
170
	        linepojo.setDataProtectionAmount(line.getDataProtectionAmount());