Correct the Input param names for AccountingRule

This commit is contained in:
mifoscontributer
2013-06-13 15:06:02 +05:30
parent fa80413d5e
commit 7faaee70b4
2 changed files with 28 additions and 10 deletions
+27 -9
View File
@@ -9526,13 +9526,13 @@ Content-Type: application/json
<td class=fielddesc>An Optional Office for this accounting rule is applicable.</td>
</tr>
<tr class=alt>
<td>debitAccountHead</td>
<td>accountToDebit</td>
</tr>
<tr>
<td class=fielddesc>ID of the target account to be Debited</td>
</tr>
<tr class=alt>
<td>creditAccountHead</td>
<td>accountToCredit</td>
</tr>
<tr>
<td class=fielddesc>ID of the target account to be Credited</td>
@@ -9542,14 +9542,14 @@ Content-Type: application/json
</tr>
<tr>
<td class=fielddesc>A list of accounting Tags. Any Ledger account with this tag can serve as the
account to be debited</td>
account to be debited.<br> This parameter is optional, if <b>accountToDebit</b> present in the request params</td>
</tr>
<tr class=alt>
<td>creditTags</td>
</tr>
<tr>
<td class=fielddesc>A list of accounting Tags. Any Ledger account with this tag can serve as the
account to be credited</td>
account to be credited.<br> This parameter is optional, if <b>accountToCredit</b> present in the request params</td></td>
</tr>
<tr class=alt>
<td>allowMultipleDebitEntries</td>
@@ -9653,6 +9653,24 @@ GET https://DomainName/api/v1/accountingrules/template
<div class="method-description">
<h4>Create/Define a Accounting rule</h4>
<p>Define a new Accounting rule.</p>
<table class=matrixHeading>
<tr class="matrixHeadingBG">
<td><div class="mifosXHeading2">Mandatory Fields</div></td>
</tr>
<tr class=alt>
<td>name, officeId,<br> accountToDebit OR debitTags,<br> accountToCredit OR creditTags.<br>
</td>
</tr>
</table>
<br />
<table class=matrixHeading>
<tr class="matrixHeadingBG">
<td><div class="mifosXHeading2">Optional Fields</div></td>
</tr>
<tr class=alt>
<td>description</td>
</tr>
</table>
</div>
<div class="method-example">
<code class="method-declaration">
@@ -9665,8 +9683,8 @@ Request Body:
{
"name": "test",
"officeId": "1",
"debitAccountHead": "21",
"creditAccountHead": "9",
"accountToDebit": "21",
"accountToCredit": "9",
"description": "Employee salary"
}
</code>
@@ -9703,7 +9721,7 @@ Request Body:
{
"name": "test123",
"officeId": "1",
"debitAccountHead": "21",
"accountToDebit": "21",
"creditTags": ["12", "13"],
"allowMultipleCreditEntries": "false",
"description": "Employee salary"
@@ -9722,9 +9740,9 @@ Request Body:
{
"name": "fordocstest",
"officeId": "1",
"debitTags": ["10", "11"],
"debitTags": ["10","11"],
"allowMultipleDebitEntries": "false",
"creditAccountHead": "9",
"accountToCredit": "9",
"description": "for api docs"
}
</code>