| Line 222... |
Line 222... |
| 222 |
private NotificationService notificationService;
|
222 |
private NotificationService notificationService;
|
| 223 |
|
223 |
|
| 224 |
@RequestMapping(value = "/open-indent/save", method = RequestMethod.POST)
|
224 |
@RequestMapping(value = "/open-indent/save", method = RequestMethod.POST)
|
| 225 |
public String saveOpenIndent(HttpServletRequest request, Model model, @RequestParam int catalogId,
|
225 |
public String saveOpenIndent(HttpServletRequest request, Model model, @RequestParam int catalogId,
|
| 226 |
@RequestParam int itemQty, @RequestParam int fofoId) throws Exception {
|
226 |
@RequestParam int itemQty, @RequestParam int fofoId) throws Exception {
|
| - |
|
227 |
if(fofoId == 0) {
|
| - |
|
228 |
|
| 227 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
229 |
LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
|
| - |
|
230 |
fofoId = loginDetails.getFofoId();
|
| - |
|
231 |
|
| - |
|
232 |
}
|
| - |
|
233 |
|
| 228 |
LocalDate currentMonthDate = LocalDate.now();
|
234 |
LocalDate currentMonthDate = LocalDate.now();
|
| 229 |
MonthlyPlanned monthlyPlanned = null;
|
235 |
MonthlyPlanned monthlyPlanned = null;
|
| 230 |
|
236 |
|
| 231 |
if (LocalDate.now().isAfter(LocalDate.now().withDayOfMonth(PLANNING_OPEN_DAY))) {
|
237 |
if (LocalDate.now().isAfter(LocalDate.now().withDayOfMonth(PLANNING_OPEN_DAY))) {
|
| 232 |
currentMonthDate = LocalDate.now().plusMonths(1).withDayOfMonth(1);
|
238 |
currentMonthDate = LocalDate.now().plusMonths(1).withDayOfMonth(1);
|