Subversion Repositories SmartDukaan

Rev

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

Rev 25222 Rev 25223
Line 195... Line 195...
195
			//Should not consider today's sale while evaluating today's target.
195
			//Should not consider today's sale while evaluating today's target.
196
			double todayTargetValue = Math.round((targetValue - (mtdSale-todaySale))/remainingDays);
196
			double todayTargetValue = Math.round((targetValue - (mtdSale-todaySale))/remainingDays);
197
			DecimalFormat df = new DecimalFormat("#.##");
197
			DecimalFormat df = new DecimalFormat("#.##");
198
			String targetValueString = df.format(targetValue/100000) + "Lac";
198
			String targetValueString = df.format(targetValue/100000) + "Lac";
199
			salesMap.put("todayTarget", todayTargetValue);
199
			salesMap.put("todayTarget", todayTargetValue);
200
			salesMap.put("monthTarget", targetValue);
200
			salesMap.put("monthTarget", targetValueString);
201
		} else {
201
		} else {
202
			salesMap.put("todayTarget", 0d);
202
			salesMap.put("todayTarget", 0d);
203
			salesMap.put("monthTarget", 0d);
203
			salesMap.put("monthTarget", 0d);
204
 
204
 
205
		}
205
		}