adamsaghy commented on code in PR #3611:
URL: https://github.com/apache/fineract/pull/3611#discussion_r1410412492
##########
integration-tests/src/test/java/org/apache/fineract/integrationtests/AdvancedPaymentAllocationLoanRepaymentScheduleTest.java:
##########
@@ -2962,6 +2962,32 @@ public void uc115() {
}
}
+ // UC116: Advanced payment allocation, Cumulative, horizontal repayment
processing, mixed grouping of allocation rules
+ // ADVANCED_PAYMENT_ALLOCATION_STRATEGY
+ // 1. Create a Loan product, but the allocation rules are mixed -> expect
validation error
+ @Test
+ public void uc116() {
+ try {
+ GlobalConfigurationHelper.updateIsBusinessDateEnabled(requestSpec,
responseSpec, Boolean.TRUE);
+ businessDateHelper.updateBusinessDate(new
BusinessDateRequest().type(BusinessDateType.BUSINESS_DATE.getName())
+ .date("2023.02.22").dateFormat("yyyy.MM.dd").locale("en"));
+
+ final Account assetAccount = accountHelper.createAssetAccount();
+ final Account incomeAccount = accountHelper.createIncomeAccount();
+ final Account expenseAccount =
accountHelper.createExpenseAccount();
+ final Account overpaymentAccount =
accountHelper.createLiabilityAccount();
+ AdvancedPaymentData defaultPaymentAllocation =
createDefaultPaymentAllocationWithMixedGrouping();
Review Comment:
Dont use mixed grouping because that could throw an other validation error!
--
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]