| Line 181... |
Line 181... |
| 181 |
model.addAttribute("fofoTypes", FofoType.values());
|
181 |
model.addAttribute("fofoTypes", FofoType.values());
|
| 182 |
return "retailer-details";
|
182 |
return "retailer-details";
|
| 183 |
}
|
183 |
}
|
| 184 |
|
184 |
|
| 185 |
private void checkLoiCompletion(UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException {
|
185 |
private void checkLoiCompletion(UpdateRetailerRequest updateRetailerRequest) throws ProfitMandiBusinessException {
|
| - |
|
186 |
TrialForm trialForm;
|
| - |
|
187 |
try {
|
| 186 |
TrialForm trialForm = trialFormRepository.selectByEmailOrMobile(updateRetailerRequest.getUserMobileNumber());
|
188 |
trialForm = trialFormRepository.selectByEmailOrMobile(updateRetailerRequest.getUserMobileNumber());
|
| - |
|
189 |
if (updateRetailerRequest.getFofoType().equals(FofoType.INTERNAL) || trialForm != null) {
|
| - |
|
190 |
return; // Early return for internal type
|
| - |
|
191 |
}
|
| - |
|
192 |
} catch (Exception e) {
|
| - |
|
193 |
trialForm = null;
|
| - |
|
194 |
}
|
| 187 |
if (updateRetailerRequest.getFofoType().equals(FofoType.INTERNAL) || trialForm != null) {
|
195 |
if (updateRetailerRequest.getFofoType().equals(FofoType.INTERNAL) || trialForm != null) {
|
| 188 |
return; // Early return for internal type
|
196 |
return; // Early return for internal type
|
| 189 |
}
|
197 |
}
|
| 190 |
String userMobile = updateRetailerRequest.getUserMobileNumber();
|
198 |
String userMobile = updateRetailerRequest.getUserMobileNumber();
|
| 191 |
String gstNumber = updateRetailerRequest.getGstNumber();
|
199 |
String gstNumber = updateRetailerRequest.getGstNumber();
|