Subversion Repositories SmartDukaan

Rev

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

Rev 35060 Rev 35096
Line 1226... Line 1226...
1226
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
1226
    public Scheme getStaticScheme(int fofoId) throws ProfitMandiBusinessException {
1227
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1227
        FofoStore fofoStore = fofoStoreRepository.selectByRetailerId(fofoId);
1228
        Scheme scheme = null;
1228
        Scheme scheme = null;
1229
        if (fofoStore.getTarget() > 0) {
1229
        if (fofoStore.getTarget() > 0) {
1230
            scheme = new Scheme();
1230
            scheme = new Scheme();
1231
            scheme.setName("Super Retailer - Club 3");
1231
            scheme.setName("Super Retailer - Club 4");
1232
            scheme.setStartDateTime(LocalDate.of(2024, 8, 1).atStartOfDay());
1232
            scheme.setStartDateTime(LocalDate.of(2025, 8, 1).atStartOfDay());
1233
            scheme.setEndDateTime(LocalDate.of(2024, 11, 30).atTime(LocalTime.MAX));
1233
            scheme.setEndDateTime(LocalDate.of(2025, 12, 30).atTime(LocalTime.MAX));
1234
            scheme.setTarget(fofoStore.getTarget());
1234
            scheme.setTarget(fofoStore.getTarget());
1235
 
1235
 
1236
            if (scheme.getEndDateTime().plusDays(5).isBefore(LocalDateTime.now())) return null;
1236
            if (scheme.getEndDateTime().plusDays(5).isBefore(LocalDateTime.now())) return null;
1237
        }
1237
        }
1238
        return scheme;
1238
        return scheme;