Fineract-1410 Allow Payment types to map to all types of Ledgers (#1917)
This commit is contained in:
+21
-3
@@ -88,9 +88,9 @@ public class GlobalConfigurationHelper {
|
||||
ArrayList<HashMap> expectedGlobalConfigurations = getAllDefaultGlobalConfigurations();
|
||||
ArrayList<HashMap> actualGlobalConfigurations = getAllGlobalConfigurations(requestSpec, responseSpec);
|
||||
|
||||
// There are currently 30 global configurations.
|
||||
Assertions.assertEquals(30, expectedGlobalConfigurations.size());
|
||||
Assertions.assertEquals(30, actualGlobalConfigurations.size());
|
||||
// There are currently 32 global configurations.
|
||||
Assertions.assertEquals(32, expectedGlobalConfigurations.size());
|
||||
Assertions.assertEquals(32, actualGlobalConfigurations.size());
|
||||
|
||||
for (int i = 0; i < expectedGlobalConfigurations.size(); i++) {
|
||||
|
||||
@@ -362,6 +362,24 @@ public class GlobalConfigurationHelper {
|
||||
isInterestAppropriationEnabled.put("trapDoor", false);
|
||||
defaults.add(isInterestAppropriationEnabled);
|
||||
|
||||
HashMap<String, Object> isAccountMappedForPayment = new HashMap<>();
|
||||
isAccountMappedForPayment.put("id", 35);
|
||||
isAccountMappedForPayment.put("name", "account-mapping-for-payment-type");
|
||||
isAccountMappedForPayment.put("value", 0);
|
||||
isAccountMappedForPayment.put("enabled", false);
|
||||
isAccountMappedForPayment.put("trapDoor", false);
|
||||
isAccountMappedForPayment.put("string_value", "Asset");
|
||||
defaults.add(isAccountMappedForPayment);
|
||||
|
||||
HashMap<String, Object> isAccountMappedForCharge = new HashMap<>();
|
||||
isAccountMappedForCharge.put("id", 36);
|
||||
isAccountMappedForCharge.put("name", "account-mapping-for-charge");
|
||||
isAccountMappedForCharge.put("value", 0);
|
||||
isAccountMappedForCharge.put("enabled", false);
|
||||
isAccountMappedForCharge.put("trapDoor", false);
|
||||
isAccountMappedForCharge.put("string_value", "Income");
|
||||
defaults.add(isAccountMappedForCharge);
|
||||
|
||||
return defaults;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user