Subversion Repositories SmartDukaan

Rev

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

Rev 35896 Rev 35956
Line 370... Line 370...
370
        map.put("retailerAddress", retailerAddress);
370
        map.put("retailerAddress", retailerAddress);
371
 
371
 
372
        if (updateRetailerRequest.isFofo()) {
372
        if (updateRetailerRequest.isFofo()) {
373
            FofoStore fofoStore = this.createFofoStoreCodeByRetailerId(retailer.getId(), updateRetailerRequest.getDistrictName(), retailerAddress.getState(), updateRetailerRequest);
373
            FofoStore fofoStore = this.createFofoStoreCodeByRetailerId(retailer.getId(), updateRetailerRequest.getDistrictName(), retailerAddress.getState(), updateRetailerRequest);
374
            map.put("fofoStore", fofoStore);
374
            map.put("fofoStore", fofoStore);
-
 
375
            if (fofoStore.isClosed() && updateRetailerRequest.isActive()) {
-
 
376
                throw new ProfitMandiBusinessException("Store Closed", "Store Permanently Closed",
-
 
377
                        "This store is permanently closed and cannot be reactivated");
-
 
378
            }
375
            fofoStore.setActive(updateRetailerRequest.isActive());
379
            fofoStore.setActive(updateRetailerRequest.isActive());
376
            List<AST> astDetail = postOfficeService.getAreasAndTerritoriesByStateName(retailerAddress.getState());
380
            List<AST> astDetail = postOfficeService.getAreasAndTerritoriesByStateName(retailerAddress.getState());
377
            map.put("astDetail", astDetail);
381
            map.put("astDetail", astDetail);
378
        }
382
        }
379
 
383