> 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Ftf0paxLNU6zFWzvRsA9F%2FAdd%20C.D.png?alt=media&amp;token=693ba214-e7f1-4ceb-8d05-cbdf95fe8e3d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FmTCg3YETIuyREGkpds8A%2FAdd%20Freight%20in%20Bill.png?alt=media&amp;token=0ce095c1-b029-4a0f-8a86-25ecc5a48638" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FDz4DDDo36l0IfskjJLsR%2FView%20Total.png?alt=media&amp;token=b1a01957-eed3-41ac-8cbe-8e07469a8f28" alt=""><figcaption></figcaption></figure>

***

### Check the Current Calculation Mode

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FdwOzQRbLBq06sxoneMp7%2FConfiguration.png?alt=media&amp;token=4f2530a6-97d0-4f7c-9d10-2ad5489c2f6f" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FmSBxHYIjEVHhr5QR301t%2FConfiguration.png?alt=media&amp;token=4e04448b-582c-44bd-90c9-19a6b46d55c2" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F4KsvSipiw4ZYnXH5EarT%2FFreight%20Basic.png?alt=media&amp;token=1aba0437-3c8f-4bb3-905b-e9b8370de739" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F9R8TRyHF0yWeMRThNDCW%2FC.D%20Cumulative.png?alt=media&amp;token=5ccd6c7a-bec1-4cca-a142-ef6a27ab2bba" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FCiSOri01HBsNUGrENxeC%2FView.png?alt=media&amp;token=645b7b66-baf7-4818-b605-991276495d65" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
