Subversion Repositories SmartDukaan

Rev

Rev 37087 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37087 Rev 37128
Line 2148... Line 2148...
2148
            } else if (below30 && current == ActivationType.ACTIVE) {
2148
            } else if (below30 && current == ActivationType.ACTIVE) {
2149
                target = ActivationType.FOCUS;
2149
                target = ActivationType.FOCUS;
2150
            }
2150
            }
2151
 
2151
 
2152
            if (target != current) {
2152
            if (target != current) {
-
 
2153
                LocalDateTime firstBillingDate = transactionRepository.getFirstBillingDate(id);
-
 
2154
                if (firstBillingDate == null) {
-
 
2155
                    LOGGER.info("Skip auto-downgrade fofoId={} code={}: first billing pending",
-
 
2156
                            id, store.getCode());
-
 
2157
                    continue;
-
 
2158
                }
2153
                LOGGER.info("Auto-downgrade fofoId={} code={} from {} to {} (below30={}, below60={})",
2159
                LOGGER.info("Auto-downgrade fofoId={} code={} from {} to {} (below30={}, below60={})",
2154
                        id, store.getCode(), current, target, below30, below60);
2160
                        id, store.getCode(), current, target, below30, below60);
2155
                store.setActivationType(target);
2161
                store.setActivationType(target);
2156
                fofoStoreRepository.persist(store);
2162
                fofoStoreRepository.persist(store);
2157
                if (target == ActivationType.FOCUS) {
2163
                if (target == ActivationType.FOCUS) {