FINERACT-1806: Advanced Charge-off Expense Accounting - "Advanced Accounting Rule" takes priority

This commit is contained in:
Andrii Kulminskyi
2024-12-04 17:43:51 +01:00
committed by Adam Saghy
parent 5c08afec5f
commit 56ee2eaaff
5 changed files with 196 additions and 9 deletions
@@ -65,4 +65,7 @@ public interface ProductToGLAccountMappingRepository
@Query("select mapping from ProductToGLAccountMapping mapping where mapping.productId =:productId and mapping.productType =:productType and mapping.chargeOffReasonId is not NULL")
List<ProductToGLAccountMapping> findAllChargesOffReasonsMappings(@Param("productId") Long productId,
@Param("productType") int productType);
@Query("select mapping from ProductToGLAccountMapping mapping where mapping.chargeOffReasonId =:chargeOffReasonId")
ProductToGLAccountMapping findChargesOffReasonMappingById(@Param("chargeOffReasonId") Integer chargeOffReasonId);
}