# 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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;token=645b7b66-baf7-4818-b605-991276495d65" alt=""><figcaption></figcaption></figure>
