diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 9d2994592..6126db453 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -9658,13 +9658,13 @@ Content-Type: application/json An Optional Office for this accounting rule is applicable. - debitAccountHead + accountToDebit ID of the target account to be Debited - creditAccountHead + accountToCredit ID of the target account to be Credited @@ -9674,14 +9674,14 @@ Content-Type: application/json A list of accounting Tags. Any Ledger account with this tag can serve as the - account to be debited + account to be debited.
This parameter is optional, if accountToDebit present in the request params creditTags A list of accounting Tags. Any Ledger account with this tag can serve as the - account to be credited + account to be credited.
This parameter is optional, if accountToCredit present in the request params allowMultipleDebitEntries @@ -9785,6 +9785,24 @@ GET https://DomainName/api/v1/accountingrules/template

Create/Define a Accounting rule

Define a new Accounting rule.

+ + + + + + + +
Mandatory Fields
name, officeId,
accountToDebit OR debitTags,
accountToCredit OR creditTags.
+
+
+ + + + + + + +
Optional Fields
description
@@ -9797,8 +9815,8 @@ Request Body: { "name": "test", "officeId": "1", - "debitAccountHead": "21", - "creditAccountHead": "9", + "accountToDebit": "21", + "accountToCredit": "9", "description": "Employee salary" } @@ -9835,7 +9853,7 @@ Request Body: { "name": "test123", "officeId": "1", - "debitAccountHead": "21", + "accountToDebit": "21", "creditTags": ["12", "13"], "allowMultipleCreditEntries": "false", "description": "Employee salary" @@ -9854,9 +9872,9 @@ Request Body: { "name": "fordocstest", "officeId": "1", - "debitTags": ["10", "11"], + "debitTags": ["10","11"], "allowMultipleDebitEntries": "false", - "creditAccountHead": "9", + "accountToCredit": "9", "description": "for api docs" } diff --git a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/api/AccountingRuleJsonInputParams.java b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/api/AccountingRuleJsonInputParams.java index 795b6e2d4..fd3c22573 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/api/AccountingRuleJsonInputParams.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/accounting/rule/api/AccountingRuleJsonInputParams.java @@ -12,7 +12,7 @@ import java.util.Set; * Enum of all parameters passed in while creating/updating a loan product ***/ public enum AccountingRuleJsonInputParams { - ID("id"), OFFICE_ID("officeId"), ACCOUNT_TO_DEBIT("debitAccountHead"), ACCOUNT_TO_CREDIT("creditAccountHead"), NAME("name"), DESCRIPTION( + ID("id"), OFFICE_ID("officeId"), ACCOUNT_TO_DEBIT("accountToDebit"), ACCOUNT_TO_CREDIT("accountToCredit"), NAME("name"), DESCRIPTION( "description"), SYSTEM_DEFINED("systemDefined"), DEBIT_ACCOUNT_TAGS("debitTags"), CREDIT_ACCOUNT_TAGS("creditTags"), ALLOW_MULTIPLE_CREDIT_ENTRIES( "allowMultipleCreditEntries"), ALLOW_MULTIPLE_DEBIT_ENTRIES("allowMultipleDebitEntries");