Open m2-assistant[bot] opened 3 months ago
Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @nicolasddev ,
Verified the issue on 2.4-develop, it is reproducible.
Hence, Confirming the issue.
Preconditions:-
1.Enable Fixed Product Tax in Magento Admin 2.Create FPT Product Attribute 3.Add FPT Tax Attribute to Attribute Set 4.Configure FPT Tax per Product 5.In Admin > Stores > Configuration > Sales > Tax > Shopping Cart Display Settings > Display Full Tax Summary = Yes and in the other section "Orders, Invoices, Credit Memos Display Settings"
Steps to reproduce:-
1.Backend: Create a product with a $50 Fixed Product Tax (FPT). 2.Frontend: add 5 quantities of this product to your cart. 3.Frontend: Make sure that the FPT are applied and place the order. 4.Backend: Create a credit memo for only a single quantity.
**Actual Result:
The values saved in the sales_creditmemo_item.base_weee_tax_applied_amount is 50 and sales_creditmemo_item.base_weee_tax_applied_row_amnt columns is 250 (5x 50).**
product created
FPT added
5 quantities added to cart
cart
placed order
order on admin
credit memo created
credit memo details
memo saved
Database: on sales_creditmemo_item tabel value for base_weee_tax_applied_row_amnt columns is 250 (5x 50).
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12049 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
This issue is automatically created based on existing pull request: magento/magento2#38760: Fix: The Credit Memo Items' base_weee_tax_applied_row_amnt Value is Incorrect
The setBaseWeeeTaxAppliedRowAmnt() function should be used instead of setBaseWeeeTaxAppliedRowAmount, as the database table field name is base_weee_tax_applied_row_amnt. Due to this error, the value of the sales_creditmemo_item.base_weee_tax_applied_row_amnt database column is always set to the order item value, which is incorrect.
Manual testing scenarios (*)
Expected Result: Since only a single quantity was credited, the values saved in both the sales_creditmemo_item.base_weee_tax_applied_amount and sales_creditmemo_item.base_weee_tax_applied_row_amnt columns should be 50.
Actual Result: The values saved in the sales_creditmemo_item.base_weee_tax_applied_amount is 50 and sales_creditmemo_item.base_weee_tax_applied_row_amnt columns is 250 (5x 50).
Questions or comments
A developer must look at the base_weee_tax_applied_row_amnt column of the sales_creditmemo_item database table in order to confirm the result.
Contribution checklist (*)