# Accounting Rules

Mifos X supports **Accounting Rules** to ease the accountant’s tasks and reduce errors.

Accounting Rules are preconfigured accounting transactions in which debit and credit accounts available for posting are defined.

For example, you can configure an Accounting Rule for a payroll that will display only the expense accounts related to payroll debits and only the asset accounts available for credits.

Later you could use Frequent Postings to add an entry to your journal entry.&#x20;

Beginning at the main screen, click on [**Accounting**](https://docs.mifos.org/mifosx/user-manual/for-administrators-mifos-x-platform/accounting). This will launch the **Accounting** menu.

Select **Accounting Rules**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-26-41.png?version=1\&modificationDate=1560886145776\&cacheVersion=1\&api=v2\&width=850)

### Create accounting rule

Click on +Add Rule  the page shown below opens.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/214.png?version=1\&modificationDate=1447073407146\&cacheVersion=1\&api=v2\&width=850)

As illustrated in the image above, you need to provide details and click on **Submit** button.&#x20;

**Multiple entries:**&#x20;

In case, you want to do multiple entries you need to create debit and credit Account Tags, and then assign the tags to expense and asset accounts. The tagged accounts can then be used to create an Accounting Rule.

For example: To create a payroll posting rule, create a debit Account Tag, “Payroll”, and assign it to each Expense Account you want available for payroll debits. Then create a credit Account Tag, “Cash,” and assign it to each Asset Account you want available for credits.

**To tag an account to be debited, do the following:**

1. Create a debit Account Tag:

   **a.** On the Mifos toolbar, click **Admin,** and then click **System** to open the System menu.

   \
   ![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/admin.png?version=2\&modificationDate=1552932456027\&cacheVersion=1\&api=v2\&width=500)

&#x20;    b. On the System menu, click **Manage Codes** to open the **Manage Codes** dialog.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-31-41.png?version=1\&modificationDate=1560886367719\&cacheVersion=1\&api=v2\&width=850)

&#x20;  c. In **Code Name** list, select **Expense Account Tags**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-35-01.png?version=1\&modificationDate=1560886567490\&cacheVersion=1\&api=v2\&width=850)

&#x20;   d. In the **Expense Account Tag** dialog, click **+Add Code Value**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/ExpenseAd.png?version=1\&modificationDate=1552933116387\&cacheVersion=1\&api=v2\&width=900)

&#x20;  e. In the **Code value** box, enter a name for your debit Account Tag code value, and then click **+Add** in blue.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/payroll.png?version=1\&modificationDate=1552933283483\&cacheVersion=1\&api=v2\&width=900)

**NOTE:** To edit the code value, click the **Edit Code Value** button. To delete the code value, click the **Delete Code Value** button.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2013-27-53.png?version=1\&modificationDate=1561120257670\&cacheVersion=1\&api=v2\&width=850)

2\. Assign Expense Account Tags to accounts you want available for debits using your Accounting Rule.

a. On the Mifos toolbar, click **Accounting** to open the Accounting menu.\
![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/accounting.png?version=1\&modificationDate=1552933457815\&cacheVersion=1\&api=v2\&width=500)

b. On the Accounting menu, click **Chart of Accounts**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-26-13.png?version=1\&modificationDate=1560886721034\&cacheVersion=1\&api=v2\&width=850)

c. In the **Chart of Accounts** list, click the account you want to tag.\
**NOTE:** For debits, select from accounts with an Account Type EXPENSE.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-41-59.png?version=1\&modificationDate=1560887030020\&cacheVersion=1\&api=v2\&width=850)

d. Click **Edit**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-44-40.png?version=1\&modificationDate=1560887139000\&cacheVersion=1\&api=v2\&width=850)

e. In the **Edit GL Account** dialog, in the **Tag** list, select the expense account tag you want to assign to the account, and then click **Submit.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-49-02.png?version=1\&modificationDate=1560887537729\&cacheVersion=1\&api=v2\&width=850)

**f.** Repeat for each Expense Account you want your Accounting Rule to make available for debits.

**To tag an account to be credited, do the following:**

1. Create a credit Account Tag.

a. On the Mifos toolbar, click **Admin,** and then click **System** on the drop down menu to open the System menu.

<div align="left"><img src="https://mifosforge.jira.com/wiki/download/thumbnails/106430468/admin.png?version=2&#x26;modificationDate=1552932456027&#x26;cacheVersion=1&#x26;api=v2&#x26;width=450" alt=""></div>

b. On the System menu, click **Manage Codes** to open the **Manage Codes** dialog.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-53-23.png?version=1\&modificationDate=1560887676276\&cacheVersion=1\&api=v2\&width=850)

c. In **Code Name** list, select **Asset Account Tags**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2020-55-46.png?version=1\&modificationDate=1560887886749\&cacheVersion=1\&api=v2\&width=850)

d. In the **Asset Account Tag** dialog, click +**Add Code Value** at the top right corner of the window

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-18%2021-03-07.png?version=1\&modificationDate=1560888258426\&cacheVersion=1\&api=v2\&width=850)

e. In the **Code value** box, enter a name for your debit account tag code value, and then click **+Add**.\
f. **NOTE:** To edit the code value, click the **Edit Code Value** button. To delete the code value, click the **Delete Code Value** button.&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2013-32-24.png?version=1\&modificationDate=1561120455837\&cacheVersion=1\&api=v2\&width=850)

2\. Assign Asset Account Tags to accounts you want available for credits using your Accounting Rule

