fixes for accepting user generated payment types
This commit is contained in:
+1
-1
@@ -264,7 +264,7 @@ public class AccountingProcessorHelper {
|
|||||||
***/
|
***/
|
||||||
if (accountMappingTypeId == CASH_ACCOUNTS_FOR_LOAN.FUND_SOURCE.getValue()) {
|
if (accountMappingTypeId == CASH_ACCOUNTS_FOR_LOAN.FUND_SOURCE.getValue()) {
|
||||||
ProductToGLAccountMapping paymentChannelSpecificAccountMapping = this.accountMappingRepository
|
ProductToGLAccountMapping paymentChannelSpecificAccountMapping = this.accountMappingRepository
|
||||||
.findByProductIdAndProductTypeAndFinancialAccountTypeAndPaymentType(loanProductId,
|
.findByProductIdAndProductTypeAndFinancialAccountTypeAndPaymentTypeId(loanProductId,
|
||||||
PortfolioProductType.LOAN.getValue(), accountMappingTypeId, paymentTypeId);
|
PortfolioProductType.LOAN.getValue(), accountMappingTypeId, paymentTypeId);
|
||||||
if (paymentChannelSpecificAccountMapping != null) {
|
if (paymentChannelSpecificAccountMapping != null) {
|
||||||
accountMapping = paymentChannelSpecificAccountMapping;
|
accountMapping = paymentChannelSpecificAccountMapping;
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ import org.springframework.data.repository.query.Param;
|
|||||||
public interface ProductToGLAccountMappingRepository extends JpaRepository<ProductToGLAccountMapping, Long>,
|
public interface ProductToGLAccountMappingRepository extends JpaRepository<ProductToGLAccountMapping, Long>,
|
||||||
JpaSpecificationExecutor<ProductToGLAccountMapping> {
|
JpaSpecificationExecutor<ProductToGLAccountMapping> {
|
||||||
|
|
||||||
ProductToGLAccountMapping findByProductIdAndProductTypeAndFinancialAccountTypeAndPaymentType(Long productId, int productType,
|
ProductToGLAccountMapping findByProductIdAndProductTypeAndFinancialAccountTypeAndPaymentTypeId(Long productId, int productType,
|
||||||
int financialAccountType, Long paymentType);
|
int financialAccountType, Long paymentType);
|
||||||
|
|
||||||
@Query("from ProductToGLAccountMapping mapping where mapping.productId =:productId and mapping.productType =:productType and mapping.financialAccountType=:financialAccountType and mapping.paymentType is NULL")
|
@Query("from ProductToGLAccountMapping mapping where mapping.productId =:productId and mapping.productType =:productType and mapping.financialAccountType=:financialAccountType and mapping.paymentType is NULL")
|
||||||
|
|||||||
Reference in New Issue
Block a user