Subversion Repositories SmartDukaan

Rev

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

Rev 24863 Rev 24864
Line 1169... Line 1169...
1169
			}
1169
			}
1170
			NotificationCampaigns notification = new NotificationCampaigns();
1170
			NotificationCampaigns notification = new NotificationCampaigns();
1171
			notification.setName("Daily Sales");
1171
			notification.setName("Daily Sales");
1172
			notification.setTitle("Daily Sale Update");
1172
			notification.setTitle("Daily Sale Update");
1173
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1173
			if (dailyAverageSale != null && dailyAverageSale.get(fofoId) != null) {
1174
				notification.setMessage(String.format("Rs.%f till %s. Today's Target is Rs.%f", sale,
1174
				notification.setMessage(String.format("Rs.%.0f till %s. Today's Target is Rs.%.0f", sale,
1175
						now.format(timeFormatter), dailyAverageSale.get(fofoId)));
1175
						now.format(timeFormatter), dailyAverageSale.get(fofoId)));
1176
			} else {
1176
			} else {
1177
				notification.setMessage(String.format("Rs.%f till %s", sale,
1177
				notification.setMessage(String.format("Rs.%.0f till %s", sale,
1178
						now.format(timeFormatter)));
1178
						now.format(timeFormatter)));
1179
			}
1179
			}
1180
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1180
			// notification.setMessage("Your sale is "+salesbyfofoId.get(fofoId));
1181
			notification.setType("Url");
1181
			notification.setType("Url");
1182
			notification.setUrl("http://app.profitmandi.com/pages/home/notifications");
1182
			notification.setUrl("http://app.profitmandi.com/pages/home/notifications");