a. On the Mifos toolbar, click **Accounting** to open the Accounting menu.\
![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/accounting.png?version=1\&modificationDate=1552933457815\&cacheVersion=1\&api=v2\&width=300)

b. On the Accounting menu, click **Chart of Accounts**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-05-28.png?version=1\&modificationDate=1561100854383\&cacheVersion=1\&api=v2\&width=850)

c. In the **Chart of Accounts** list, click the account you want to tag.\
**NOTE:** For credits, select from accounts with an Account Type ASSET.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-12-05.png?version=1\&modificationDate=1561101271399\&cacheVersion=1\&api=v2\&width=850)

d. Click **Edit**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-19-17.png?version=1\&modificationDate=1561101754480\&cacheVersion=1\&api=v2\&width=850)

e. In the **Edit GL Account** dialog, in the **Tag** list, select the asset account tag you want to assign to the account and then click **Submit.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-28-07.png?version=2\&modificationDate=1561102874316\&cacheVersion=1\&api=v2\&width=850)

**f.** Repeat for each Asset Account you want your Accounting Rule to make available for credits.

Go to Accounting then go to Accounting rules; by doing the following:

1. On the Mifos toolbar, click **Accounting** to open the Accounting menu.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/accounting.png?version=1\&modificationDate=1552933457815\&cacheVersion=1\&api=v2\&width=500)

&#x20;   2\. On the Accounting menu, click **Accounting Rules** to open the **Accounting Rules** dialog.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/accounRule.png?version=1\&modificationDate=1552932171155\&cacheVersion=1\&api=v2\&width=780)

&#x20;  3\. Click **+Add Rule** to open the **Add Rule** dialog

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-44-12.png?version=1\&modificationDate=1561103273413\&cacheVersion=1\&api=v2\&width=850)

4\. In the **Accounting rule name** box, enter a name for your new accounting rule.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-50-12.png?version=1\&modificationDate=1561103500322\&cacheVersion=1\&api=v2\&width=850)

5\. In the **Office** list, select an office.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2008-55-14.png?version=1\&modificationDate=1561103863331\&cacheVersion=1\&api=v2\&width=850)

&#x20;  6\. In the **Description** box, enter an optional description.

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/Screenshot%20from%202019-06-21%2009-00-12.png?version=1\&modificationDate=1561104271415\&cacheVersion=1\&api=v2\&width=850)

&#x20;   7\. Under **Affected GL entries**, set the Credit and Debit rules.

a. To set the Debit rules:

i. Under **Debit** **Account Details,** select **List of Accounts.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/mifos%20-%20frequent%20posting%20-%20accounting%20rules%20-%20debit%20-%20list%20of%20accounts.png?version=1\&modificationDate=1447148044209\&cacheVersion=1\&api=v2\&width=650)

ii. Select an account from the **Available debit tag** list, and then click the right arrow (**>>**) button to add the account to the **Selected debit tag** list. \
**NOTE:** To allow multiple debit entries select **Allow multiple debit entries.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/mifos%20-%20frequent%20posting%20-%20accounting%20rules%20-%20debit%20-%20select.png?version=1\&modificationDate=1447148044224\&cacheVersion=1\&api=v2\&width=650)

**b.** To set the Credit rules:

i. Under **Credit** **Account Details,** select **List of Accounts.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/mifos%20-%20frequent%20posting%20-%20accounting%20rules%20-%20credit%20-%20list%20of%20accounts.png?version=1\&modificationDate=1447148044242\&cacheVersion=1\&api=v2\&width=650)

**ii.** Select an account from the **Available credit tag** list, and then click the right arrow (**>>**) button to add the account to the **Selected credit tag** list. \
**NOTE:** To allow multiple debit entries select **Allow multiple credit entries.**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/mifos%20-%20frequent%20posting%20-%20accounting%20rules%20-%20credit%20-%20select.png?version=1\&modificationDate=1447148044256\&cacheVersion=1\&api=v2\&width=1033)

**8.** Click **Submit** to post your new accounting rule.

### **View Accounting rule**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/215.png?version=2\&modificationDate=1447147440086\&cacheVersion=1\&api=v2\&width=693)

### **Edit or Delete Accounting rule**

![](https://mifosforge.jira.com/wiki/download/thumbnails/106430468/215.png?version=2\&modificationDate=1447147440086\&cacheVersion=1\&api=v2\&width=693)

To **Edit**&#x20;

Click on **Edit** button in blue, then modify necessary changes and click on Submit.&#x20;

To **Delete**&#x20;

Click on **Delete** button in red, then click on confirm.&#x20;

### **To apply an Accounting Rule:**

**Go to** [**Frequent Postings**](https://docs.mifos.org/mifosx/user-manual/for-operational-users-mifos-x-web-app/accounting-operations/frequent-postings)

Related articles

* Page:[Closing Entries](https://docs.mifos.org/mifosx/user-manual/for-operational-users-mifos-x-web-app/accounting-operations/closing-entries)
* Page:[Advanced Accounting Rules](https://docs.mifos.org/mifosx/user-manual/for-operational-users-mifos-x-web-app/accounting-operations/advanced-accounting-rules)
* Page:[Searching Accounting Transactions](https://docs.mifos.org/mifosx/user-manual/for-operational-users-mifos-x-web-app/accounting-operations/searching-accounting-transactions)
* Page:[Add Journal Entries](https://docs.mifos.org/mifosx/user-manual/for-operational-users-mifos-x-web-app/accounting-operations/add-journal-entries)
* Page:[Accounting Rules](https://docs.mifos.org/mifosx/user-manual/for-administrators-mifos-x-platform/accounting/accounting-rules)
