Subversion Repositories SmartDukaan

Rev

Rev 35289 | Rev 35370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35289 Rev 35305
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();