Closed datasolution75 closed 4 years ago
Hi @datasolution75. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me $VERSION instance
where $VERSION
is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop).
For more details, please, review the Magento Contributor Assistant documentation.
@datasolution75 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Hi @engcom-backlog-andrii. 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:
[x] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[x] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[x] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[x] 4. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[x] 6. Add label Issue: Confirmed
once verification is complete.
[x] 7. Make sure that automatic system confirms that report has been added to the backlog.
@datasolution75 for suggesting code changes it is better to create a PR 😉
Sorry i'm new to this, what is a PR ? And where can i create one ?
Hi @datasolution75. Thanks for the report. I was not able to reproduce this issue by following the steps you provided. My Grand Total (Excl tax.) is 41,94. I got this result:
Hi, i see that you don't have exacty the same prices, and i think the shippings you set are not taxed.
All the products and the shipping method have a 20% tax rate. The prices are all including tax in the BO. Here is the Tax config :
Firt product price including tax is : 19.95 Second is 26.90 Shipping is 7.90.
All have taxes.
Here is the invoice i have in the database :
@datasolution75 please check https://github.com/magento/magento2/blob/2.3-develop/.github/CONTRIBUTING.md on how to propose some changes.
@engcom-backlog-andrii Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-96738
were created
@datasolution75 @orlangur can I create a PR with suggested changes ?
I don't have any objection on my side.
I am working on this at #dmcdindia1
@magento-engcom-team
I'm pretty sure the field base_shipping_discount_tax_compensation_amnt
will never have a value instead of null inside the quote_address
table.
At first, take a look at this WONDERFUL phpdoc:
\Magento\Quote\Model\Quote\Address
at line 84-85.
setBaseShippingDiscountTaxCompensationAmnt
Please, follow up this trace:
\Magento\Quote\Model\Quote\TotalsCollector::collect
- line 148
\Magento\Quote\Model\Quote\TotalsCollector::collectAddressTotals
- line 274
\Magento\Tax\Model\Sales\Total\Quote\Tax::collect
- line 126
\Magento\Tax\Model\Sales\Total\Quote\Shipping::collect
- line 56
\Magento\Tax\Model\Sales\Total\Quote\CommonTaxCollector::processShippingTaxInfo
- line 743
\Magento\Quote\Model\Quote\Address\Total::setBaseTotalAmount
- pay your attention to '_amont' literal.
\Magento\Quote\Model\Quote\TotalsCollector::collectAddressTotals
- line 286
How should this field convert from base_shipping_discount_tax_compensation_amount
into base_shipping_discount_tax_compensation_amnt
?
Hi @engcom-Charlie. 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
branchDetails
- 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.
Hello @datasolution75
I am not able to reproduce this issue on a fresh Magento 2.4-develop.
Testing scenario:
Result: Credit memo has been created
So i have to close this issue as not reproducible.
Please feel free to comment, reopen or create new ticket according to the Issue reporting guidelines if you are still facing this issue on the latest Magento 2.4-develop branch.
Thank you for collaboration.
@engcom-Charlie please check the comment I've left above Is it related to this issue or I need to create another one?
Hello @durexlovesex, please create a new issue for it. Thanks for contributing!
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The "collect" function of Magento\Sales\Model\Order\Creditmemo\Total\Shipping should add the ShippingDiscountTaxCompensationAmount in the allowedTaxAmount variable.
Code is now :
It should be :