| 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());
|