# Account Code Formula

YouTube: [How To Generate Account Codes Using Account Code Formula in Logic ERP Software ?](https://www.youtube.com/watch?v=Jd9Vs1CzADM)

## How To Generate Account Codes Using Account Code Formula?

#### In this tutorial, we will explore creating the perfect account code formula in Logic ERP. This feature automates the generation of account codes based on specific rules or criteria.

### Steps to Create an Account Code Formula

* Navigate to the Setup > Setup Accounts and the click on "Setup New Account"
* At the bottom, use the shortcut key **F5** to open the **configuration settings**.
* Locate the option Labeled as:

> "Account Code Formula"

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FPKuKE3kFTf0RiG6gdyBb%2FAccount%20Code%20Formula.png?alt=media&#x26;token=f7dd6a44-80d6-4c60-b797-cd510d8439b9" alt=""><figcaption></figcaption></figure>

### **Setup Account Code Formula**:

* Go to the 'Account Code Formula' section.
* The formula automatically generates account codes by combining the customer's mobile number and the highest current account code.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FbgTiVbrrUzzUmf8N4DZs%2FSetup%20Account%20Code.png?alt=media&#x26;token=4ee6e892-32ba-49b7-b5a2-f0821f9723bc" alt=""><figcaption></figcaption></figure>

### **Create a Customer Account**:

* Enter the required account details accurately.
* Enter the "Customer's Mobile Number".
* Upon closing the form, the account code will be generated automatically.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FWePDmXc8CjFYPSb1QMKz%2FAccount%20Code%20generated.png?alt=media&#x26;token=b7403772-107b-4407-9038-e3d22a9a5c8f" alt=""><figcaption></figcaption></figure>

This method allows easy generation of account codes tailored to your requirements using Logic ERP's account code formula. As new accounts are created, the account code will automatically increment.
