| Line 1354... |
Line 1354... |
| 1354 |
salesByFofoIdMap.put(fofoId, sale);
|
1354 |
salesByFofoIdMap.put(fofoId, sale);
|
| 1355 |
LOGGER.info(sale);
|
1355 |
LOGGER.info(sale);
|
| 1356 |
}
|
1356 |
}
|
| 1357 |
String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap, dailyTarget);
|
1357 |
String saleReport = this.getDailySalesReportByPartnerId(salesByFofoIdMap, dailyTarget);
|
| 1358 |
LOGGER.info(saleReport);
|
1358 |
LOGGER.info(saleReport);
|
| 1359 |
String cc[] = {};/*
|
1359 |
String cc[] =
|
| 1360 |
* { "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
1360 |
{ "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
| 1361 |
* "prakash.rai@smartdukaan.com", "chaitnaya.vats@smartdukaan.com",
|
1361 |
"prakash.rai@smartdukaan.com", "chaitnaya.vats@smartdukaan.com",
|
| 1362 |
* "adeel.yazdani@smartdukaan.com", "mohinder.mutreja@smartdukaan.com" };
|
1362 |
"adeel.yazdani@smartdukaan.com", "mohinder.mutreja@smartdukaan.com" };
|
| 1363 |
*/
|
1363 |
|
| 1364 |
String subject = "sale report till" + " " + now.format(timeFormatter);
|
1364 |
String subject = "Sale Report till" + " " + now.format(timeFormatter);
|
| 1365 |
this.sendMailOfHtmlFomat("amit.gupta@shop2020.in", saleReport, cc, subject);
|
1365 |
this.sendMailOfHtmlFomat("amit.gupta@shop2020.in", saleReport, cc, subject);
|
| 1366 |
// this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, cc,
|
1366 |
// this.sendMailOfHtmlFomat("amod.sen@smartdukaan.com", saleReport, cc,
|
| 1367 |
// subject);
|
1367 |
// subject);
|
| 1368 |
}
|
1368 |
}
|
| 1369 |
|
1369 |
|
| 1370 |
public String getDailySalesReportByPartnerId(Map<Integer, Double> salesByFofoIdMap, Map<Integer, Float> dailyTarget)
|
1370 |
public String getDailySalesReportByPartnerId(Map<Integer, Double> salesByFofoIdMap, Map<Integer, Float> dailyTarget)
|
| 1371 |
throws ProfitMandiBusinessException {
|
1371 |
throws ProfitMandiBusinessException {
|
| 1372 |
StringBuilder sb = new StringBuilder();
|
1372 |
StringBuilder sb = new StringBuilder();
|
| 1373 |
sb.append("<html><body><p>Sale Report:</p><br/><table style='border:1px solid black ;padding: 5px';>");
|
1373 |
sb.append("<html><body><p>Sale Report:</p><br/><table style='border:1px solid black';cellspacing=0>");
|
| 1374 |
sb.append("<tbody>\n" + " <tr>\n"
|
1374 |
sb.append("<tbody>\n" + " <tr>\n"
|
| 1375 |
+ " <th style='border:1px solid black;padding: 5px'>Partner</th>\n"
|
1375 |
+ " <th style='border:1px solid black;padding: 5px'>Partner</th>\n"
|
| 1376 |
+ " <th style='border:1px solid black;padding: 5px'>Daily Target</th>\n"
|
1376 |
+ " <th style='border:1px solid black;padding: 5px'>Daily Target</th>\n"
|
| 1377 |
+ " <th style='border:1px solid black;padding: 5px'>Sale</th>\n"
|
1377 |
+ " <th style='border:1px solid black;padding: 5px'>Sale</th>\n"
|
| 1378 |
+ " </tr>");
|
1378 |
+ " </tr>");
|