| Line 1054... |
Line 1054... |
| 1054 |
model.addAttribute("customRetailers", customRetailers);
|
1054 |
model.addAttribute("customRetailers", customRetailers);
|
| 1055 |
return "partner-credit-detail";
|
1055 |
return "partner-credit-detail";
|
| 1056 |
}
|
1056 |
}
|
| 1057 |
|
1057 |
|
| 1058 |
@RequestMapping(value = "/activateKred", method = RequestMethod.POST)
|
1058 |
@RequestMapping(value = "/activateKred", method = RequestMethod.POST)
|
| 1059 |
public String activateKred(HttpServletRequest request, @RequestParam int fofoId, Model model) throws Exception {
|
1059 |
public String activateKred(HttpServletRequest request, @RequestParam int id, Model model) throws Exception {
|
| 1060 |
CreditAccount creditAccount = creditAccountRepository.selectByFofoId(fofoId);
|
1060 |
CreditAccount creditAccount = creditAccountRepository.selectById(id);
|
| 1061 |
|
1061 |
|
| 1062 |
creditAccount.setActive(true);
|
1062 |
creditAccount.setActive(true);
|
| 1063 |
|
1063 |
|
| 1064 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
1064 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
| 1065 |
|
1065 |
|
| Line 1067... |
Line 1067... |
| 1067 |
model.addAttribute("customRetailers", customRetailers);
|
1067 |
model.addAttribute("customRetailers", customRetailers);
|
| 1068 |
return "partner-credit-detail-row";
|
1068 |
return "partner-credit-detail-row";
|
| 1069 |
}
|
1069 |
}
|
| 1070 |
|
1070 |
|
| 1071 |
@RequestMapping(value = "/deactivateKred", method = RequestMethod.POST)
|
1071 |
@RequestMapping(value = "/deactivateKred", method = RequestMethod.POST)
|
| 1072 |
public String deactivateKred(HttpServletRequest request, @RequestParam int fofoId, Model model) throws Exception {
|
1072 |
public String deactivateKred(HttpServletRequest request, @RequestParam int id, Model model) throws Exception {
|
| 1073 |
CreditAccount creditAccount = creditAccountRepository.selectByFofoId(fofoId);
|
1073 |
CreditAccount creditAccount = creditAccountRepository.selectById(id);
|
| 1074 |
|
1074 |
|
| 1075 |
creditAccount.setActive(false);
|
1075 |
creditAccount.setActive(false);
|
| 1076 |
|
1076 |
|
| 1077 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
1077 |
Map<Integer, CustomRetailer> customRetailers = retailerService.getAllFofoRetailers();
|
| 1078 |
|
1078 |
|