| Line 153... |
Line 153... |
| 153 |
|
153 |
|
| 154 |
private static final double ONE_LAC = 1 * 1000 * 100;
|
154 |
private static final double ONE_LAC = 1 * 1000 * 100;
|
| 155 |
private static final double TWO_LAC = 2 * 1000 * 100;
|
155 |
private static final double TWO_LAC = 2 * 1000 * 100;
|
| 156 |
private static final double FOUR_LAC = 4 * 1000 * 100;
|
156 |
private static final double FOUR_LAC = 4 * 1000 * 100;
|
| 157 |
|
157 |
|
| - |
|
158 |
List<String> emails = Arrays.asList("kamini.sharma@smartdukaan.com", "neeraj.gupta@smartdukaan.com",
|
| - |
|
159 |
"kuldeep.kumar@smartdukaan.com", "uday.singh@smartdukaan.com", "niranjan.kala@smartdukaan.com");
|
| - |
|
160 |
|
| 158 |
@Value("${web.api.host}")
|
161 |
@Value("${web.api.host}")
|
| 159 |
private String webApiHost;
|
162 |
private String webApiHost;
|
| 160 |
|
163 |
|
| 161 |
@Value("${web.api.scheme}")
|
164 |
@Value("${web.api.scheme}")
|
| 162 |
private String webApiScheme;
|
165 |
private String webApiScheme;
|
| Line 814... |
Line 817... |
| 814 |
long stockQty = 0;
|
817 |
long stockQty = 0;
|
| 815 |
long pendingIndent = 0;
|
818 |
long pendingIndent = 0;
|
| 816 |
long tertiary = 0;
|
819 |
long tertiary = 0;
|
| 817 |
|
820 |
|
| 818 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
|
821 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
|
| - |
|
822 |
|
| 819 |
Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
|
823 |
Set<Integer> fofoIds = storeGuyMap.get(authUser.getEmailId());
|
| - |
|
824 |
if (emails.contains(authUser.getEmailId())) {
|
| - |
|
825 |
fofoIds = storeGuyMap.get("tarun.verma@smartdukaan.com");
|
| - |
|
826 |
}
|
| 820 |
|
827 |
|
| 821 |
LOGGER.info("fofoIds" + fofoIds);
|
828 |
LOGGER.info("fofoIds" + fofoIds);
|
| 822 |
|
829 |
|
| 823 |
if (fofoIds != null) {
|
830 |
if (fofoIds != null) {
|
| 824 |
|
831 |
|
| Line 1564... |
Line 1571... |
| 1564 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(fofoId);
|
1571 |
CustomRetailer customRetailer = retailerService.getFofoRetailer(fofoId);
|
| 1565 |
model.addAttribute("partnerDetailModel", partnerDetailModel);
|
1572 |
model.addAttribute("partnerDetailModel", partnerDetailModel);
|
| 1566 |
model.addAttribute("customRetailer", customRetailer);
|
1573 |
model.addAttribute("customRetailer", customRetailer);
|
| 1567 |
return "partner-investment";
|
1574 |
return "partner-investment";
|
| 1568 |
}
|
1575 |
}
|
| - |
|
1576 |
|
| 1569 |
@RequestMapping(value = "/getPartnerPendingIndentItem", method = RequestMethod.GET)
|
1577 |
@RequestMapping(value = "/getPartnerPendingIndentItem", method = RequestMethod.GET)
|
| 1570 |
public String getPartnerPendingIndentItem(HttpServletRequest request, @RequestParam int warehouseId,
|
1578 |
public String getPartnerPendingIndentItem(HttpServletRequest request, @RequestParam int warehouseId,
|
| 1571 |
@RequestParam int itemId, Model model) throws ProfitMandiBusinessException {
|
1579 |
@RequestParam int itemId, Model model) throws ProfitMandiBusinessException {
|
| 1572 |
List<PartnerPendingIndentItemModel> partnerPendingIndent = fofoStoreRepository
|
1580 |
List<PartnerPendingIndentItemModel> partnerPendingIndent = fofoStoreRepository
|
| 1573 |
.selectPartnerPendingIndentItem(itemId, warehouseId);
|
1581 |
.selectPartnerPendingIndentItem(itemId, warehouseId);
|
| 1574 |
|
1582 |
|
| 1575 |
model.addAttribute("partnerPendingIndent", partnerPendingIndent);
|
1583 |
model.addAttribute("partnerPendingIndent", partnerPendingIndent);
|
| 1576 |
return "partner-pending-indent-item";
|
1584 |
return "partner-pending-indent-item";
|
| 1577 |
}
|
1585 |
}
|
| 1578 |
|
1586 |
|
| 1579 |
|
- |
|
| 1580 |
|
- |
|
| 1581 |
@RequestMapping(value = "/getPatnerActivateStock", method = RequestMethod.GET)
|
1587 |
@RequestMapping(value = "/getPatnerActivateStock", method = RequestMethod.GET)
|
| 1582 |
public String getPartnerActivateStockItem(HttpServletRequest request,
|
1588 |
public String getPartnerActivateStockItem(HttpServletRequest request,
|
| 1583 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
1589 |
@RequestParam(name = ProfitMandiConstants.FOFO_ID) int fofoId, Model model) throws Exception {
|
| 1584 |
List<ActivateItemModel> activateStocks = new ArrayList<>();
|
1590 |
List<ActivateItemModel> activateStocks = new ArrayList<>();
|
| 1585 |
List<InventoryItem> inventoryItems = inventoryItemRepository.selectByActivatedNotSold(fofoId);
|
1591 |
List<InventoryItem> inventoryItems = inventoryItemRepository.selectByActivatedNotSold(fofoId);
|