Skip to content

BO - Order page - when adding a product which has an ecotax to an old order, the base price is NOK #22029

Closed
Listed in 2 issues
@khouloudbelguith

Description

@khouloudbelguith
Contributor

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:

  1. Go to BO > International > Taxes > Enable "Use ecotax"
    image
  2. Create an order from the FO with any product
  3. 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€
    image
  4. Go to BO > Orders > last order created
  5. Add a product
  6. Search the last product created
    image
  7. Click add
  8. see the error
    image
  9. change the status to payment accepted
  10. Download invoice
  11. see error
    image

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

added
BOCategory: Back Office
BugType: Bug
CriticalSeverity: critical bug > https://build.prestashop.com/news/severity-classification
migrationsymfony migration project
OrderComponent: Which BO section is concerned
Taxes and PricesComponent: Which BO section is concerned
ReadyStatus: Issue is ready to be worked on
on Nov 20, 2020
matks

matks commented on Nov 20, 2020

@matks
Contributor

Hu @khouloudbelguith in your invoice I see that there is 2 lines

  • 1st line: this is the product you added
  • 2nd line for "demo_8"

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

Robin-Fischer-PS commented on Nov 20, 2020

@Robin-Fischer-PS
Contributor

@matks The second line has not "tax incl." column, it's only Unit Price and Total (both Tax excl.).

khouloudbelguith

khouloudbelguith commented on Nov 20, 2020

@khouloudbelguith
ContributorAuthor

Hi @matks,

The demo_8 from the BO
image

Thanks!

matks

matks commented on Nov 20, 2020

@matks
Contributor

@matks The second line has not "tax incl." column, it's only Unit Price and Total (both Tax excl.).

I am asking about the invoice 😄 . This:

matks

matks commented on Nov 20, 2020

@matks
Contributor

@khouloudbelguith my bad I am really tired, there is no issue

self-assigned this
on Nov 20, 2020

30 remaining items

modified the milestones: 1.7.7.3, 1.7.7.4 on Mar 22, 2021
added
WIPStatus: Work In Progress
and removed
ReadyStatus: Issue is ready to be worked on
on Mar 25, 2021
marionf

marionf commented on Mar 29, 2021

@marionf
Contributor

Waiting for #22228 to be merged

matks

matks commented on Apr 24, 2021

@matks
Contributor

@MatShir @marionf Just discovered #10030 😆

marionf

marionf commented on Apr 26, 2021

@marionf
Contributor

@matks, yes it's another issue about the ecotax

modified the milestones: 1.7.7.4, 1.7.7.5 on Apr 28, 2021
removed
WIPStatus: Work In Progress
on May 3, 2021
khouloudbelguith

khouloudbelguith commented on May 6, 2021

@khouloudbelguith
ContributorAuthor

Hi!

When testing this PR, I created two issues:
#24340
#24373

Thank you!

Progi1984

Progi1984 commented on May 6, 2021

@Progi1984
Member

Fixed by #23492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

1.7.7.xBranchBOCategory: Back OfficeBugType: BugCriticalSeverity: critical bug > https://build.prestashop.com/news/severity-classificationFixedResolution: issue closed because fixedOrderComponent: Which BO section is concernedRegressionType: regressionTaxes and PricesComponent: Which BO section is concernedmigrationsymfony migration project

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @eternoendless@PierreRambaud@Progi1984@matks@sowbiba

    Issue actions

      BO - Order page - when adding a product which has an ecotax to an old order, the base price is NOK · Issue #22029 · PrestaShop/PrestaShop