Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Price is mismatch in invoice and invoice PDF magento for Bundle Product 2.2.1 #12856

Closed
digvijay2017 opened this issue Dec 22, 2017 · 17 comments · Fixed by #31455
Closed
Assignees
Labels
Component: Email Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.2.x Indicates original Magento version for the Issue report. Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S1 Affects critical data or functionality and forces users to employ a workaround.

Comments

@digvijay2017
Copy link

digvijay2017 commented Dec 22, 2017

I am getting different price in invoice and invoice PDf for the bundle product. Actually, The price in the invoice pdf are wrong. I am getting right price in order, order email, invoice, invoice email or everywhere in the application, but invoice PDf price is wrong only Bundle product.

Preconditions

  1. Install Magento 2.2.1
  2. Create Bundle product in application.
  3. In Magento Admin go to Stores - Tax Rules and Add New Tax Rule
    34373744-2e6633ec-eb03-11e7-9fbe-2aa2ffa9a13c
  4. Go to Stores - Configuration - Sales - Tax and enable the following settings
    34373758-3a995126-eb03-11e7-857f-3b38d4fbf36c

Steps to reproduce

  1. Create the order with bundle product.
  2. Create the invoice, then download the invoice PDF.

Expected result

  1. Price in the invoice PDF should be same as invoice page or order page.
    Invoice Screen shot:

screenshot from 2017-12-22 14-38-25

Actual result

  1. Prices in the invoice PDF and invoice page are different. Getting wrong price in invoice PDF for bundle product.
    Invoice PDF Screen shot:
    invoice-pdf
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Dec 22, 2017
@magento-engcom-team
Copy link
Contributor

@digvijay2017 thank you for your report.
We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.

@digvijay2017
Copy link
Author

digvijay2017 commented Dec 27, 2017

Hi,

This issue occurring only with the bundle product. And product is taxable good, So Create a Tax Rule and Zone like This:
tax zones

tax-rule

Please use the following Tax configuration :

tax-include-config

I have checked this issue with the fresh Magento 2.2.1 installation:

Invoice :
error-invoice

Invoice Pdf screenshot:
invoice-error-pdf

In the screen shoot first product is the simple product but second product is the bundle product. Basically bundle product not including the TAX amount in the invoice PDF.

@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed and removed Progress: needs update labels Dec 28, 2017
@magento-engcom-team
Copy link
Contributor

@digvijay2017, thank you for your report.
We've created internal ticket(s) MAGETWO-86128 to track progress on the issue.

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Dec 28, 2017
@RomaKis RomaKis self-assigned this Jan 2, 2018
@RomaKis
Copy link
Contributor

RomaKis commented Jan 2, 2018

Working on this.

@sergiypop
Copy link

sergiypop commented Apr 24, 2018

Hello Magento-team, is there any progress for this bug ? I am facing the same problem.

@ishakhsuvarov
Copy link
Contributor

@sergiypop Solution is in the process of delivery at the moment.

@sergiypop
Copy link

@ishakhsuvarov It would be great if you could post the commit for the solution.

@ishakhsuvarov
Copy link
Contributor

@sergiypop It is currently available only in private repositories. Comment with information will be posted once fix is delivered.

@digvijay2017
Copy link
Author

digvijay2017 commented Apr 27, 2018

@sergiypop @ishakhsuvarov . I am still looking the permanent solution for this issue. Well
For temporary solution: I am added this
$price = $order->formatPriceTxt($childItem->getPriceInclTax());
instead of
$price = $order->formatPriceTxt($childItem->getPrice()); in the file : vendor/magento/module-bundle/Model/Sales/Order/Pdf/Items/Invoice.php line : 135 by overwrite the Model : Magento\Bundle\Model\Sales\Order\Pdf\Items\Invoice

@thlassche
Copy link
Contributor

@ishakhsuvarov @sergiypop Will this be in 2.3.2?

@engcom-Bravo engcom-Bravo self-assigned this Dec 27, 2019
@m2-assistant
Copy link

m2-assistant bot commented Dec 27, 2019

Hi @engcom-Bravo. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@engcom-Bravo engcom-Bravo removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Dec 27, 2019
@engcom-Bravo
Copy link
Contributor

Reproducible on Magento 2.4-develop
bundle_subtotal

@engcom-Bravo engcom-Bravo added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch labels Dec 27, 2019
@ghost ghost unassigned engcom-Bravo Dec 27, 2019
@magento-engcom-team magento-engcom-team removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Dec 27, 2019
@magento-engcom-team
Copy link
Contributor

@engcom-Bravo Thank you for verifying the issue.

Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:

  • Add "Component: " label(s) to this ticket based on verification result. If uncertain, you may follow the best guess

Once all required information is added, please add label "Issue: Confirmed" again.
Thanks!

@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Development in High Priority Backlog Dec 24, 2020
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Development in High Priority Backlog Dec 24, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Dec 24, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in High Priority Backlog Dec 28, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in High Priority Backlog Dec 28, 2020
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Development in High Priority Backlog Dec 28, 2020
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Development in High Priority Backlog Dec 28, 2020
@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Dec 29, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in High Priority Backlog Dec 29, 2020
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in High Priority Backlog Dec 29, 2020
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Done in High Priority Backlog Jan 5, 2021
@rickcj
Copy link

rickcj commented Apr 25, 2022

I have upgraded from 2.3.4 to 2.3.5, 2.3.5-p1, -p2, 2.3.7 and every time I have to redo this fix as it hasn't been back ported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Email Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.2.x Indicates original Magento version for the Issue report. Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S1 Affects critical data or functionality and forces users to employ a workaround.
Projects