Subversion Repositories SmartDukaan

Rev

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

Rev 23904 Rev 23918
Line 93... Line 93...
93
			}
93
			}
94
			LOGGER.info("walletAmount is {}, inStockAmount is {}, unbilledStockAmount is {}, grnPendingStockAmount is {}",
94
			LOGGER.info("walletAmount is {}, inStockAmount is {}, unbilledStockAmount is {}, grnPendingStockAmount is {}",
95
					walletAmount, inStockAmount, unbilledStockAmount, grnPendingStockAmount);
95
					walletAmount, inStockAmount, unbilledStockAmount, grnPendingStockAmount);
96
			float totalInvestedAmount = walletAmount + inStockAmount + unbilledStockAmount + grnPendingStockAmount;
96
			float totalInvestedAmount = walletAmount + inStockAmount + unbilledStockAmount + grnPendingStockAmount;
97
			LOGGER.info("Total Amount in System is {}", totalInvestedAmount);
97
			LOGGER.info("Total Amount in System is {}", totalInvestedAmount);
-
 
98
			float shortPercentage = ((fofoStore.getMinimumInvestment() - totalInvestedAmount)/fofoStore.getMinimumInvestment())*100;
98
			LOGGER.info("Store minimum investment is {}", fofoStore.getMinimumInvestment());
99
			LOGGER.info("Store minimum investment is {}", fofoStore.getMinimumInvestment());
-
 
100
			LOGGER.info("Investment Currently Short by {}%", shortPercentage);
-
 
101
			model.addAttribute("walletAmount", walletAmount);
-
 
102
			model.addAttribute("inStockAmount", inStockAmount);
-
 
103
			model.addAttribute("unbilledStockAmount", unbilledStockAmount);
-
 
104
			model.addAttribute("grnPendingStockAmount", grnPendingStockAmount);
-
 
105
			model.addAttribute("shortPercentage", shortPercentage);
-
 
106
			model.addAttribute("totalInvestedAmount", totalInvestedAmount);
99
			LOGGER.info("Investment Currently Short by {}%", ((fofoStore.getMinimumInvestment() - totalInvestedAmount)/fofoStore.getMinimumInvestment())*100);
107
			model.addAttribute("minimumInvestmentAmount", fofoStore.getMinimumInvestment());
-
 
108
			model.addAttribute("showAlert", true);
100
		}
109
		}
101
		model.addAttribute("fofoStore", fofoStore);
110
		model.addAttribute("fofoStore", fofoStore);
-
 
111
		model.addAttribute("walletAmount");
102
		model.addAttribute("appContextPath", request.getContextPath());
112
		model.addAttribute("appContextPath", request.getContextPath());
103
		model.addAttribute("isAdmin", roleManager.isAdmin(loginDetails.getRoleIds()));
113
		model.addAttribute("isAdmin", roleManager.isAdmin(loginDetails.getRoleIds()));
104
		model.addAttribute("webApiHost", webApiHost);
114
		model.addAttribute("webApiHost", webApiHost);
105
		model.addAttribute("webApiPort", webApiPort);
115
		model.addAttribute("webApiPort", webApiPort);
106
		//LOGGER.info("loginDetails.getFofoId()"+loginDetails.getFofoId());
116
		//LOGGER.info("loginDetails.getFofoId()"+loginDetails.getFofoId());