dev add reason entity
Test Workflow / test (push) Waiting to run

This commit is contained in:
vladp
2026-03-27 21:54:36 +07:00
parent 535be69840
commit 6d6721fb0a
4 changed files with 11 additions and 3 deletions
@@ -99,8 +99,7 @@ public class ReferralRepoImpl implements ReferralRepo {
@Override
public int getAvailableIncome() {
Integer holdBalance = entity.getHoldBalance();
return entity.getTotalIncome() - (holdBalance != null ? holdBalance : 0);
return entity.getAvailableIncome();
}
@Override
@@ -109,6 +108,11 @@ public class ReferralRepoImpl implements ReferralRepo {
return holdBalance != null ? holdBalance : 0;
}
@Override
public int getSpentBalance() {
return entity.getTotalIncome() - entity.getAvailableIncome() - entity.getHoldBalance();
}
@Override
public boolean getActive() { return entity.isActive(); }
};