| Line 145... |
Line 145... |
| 145 |
|
145 |
|
| 146 |
SDCreditRequirement sdCreditRequirement = sdCreditRequirementRepository.selectByFofoId(retailerId);
|
146 |
SDCreditRequirement sdCreditRequirement = sdCreditRequirementRepository.selectByFofoId(retailerId);
|
| 147 |
|
147 |
|
| 148 |
// Resolve effective credit days based on partner type (Diamond/Platinum=20, others=15)
|
148 |
// Resolve effective credit days based on partner type (Diamond/Platinum=20, others=15)
|
| 149 |
com.spice.profitmandi.dao.entity.fofo.PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId, java.time.LocalDate.now());
|
149 |
com.spice.profitmandi.dao.entity.fofo.PartnerType partnerType = partnerTypeChangeService.getTypeOnDate(retailerId, java.time.LocalDate.now());
|
| 150 |
int effectiveCreditDays = (partnerType == com.spice.profitmandi.dao.entity.fofo.PartnerType.DIAMOND || partnerType == com.spice.profitmandi.dao.entity.fofo.PartnerType.PLATINUM)
|
- |
|
| 151 |
? ProfitMandiConstants.PREMIUM_TIER1_DAYS : ProfitMandiConstants.DEFAULT_TIER1_DAYS;
|
150 |
int effectiveCreditDays = SDCreditServiceImpl.getTier1Days(partnerType);
|
| 152 |
|
151 |
|
| 153 |
AccountStatusResponseOut accountStatusResponseOut = new AccountStatusResponseOut();
|
152 |
AccountStatusResponseOut accountStatusResponseOut = new AccountStatusResponseOut();
|
| 154 |
BigDecimal availability = BigDecimal.ZERO;
|
153 |
BigDecimal availability = BigDecimal.ZERO;
|
| 155 |
if (creditAccount != null) {
|
154 |
if (creditAccount != null) {
|
| 156 |
|
155 |
|