> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/sales/apply-freight-before-or-after-discount-in-sale-bill.md).

# Apply Freight Before or After Discount in Sale Bill

**YouTube:** [How to Apply Freight Before or After Discount in Sale Bill?](https://www.youtube.com/watch?v=WdYdkQ39Ofo)

## How to Apply Freight Before or After Discount in Sale Bill?

In this tutorial, we’ll guide you on how to configure **freight charges to be applied either before or after discounts** in Logic ERP.

***

### Generate a Sales Bill

* Create a **Sales Bill**.
* Transact an item and apply a **10% Cash Discount**.

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

* Now, add the **Freight Charges** in the **Other Details** section.

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

In the **View Totals** window, notice that **freight is calculated after applying the discount**.

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

***

### Check the Current Calculation Mode

* Go to **Configuration → Calculation Mode**.

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

* Here, you’ll see that **all discounts are positioned before freight** in the calculation sequence.

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

***

### Configure Freight Before Discount

* Change the **position of Freight** so that it appears **before the discount**.
  * If the discount calculation is set as **Item-wise**, then freight must also be configured as **Item-wise** in the Calculation Mode.

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

* If you’re using **CD% (Cash Discount %)**, ensure the discount is set as **Cumulative**, so it applies after freight.

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

Note:

* If you configure Calculation Mode **within the Sale Bill screen**, it will apply **only to that bill**.
* To apply the setting **for the entire series**, go to **Sale Voucher Configuration** and follow the same steps.

***

### Save and Verify

* Save the changes.
* Open the **View Totals** window.
* You will now see that **Freight is correctly calculated before applying the discount**.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/sales/apply-freight-before-or-after-discount-in-sale-bill.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
