-
Notifications
You must be signed in to change notification settings - Fork 9.4k
MC-30127: Product Price is mismatch in invoice and invoice PDF magento for Bundle Product #31455
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
Conversation
Hi @engcom-Golf. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
6336340
to
7f99bf6
Compare
@magento run all tests |
7f99bf6
to
a64d561
Compare
@magento run all tests |
use Magento\Tax\Helper\Data; | ||
|
||
/** | ||
* Order invoice pdf default items renderer | ||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to find different solution without adding new dependency.
a64d561
to
afdc58e
Compare
@magento run all tests |
@@ -7,6 +7,7 @@ | |||
|
|||
namespace Magento\Bundle\Model\Sales\Order\Pdf\Items; | |||
|
|||
use Magento\Framework\App\ObjectManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant dependency. Please remove.
$this->_item = $childItem; | ||
$feedPrice = 380; | ||
$feedSubtotal = $feedPrice + 185; | ||
foreach ($this->getItemPricesForDisplay() as $priceData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please try to refactor this piece? This method already has ExcessiveMethodLength suppress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored draw method
4276750
to
8023d7f
Compare
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ QA Failed
The Printed Invoice doesn't contain one of the products.
Manual testing scenario:
- Create a Bundle product with two options.
- One dropdown option
- second checkbox option containing two products
- Place an order selecting 1 product from the first option, two products from the second option
- Submit and Print the invoice.
- Observe the invoice
Actual Result
The first product from the second option is not displayed in the printed invoice
…o for Bundle Product 2.2.1
…o for Bundle Product 2.2.1
8023d7f
to
1ce3e1f
Compare
@magento run all tests |
@zakdma, an error occurred during the Pull Request import. |
2 similar comments
@zakdma, an error occurred during the Pull Request import. |
@zakdma, an error occurred during the Pull Request import. |
@zakdma, an error occurred during the Pull Request import. |
@zakdma the branch with code successfully imported into |
Hi @engcom-Golf, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Stores->Configuration->Sales->Tax->Orders, Invoices, Credit Memos Display Settings
Display Taxes & Display Subtotal
Expected result
Prices for all products in pdf file should be the same as in admin
All text should be drawn correctly (font, align, padding)
Questions or comments
Contribution checklist (*)