Description
Describe the bug
The ecotax is enabled, In the BO > Orders > old order details page > when we try to add a product which has an ecotax, the base is NOK, so the total is NOK, the invoice is NOK
The Edit of a product with Ecotax is NOK too.
Steps to Reproduce
Steps to reproduce the behavior:
- Go to BO > International > Taxes > Enable "Use ecotax"
- Create an order from the FO with any product
- Go to BO > Catalog > Products page > Create a new product
2.1 Tax included = 12€
2.2 Tax rule = 20%
2.3 Ecotax (tax incl.) = 5€
- Go to BO > Orders > last order created
- Add a product
- Search the last product created
- Click add
- see the error
- change the status to payment accepted
- Download invoice
- see error
PS1768 => ok: https://drive.google.com/file/d/12s52BuZBTIUykgD6j4mRTv-5RhD_xtPA/view?usp=sharing
177x => NOK: https://drive.google.com/file/d/1X1F-PonwH9O1CBsm_WfCsUsW8NsXyLux/view?usp=sharing
Additional information
- PrestaShop version: 177x
- PHP version: 7.2
Expected behavior
As the ecotax is included in the price filled by the merchant, the unit prices should be displayed ecotax included
Specs: https://github.com/PrestaShop/prestashop-specs/blob/master/broader-topics/ecotax.md
Note: For the ecotax VAT rate, take into account the one defined in International > Taxes
Technical viewpoint (@jolelievre)
This comment should help you regarding the technical solution that needs to be implemented #22029 (comment) If you have any question don't hesitate to ask me
Status
Waiting for #22228 to be merged
Activity
matks commentedon Nov 20, 2020
Hu @khouloudbelguith in your invoice I see that there is 2 lines
It seems the 2nd line is wrong too ? 🤔 I see the tax included is equal to tax excluded, although tax rate is supposed to be 20%/
Robin-Fischer-PS commentedon Nov 20, 2020
@matks The second line has not "tax incl." column, it's only Unit Price and Total (both Tax excl.).
khouloudbelguith commentedon Nov 20, 2020
Hi @matks,
The demo_8 from the BO

Thanks!
matks commentedon Nov 20, 2020
I am asking about the invoice 😄 . This:
matks commentedon Nov 20, 2020
@khouloudbelguith my bad I am really tired, there is no issue
30 remaining items
marionf commentedon Mar 29, 2021
Waiting for #22228 to be merged
matks commentedon Apr 24, 2021
@MatShir @marionf Just discovered #10030 😆
marionf commentedon Apr 26, 2021
@matks, yes it's another issue about the ecotax
khouloudbelguith commentedon May 6, 2021
Hi!
When testing this PR, I created two issues:
#24340
#24373
Thank you!
Progi1984 commentedon May 6, 2021
Fixed by #23492