MIFOSX-2046 fixed overpaid loans not been transferred along when transfering a client
This commit is contained in:
Regular → Executable
+1
-1
@@ -52,7 +52,7 @@ public interface LoanRepository extends JpaRepository<Loan, Long>, JpaSpecificat
|
||||
public static final String FIND_ACTIVE_LOANS_PRODUCT_IDS_BY_GROUP = "Select loan.loanProduct.id from Loan loan where "
|
||||
+ "loan.group.id = :groupId and loan.loanStatus = :loanStatus and loan.client.id is NULL group by loan.loanProduct.id";
|
||||
|
||||
public static final String DOES_CLIENT_HAVE_NON_CLOSED_LOANS = "select case when (count (loan) > 0) then true else false end from Loan loan where loan.client.id = :clientId and loan.loanStatus in (100,200,300,303,304)";
|
||||
public static final String DOES_CLIENT_HAVE_NON_CLOSED_LOANS = "select case when (count (loan) > 0) then true else false end from Loan loan where loan.client.id = :clientId and loan.loanStatus in (100,200,300,303,304,700)";
|
||||
|
||||
@Query(FIND_GROUP_LOANS_DISBURSED_AFTER)
|
||||
List<Loan> getGroupLoansDisbursedAfter(@Param("disbursementDate") Date disbursementDate, @Param("groupId") Long groupId,
|
||||
|
||||
Regular → Executable
+2
@@ -435,6 +435,8 @@ public class TransferWritePlatformServiceJpaRepositoryImpl implements TransferWr
|
||||
if (staff != null) {
|
||||
client.updateStaff(staff);
|
||||
}
|
||||
}else if(destinationGroup == null) { /** for individual with no groups **/
|
||||
if(staff !=null){ client.updateStaff(staff);}
|
||||
}
|
||||
break;
|
||||
case PROPOSAL:
|
||||
|
||||
Reference in New Issue
Block a user