# 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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FqwEnf2InYL3ZaxmzxaOM%2Fimage.png?alt=media&#x26;token=c0eda633-3a50-4f9d-8947-e7d61a3f7468" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Fo9IeBFWP7q1YDprKDLTB%2Fimage.png?alt=media&#x26;token=f7396f22-0fb8-48da-9184-b2ec910c1d0a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FC1NolkSnhpSbSjnlZjh2%2Fimage.png?alt=media&#x26;token=d0e82892-a9d5-4c0b-a53e-2c694a044faf" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FmS0TCrbL6mQaP8UooYj9%2Fimage.png?alt=media&#x26;token=85b3371f-48de-4c31-a0a3-f4db8da46b60" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FfVoWIgzdTgGysXqVnHm9%2Fimage.png?alt=media&#x26;token=a1355144-817b-4471-a40c-c756428949bb" alt=""><figcaption></figcaption></figure>

**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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Frb4IUBCbJRKZH0h9SFKn%2Fimage.png?alt=media&#x26;token=a0d284d9-c729-4dc1-b1e9-5d6b9b3bcc5e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F191ymbuzfeTTbIWb8vPg%2Fimage.png?alt=media&#x26;token=b4fc88dd-2704-4250-9472-e23a71cdbec8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F5Nl7UEZddpKXrejKm1xm%2Fimage.png?alt=media&#x26;token=090a8d0b-3bbf-47bc-9f2d-72402681ef7f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F6BefbdiZPuWWw1KXL17x%2Fimage.png?alt=media&#x26;token=73cf3862-de43-4431-9898-89e0741b5479" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Fjz0iVaiqbCfy8E30TPPM%2Fimage.png?alt=media&#x26;token=dfdccf50-b74c-4e26-b13d-9247acf0d6cf" alt=""><figcaption></figcaption></figure>

**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 Mifos toolbar, click **Admin,** and then click **Products** to open the Products menu.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Frb4IUBCbJRKZH0h9SFKn%2Fimage.png?alt=media&#x26;token=a0d284d9-c729-4dc1-b1e9-5d6b9b3bcc5e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F191ymbuzfeTTbIWb8vPg%2Fimage.png?alt=media&#x26;token=b4fc88dd-2704-4250-9472-e23a71cdbec8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F5Nl7UEZddpKXrejKm1xm%2Fimage.png?alt=media&#x26;token=090a8d0b-3bbf-47bc-9f2d-72402681ef7f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F6BefbdiZPuWWw1KXL17x%2Fimage.png?alt=media&#x26;token=73cf3862-de43-4431-9898-89e0741b5479" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Fjz0iVaiqbCfy8E30TPPM%2Fimage.png?alt=media&#x26;token=dfdccf50-b74c-4e26-b13d-9247acf0d6cf" alt=""><figcaption></figcaption></figure>

**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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2Frb4IUBCbJRKZH0h9SFKn%2Fimage.png?alt=media&#x26;token=a0d284d9-c729-4dc1-b1e9-5d6b9b3bcc5e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FivesNLCzFT9wZ3teR24O%2Fimage.png?alt=media&#x26;token=9d51627b-7e9b-42ff-82b3-2c229d83df6f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2F8D0WpM3xSDhk5eOfG7mk%2Fimage.png?alt=media&#x26;token=64b69225-bd84-4eaf-a18b-ba97931ace28" alt=""><figcaption></figcaption></figure>

4\. Click **Edit**.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FfeCujGcagfyPDQlhgCak%2Fimage.png?alt=media&#x26;token=d33f60d0-509c-463a-85b3-abce4c264a5f" alt=""><figcaption></figcaption></figure>

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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FwB0Tz12IsKDxPKJJ5zYK%2Fimage.png?alt=media&#x26;token=8f6c223b-6708-4565-a695-4e67619d759e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FlKnGtjKVY9ggYnQK7CyY%2Fimage.png?alt=media&#x26;token=21d725d1-35ac-4395-a9d2-85dfb7de5ab8" alt=""><figcaption></figcaption></figure>

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

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.

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FDQoJO0qQaB1eEoHi75tP%2Fimage.png?alt=media&#x26;token=6e6d6d18-add5-487d-bc07-22ba805b8134" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2235457518-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lb-oDYAENt-r5hW1bjo%2Fuploads%2FMBSPU6xcwLvzdX7MgNgQ%2Fimage.png?alt=media&#x26;token=b6e41df4-546f-41cb-b5ea-0512072f2a23" alt=""><figcaption></figcaption></figure>

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

* 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)
