Subversion Repositories SmartDukaan

Rev

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

Rev 24847 Rev 24853
Line 1164... Line 1164...
1164
			}
1164
			}
1165
			NotificationCampaigns notification = new NotificationCampaigns();
1165
			NotificationCampaigns notification = new NotificationCampaigns();
1166
			notification.setName("Daily Sales");
1166
			notification.setName("Daily Sales");
1167
			notification.setTitle("Daily Sale Update");
1167
			notification.setTitle("Daily Sale Update");
1168
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1168
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1169
				notification.setMessage(String.format("Rs.%d till %f. Today's Target is Rs.%f", sale,
1169
				notification.setMessage(String.format("Rs.%f till %s. Today's Target is Rs.%f", sale,
1170
						now.format(timeFormatter), dailyAverageSale.get(fofoId)));
1170
						now.format(timeFormatter), dailyAverageSale.get(fofoId)));
1171
			} else {
1171
			} else {
1172
				notification.setMessage(String.format("Rs.%d till %f", sale,
1172
				notification.setMessage(String.format("Rs.%f till %s", sale,
1173
						now.format(timeFormatter)));
1173
						now.format(timeFormatter)));
1174
			}
1174
			}
1175
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1175
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1176
			notification.setType("Url");
1176
			notification.setType("Url");
1177
			notification.setUrl("http://app.profitmandi.com/pages/home/dashboard");
1177
			notification.setUrl("http://app.profitmandi.com/pages/home/dashboard");