# Discount resetting after sale header modification

**URL:** https://discuss.tryton.org/t/discount-resetting-after-sale-header-modification/7549
**Category:** User
**Tags:** sales
**Created:** [August 16, 2024, 9:03am UTC](https://discuss.tryton.org/t/discount-resetting-after-sale-header-modification/7549 "2024-08-16T09:03:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vireth](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/v/aca169/32.png) [@Vireth](https://discuss.tryton.org/u/Vireth)
#### Post date: [August 16, 2024, 9:03am UTC](https://discuss.tryton.org/t/discount-resetting-after-sale-header-modification/7549/1 "2024-08-16T09:03:27Z")

</div>

Hello,

The title is pretty self-explanatory, when I click on modify header, the discount (from module sale\_discount) is set to 0.

Maybe I’m doing something wrong but it looks like unintended behavior to me

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 16, 2024, 9:11am UTC](https://discuss.tryton.org/t/discount-resetting-after-sale-header-modification/7549/2 "2024-08-16T09:11:52Z")

</div>

When you change the sale header, the unit price of each lines are recomputed because the header may have an impact on the price computation through price list or tax rules.  
So if you have modified manually the unit price of a line, this modification will be lost when running the wizard.  
This is the expected behavior.

It is also expected that unit prices are not modified manually but computed via [price list](https://docs.tryton.org/latest/modules-product-price-list/index.html) or [promotions](https://docs.tryton.org/latest/modules-sale-promotion/index.html) even for discount.
