# Advanced Accounting Rules

The Advanced Accounting Rule is a powerful feature that allows you to post to multiple general ledger accounts for a single product. Examples include mapping to multiple fund sources based on payment type, or mapping fees or penalties to specific income accounts.

Creating an Advanced Accounting Rule requires two steps:

Step 1: Configure Payment Types, Fees, and Penalties.

Step 2: Map Payment Type to fund sources and map Fees and Penalties to income sources.

### Creating an Advanced Accounting Rule

You can create the following Advanced Accounting Rules for Loan Products:

**Advanced Accounting Rules based on** **Payment Type** to automatically debit accounts based on payment type—for example, m-pesa payments are automatically debited from the m-pesa account and check payments are automatically debited from a different account.

**Advanced Accounting Rules based on Fees** to automatically credit a specified Income Account based on the Fee—for example, processing fees are automatically credited to the Fees and Charges account.

**Advanced Accounting Rules based on Penalties** to automatically credit a specified Income Account based on the Penalty—for example, late fees are automatically credited to the Penalties account.

**Step 1: Configure Payment Type, Fees, and Penalties**

**To configure Advanced Accounting Rules based on Payment Type:**

To create an Advanced Accounting Rule based on Payment Type, you configure the Payment Types drop-down list in the Manage Codes section of Admin System tools. In the following example, m-pesa payments are automatically debited from the m-pesa account.

To configure an Advanced Accounting Rule based on Payment Type, do the following:

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

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

3\. In **Code Name** list, select **Payment Type**.

![](https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Payment%20type%20code.png?version=1\&modificationDate=1504788826181\&cacheVersion=1\&api=v2\&height=150)

4\. In the **Payment Type** dialog, click **+Add Code Values**

5\. In the **Code value** text box, enter a name for your payment type and then click **+Add**.

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

**To configure Advanced Accounting Rules based on Fees:**

To create an Advanced Accounting Rule based on Fees, you define a loan charge in the Charges section of the Admin Products tools. In the following example, processing fees are automatically credited to the Fees and Charges account.

To map Fees to specific Income Accounts, do the following:

1. On the Mifos toolbar, click **Admin,** and then click **Products** to open the Products menu.

2\. On the Products menu, click **Charges**.

3\. In the **Charges** dialog, click the **Create Charge** button.

4\. In the **Charges applies to** drop-down list, select a product.

5\. In the **Create Charge** dialog, do the following:

a. In the **Name** textbox, enter a name for the Fee.

b. In the **Currency** drop-down list, select a currency.

c. In the **Charge time type** drop-down list, select a charge time type.

d. In the **Charge calculation** drop-down list, select a method for calculating the fee.

e. In the **Charge payment by** drop-down list, select a method for payment.

f. In the **Amount** textbox, enter the amount of the fee.

g. Select the **Active** check box, and then click the Submit button.

**To configure Advanced Accounting Rules based on Penalties:**

To create an Advanced Accounting Rule based on Penalties, you define a loan penalty in the Charges section of the Admin Products tools. In the following example, late fees are automatically credited to the Penalties account.

&#x20;To map Penalties to specific Income Accounts, do the following:

1. On the toolbar, click **Admin,** and then click **Products** to open the Products menu.

2\. On the Products menu, click **Charges**.

3\. In the **Charges** dialog, click the **Create Charge** button.

4\. In the **Charges applies to** drop-down list, select a product.

5\. In the **Create Charge** dialog, do the following:

a. In the **Name** textbox, enter a name for the penalty.

b. In the **Currency** drop-down list, select a currency.

c. In the **Charge time type** drop-down list, select a charge time type.

d. In the **Charge calculation** drop-down list, select a method for calculating the penalty.

e. In the **Charge payment by** drop-down list, select a method for payment.

f. Select the **Add Fee Frequency** check box.

g. In the **Charge Frequency** drop-down list, select the frequency (days, weeks, months, or years) to charge the penalty.

h. In the **Frequency** **Interval** textbox, type a number for the frequency interval.

i. In the **Amount** textbox, type the amount of the penalty.

j. Select the **Active** check box.

k. Select the **Is Penalty** check box, and then click the Submit button.

