# Expression

**YouTube:** [How to Configure and Use Expression Functions in Sale Bill?](https://www.youtube.com/watch?v=oOsuVpBZWEw)

## How to Configure and Use Expression Functions in Sale Bill?

In this tutorial, we’ll demonstrate how to **set default expressions for generating a sales bill** in **Logic ERP**, allowing fields like **Remarks** to populate automatically based on user-defined expressions.

***

### **Access Sales Voucher Configuration**

* Open the **Sales Voucher Configuration** window.
* Select the **relevant billing series**.
* Under **"Other Settings - 1"**, click on **"Other Settings"**.
* Then navigate to **"Defaults - 2"**.
* Locate the option labeled: “**Expression”**.
  * Here, you can define **custom expressions** using the available field list.

<figure><img src="/files/lZKt0QnPUthXcSWOxhFb" alt=""><figcaption></figcaption></figure>

***

### **Create a Default Expression**

* Let’s create a default expression for the **Remarks One** field.
* In the expression editor, combine fields such as:
  * **Transport Mode**
  * **Vehicle Number**

<figure><img src="/files/Y3jMEfnq5H9i0X9Xh5PI" alt=""><figcaption></figcaption></figure>

* Save the configuration after setting the expression.

***

### Functionality in the Billing Process

* Navigate to the **Sale Bill** window.
* Enter the **Transport Mode** and **Vehicle Number** in Other Details Column.

<figure><img src="/files/RW9TdquuTgXQyPHSawMR" alt=""><figcaption></figcaption></figure>

* Proceed to **save the bill**.

***

### Observe the Applied Changes

* Reopen the saved bill.
* Navigate to the **Other Details** section.
* Observe that the **Remarks One** field is **automatically populated** with the values entered for transport mode and vehicle number.

<figure><img src="/files/EssTaEUJg9QyuNwKYm2k" alt=""><figcaption></figcaption></figure>

***

### **Conclusion**

Using default expressions in Logic ERP allows for **automated data entry**, reducing manual effort and ensuring consistency across sales bills.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/configurations/sale-voucher-configuration/other-settings-1/other-settings/defaults-2/expression.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
