| Line 240... |
Line 240... |
| 240 |
return "dashboard1";
|
240 |
return "dashboard1";
|
| 241 |
} else {
|
241 |
} else {
|
| 242 |
try {
|
242 |
try {
|
| 243 |
fofoStore = fofoStoreRepository.selectByRetailerId(loginDetails.getFofoId());
|
243 |
fofoStore = fofoStoreRepository.selectByRetailerId(loginDetails.getFofoId());
|
| 244 |
model.addAttribute("fofoStore", fofoStore);
|
244 |
model.addAttribute("fofoStore", fofoStore);
|
| 245 |
model.addAttribute("webApiHost", webApiHost);
|
- |
|
| 246 |
model.addAttribute("webApiPort", webApiPort);
|
- |
|
| 247 |
model.addAttribute("webApiScheme", webApiScheme);
|
- |
|
| 248 |
model.addAttribute("webApiRoot", webApiRoot);
|
- |
|
| 249 |
model.addAttribute("hasGift", hasGift(loginDetails.getFofoId()));
|
245 |
model.addAttribute("hasGift", hasGift(loginDetails.getFofoId()));
|
| 250 |
model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
|
246 |
model.addAttribute("giftItemId", ProfitMandiConstants.GIFT_ID);
|
| 251 |
|
247 |
|
| 252 |
model.addAttribute("brandStockPrices", this.getBrandStockPrices(loginDetails.getFofoId()));
|
248 |
model.addAttribute("brandStockPrices", this.getBrandStockPrices(loginDetails.getFofoId()));
|
| 253 |
model.addAttribute("salesMap", this.getSales(loginDetails.getFofoId()));
|
249 |
model.addAttribute("salesMap", this.getSales(loginDetails.getFofoId()));
|
| Line 259... |
Line 255... |
| 259 |
|
255 |
|
| 260 |
}
|
256 |
}
|
| 261 |
}
|
257 |
}
|
| 262 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
258 |
model.addAttribute("monthDays", LocalDate.now().minusDays(1).lengthOfMonth());
|
| 263 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
259 |
model.addAttribute("dayOfMonth", LocalDate.now().minusDays(1).getDayOfMonth());
|
| - |
|
260 |
model.addAttribute("webApiHost", webApiHost);
|
| - |
|
261 |
model.addAttribute("webApiPort", webApiPort);
|
| - |
|
262 |
model.addAttribute("webApiScheme", webApiScheme);
|
| - |
|
263 |
model.addAttribute("webApiRoot", webApiRoot);
|
| 264 |
return "dashboard1";
|
264 |
return "dashboard1";
|
| 265 |
}
|
265 |
}
|
| 266 |
|
266 |
|
| 267 |
// This method is currently hardcoded to faciliate watches sold as gift.
|
267 |
// This method is currently hardcoded to faciliate watches sold as gift.
|
| 268 |
private boolean hasGift(int fofoId) {
|
268 |
private boolean hasGift(int fofoId) {
|