<div align="left"><img src="https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Loan%20Charge.png?version=2&#x26;modificationDate=1504789790640&#x26;cacheVersion=1&#x26;api=v2&#x26;height=400" alt=""></div>

**Step 2: Map Payment Type to fund sources, and map Fees and Penalties to income sources.**

After you have configured your Payment Terms, Fees, and Penalties, you are ready to create your Advanced Accounting Rule.

To create an Advanced Accounting Rule based on Payment Type, Fees, or Penalties, do the following:

1. On the Mifos toolbar, click **Admin,** and then click **Products** to open the Products menu.

2\. On the Products menu, click **Loan Products**.

3\. In **Loan Products** list, select the Loan Product to which you want to add an advanced accounting rule.

4\. Click **Edit**.

5\. Scroll to the bottom of the Loan Product dialog. Under **Accounting**, if **None** is selected, select one of the other options to expand the Accounting section.

![](https://mifosforge.jira.com/wiki/download/attachments/67895322/loan%20accounting.png?version=1\&modificationDate=1504790081127\&cacheVersion=1\&api=v2)

6\. At the bottom of the **Accounting** section, click **show** to expand **Advanced Accounting Rules**.

![](https://mifosforge.jira.com/wiki/download/attachments/67895322/Advanced%20accounting.png?version=1\&modificationDate=1504790194731\&cacheVersion=1\&api=v2)

Under the expanded **Advanced Accounting Rules**, you can add Payment Type, Fees, or Penalties Advanced Accounting Rules:\\

a. To add a **Payment Type** Advanced Accounting Rule:\
Under **Configure Fund Sources for Payment Channels** click the **Add** button and then select a **Payment Type** and a **Fund Source** from the drop-down lists.\
**Tip:** To add Payment Types to the Payment Type drop-down list, see **Advanced Accounting Rules based on** **Payment Type** in **Creating an Advanced Account Rule** above.

![](https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Advanced%20accounting%20payment.png?version=2\&modificationDate=1504790566031\&cacheVersion=1\&api=v2\&height=150)

b. To add a **Fees** Advanced Accounting Rule:\
Under **Map Fees to Income Accounts**, click the **Add** button and then select a **Fee** and an **Income Account** from the drop-down lists.\
**Tip:** To add Fees to the Fee drop-down list, see **Advanced Accounting Rules based on** **Fees** in **Creating an Advanced Account Rule** above.

![](https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Advanced%20accounting%20fee.png?version=1\&modificationDate=1504790576304\&cacheVersion=1\&api=v2\&height=150)

c. To add a **Penalties** Advanced Accounting Rule:\
Under **Map Penalties to Specific Income Accounts**, click the **Add** button and then select a **Penalty** and an **Income Account** from the drop-down lists.\
**Tip:** To add Penalties to the Fee drop-down list, see **Advanced Accounting Rules based on** **Penalties** in **Creating an Advanced Account Rule** above.

![](https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Advanced%20accounting%20penalty.png?version=1\&modificationDate=1504790569450\&cacheVersion=1\&api=v2\&height=150)

**Tip:** To add another Payment Type, Fees, or Penalties Advanced Accounting Rule, click the **Add** button. To delete a Payment Type, Fees, or Penalties Advanced Accounting Rule, click the **x** button.

8\. Click the **Submit** button.\
\&#xNAN;*Your Advanced Accounting Rule for your Loan Product appears under Accounting at the bottom of the dialog.*&#x20;

![](https://mifosforge.jira.com/wiki/download/thumbnails/67895322/Advanced%20accounting%20summary.png?version=1\&modificationDate=1504790684963\&cacheVersion=1\&api=v2\&width=850)

### Applying an Advanced Accounting Rule

Walk through normal transactions that reflect the advanced accounting rule being applied (that is. a transaction of a certain payment type being applied to a different general ledger account)&#x20;

For each action, provide a short description, add the steps involved, include any relevant screenshots:

1. Insert your steps.
2. You can also copy and paste or drag and drop images into your instructions.

| Field name (attribute) | Description | Example | Validations (if applicable) |
| ---------------------- | ----------- | ------- | --------------------------- |
|                        |             |         |                             |

Related articles
