Skip to content

BO - Order page - Incorrect Total's product line when Round type = "Round on each item" #21708

Closed
Listed in
PrestaShop/prestashop-specs
#174
@khouloudbelguith

Description

@khouloudbelguith
Contributor

Describe the bug

In the BO > Shop Parameters > General page > Round type = "Round on each item".
When creating an order from the BO > The product's total line is NOK.
image

Steps to Reproduce

Steps to reproduce the behavior:

  1. In Shop Parameters > Custom Settings > Groups > Edit Customer "Price display method" => tax included
  2. Create a productA with 21% tax, €7.8 tax excluded
  3. Go to BO > Order page > Add new order
  4. Add the product with quantity =80
  5. Create the order
  6. see the error: the Total Tax included for the Product detail line is NOK

PS: reproduced when shipping is free or not.
when Round on each line or Round on the total is applied => ok (no issue)

Screenshots
image

Additional information

  • PrestaShop version: 177x
  • PHP version: 7.2

Specs

Round on each item = product unit price rounded
Round on each line = total of the line rounded
https://github.com/PrestaShop/prestashop-specs/blob/master/broader-topics/price-calculation-rules.md

Activity

prestashop-issue-bot

prestashop-issue-bot commented on Nov 2, 2020

@prestashop-issue-bot

Thanks for opening this issue! We will help you to keep its state consistent

added
BOCategory: Back Office
MinorSeverity: minor bug > https://build.prestashop.com/news/severity-classification
Taxes and PricesComponent: Which BO section is concerned
ReadyStatus: Issue is ready to be worked on
OrderComponent: Which BO section is concerned
BugType: Bug
migrationsymfony migration project
on Nov 2, 2020
added
Nice-to-haveKanban prioritization: issue could be included in next version
on Nov 2, 2020
icemansparks

icemansparks commented on Nov 15, 2020

@icemansparks

Rounding on each line is the only working option when using the PayPal module. If another option is selected, carts with multiple items will lead to errors on the order process.

Keeping this in mind I would hope for a fix since using PayPal as payment option is probably rarely to be considered an „edge case“.

Gipielle

Gipielle commented on Nov 16, 2020

@Gipielle

I am touched that you have noticed this error, it has been present since prestashop 1.4 if I remember correctly.

marionf

marionf commented on Nov 16, 2020

@marionf
Contributor

To be specified:
Round on each item = product unit price rounded
Round on each line = total of the line rounded

23 remaining items

Loading
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: BugFixedResolution: issue closed because fixedMinorSeverity: minor bug > https://build.prestashop.com/news/severity-classificationNice-to-haveKanban prioritization: issue could be included in next versionOrderComponent: Which BO section is concernedPR availableSolution: issue is being addressedRegressionType: regressionTaxes and PricesComponent: Which BO section is concernedmigrationsymfony migration project

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @eternoendless@Progi1984@matthieu-rolland@icemansparks@marionf

    Issue actions

      BO - Order page - Incorrect Total's product line when Round type = "Round on each item" · Issue #21708 · PrestaShop/PrestaShop