| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.datalogger.EventType;
|
3 |
import in.shop2020.datalogger.EventType;
|
| - |
|
4 |
import in.shop2020.logistics.DeliveryType;
|
| 4 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
5 |
import in.shop2020.model.v1.catalog.CatalogService.Client;
|
| 5 |
import in.shop2020.model.v1.catalog.Insurer;
|
6 |
import in.shop2020.model.v1.catalog.Insurer;
|
| 6 |
import in.shop2020.model.v1.catalog.Item;
|
7 |
import in.shop2020.model.v1.catalog.Item;
|
| 7 |
import in.shop2020.model.v1.catalog.ItemInsurerMapping;
|
- |
|
| 8 |
import in.shop2020.model.v1.user.Cart;
|
8 |
import in.shop2020.model.v1.user.Cart;
|
| 9 |
import in.shop2020.model.v1.user.Line;
|
9 |
import in.shop2020.model.v1.user.Line;
|
| 10 |
import in.shop2020.model.v1.user.ShoppingCartException;
|
10 |
import in.shop2020.model.v1.user.ShoppingCartException;
|
| 11 |
import in.shop2020.model.v1.user.UserContextService;
|
11 |
import in.shop2020.model.v1.user.UserContextService;
|
| 12 |
import in.shop2020.serving.services.ContentServingService;
|
12 |
import in.shop2020.serving.services.ContentServingService;
|
| Line 330... |
Line 330... |
| 330 |
itemdetail.put("CATALOG_ID", item.getCatalogItemId() + "");
|
330 |
itemdetail.put("CATALOG_ID", item.getCatalogItemId() + "");
|
| 331 |
itemdetail.put("ITEM_QUANTITY", ((int)line.getQuantity()) + "");
|
331 |
itemdetail.put("ITEM_QUANTITY", ((int)line.getQuantity()) + "");
|
| 332 |
itemdetail.put("MRP", formattingUtils.formatPrice(item.getMrp()));
|
332 |
itemdetail.put("MRP", formattingUtils.formatPrice(item.getMrp()));
|
| 333 |
itemdetail.put("SELLING_PRICE", formattingUtils.formatPrice(item.getSellingPrice()));
|
333 |
itemdetail.put("SELLING_PRICE", formattingUtils.formatPrice(item.getSellingPrice()));
|
| 334 |
itemdetail.put("TOTAL_PRICE", formattingUtils.formatPrice(((item.getSellingPrice() * line.getQuantity()))));
|
334 |
itemdetail.put("TOTAL_PRICE", formattingUtils.formatPrice(((item.getSellingPrice() * line.getQuantity()))));
|
| 335 |
itemdetail.put("SHIPPING_TIME", EstimateController.checkValidDeliveryEstimate(line.getEstimate()));
|
335 |
itemdetail.put("SHIPPING_TIME", EstimateController.getDeliveryDateString(line.getEstimate(), DeliveryType.PREPAID));
|
| 336 |
itemdetail.put("BEST_DEAL_TEXT", item.getBestDealText());
|
336 |
itemdetail.put("BEST_DEAL_TEXT", item.getBestDealText());
|
| 337 |
itemdetail.put("IS_INSURABLE", item.getPreferredInsurer() + "");
|
337 |
itemdetail.put("IS_INSURABLE", item.getPreferredInsurer() + "");
|
| 338 |
itemdetail.put("IS_INSURED", (line.getInsurer() == 0 ? false : true) + "");
|
338 |
itemdetail.put("IS_INSURED", (line.getInsurer() == 0 ? false : true) + "");
|
| 339 |
itemdetail.put("INSURANCE_AMOUNT", insuranceAmount + "");
|
339 |
itemdetail.put("INSURANCE_AMOUNT", insuranceAmount + "");
|
| 340 |
|
340 |
|