oluexpert99 commented on code in PR #6011:
URL: https://github.com/apache/fineract/pull/6011#discussion_r3451555086


##########
fineract-provider/src/main/java/org/apache/fineract/organisation/provisioning/service/ProvisioningCategoryWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -107,10 +108,14 @@ public CommandProcessingResult 
updateProvisioningCategory(final Long categoryId,
         }
     }
 
-    private boolean 
isAnyLoanProductsAssociateWithThisProvisioningCategory(final Long categoryID) {
-        final String sql = "select (CASE WHEN (exists (select 1 from 
m_loanproduct_provisioning_details lpd where lpd.category_id = ?)) = 1 THEN 
'true' ELSE 'false' END)";
-        final String isLoansUsingCharge = 
this.jdbcTemplate.queryForObject(sql, String.class, new Object[] { categoryID 
});
-        return Boolean.valueOf(isLoansUsingCharge);
+    private boolean 
isAnyLoanProductsAssociateWithThisProvisioningCategory(final Long categoryId) {

Review Comment:
   Thanks @adamsaghy  . This has been updated 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to