Subversion Repositories SmartDukaan

Rev

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

Rev 23936 Rev 23944
Line 103... Line 103...
103
				grnPendingStockAmount += grnPendingOrder.getTotalAmount();
103
				grnPendingStockAmount += grnPendingOrder.getTotalAmount();
104
			}
104
			}
105
			totalInvestedAmount = walletAmount + inStockAmount + unbilledStockAmount + grnPendingStockAmount;
105
			totalInvestedAmount = walletAmount + inStockAmount + unbilledStockAmount + grnPendingStockAmount;
106
			shortPercentage = ((fofoStore.getMinimumInvestment() - totalInvestedAmount)
106
			shortPercentage = ((fofoStore.getMinimumInvestment() - totalInvestedAmount)
107
					/ fofoStore.getMinimumInvestment()) * 100;
107
					/ fofoStore.getMinimumInvestment()) * 100;
108
			model.addAttribute("showAlert", shortPercentage < 90);
108
			model.addAttribute("showAlert", shortPercentage > 10);
109
			minimumInvestment = fofoStore.getMinimumInvestment();
109
			minimumInvestment = fofoStore.getMinimumInvestment();
110
		}
110
		}
111
		model.addAttribute("walletAmount", walletAmount);
111
		model.addAttribute("walletAmount", walletAmount);
112
		model.addAttribute("inStockAmount", inStockAmount);
112
		model.addAttribute("inStockAmount", inStockAmount);
113
		model.addAttribute("unbilledStockAmount", unbilledStockAmount);
113
		model.addAttribute("unbilledStockAmount", unbilledStockAmount);