magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.31k forks source link

Credit Memo - Wrong tax calculation! #10982

Closed andidhouse closed 5 years ago

andidhouse commented 7 years ago

Preconditions

  1. Magento 2.1.7 via download
  2. Nginx, php7, varnish, redis

Steps to reproduce

  1. Create tax class for product with 19%
  2. Create Shipping tax class with 19%
  3. Order a product with shipping costs
  4. create a credit memo of the product cost (with the shipping costs)

Expected result

  1. The credit memo (for the article only) includes just the tax for the product - not the shipping tax of course

Actual result

  1. The credit memo includes also the shipping tax which is totally wrong as the shipping costs where not refunded. Screens attached.

I think there are 10-20 tickets reported nearly close to this one - i am not shure why the magento team does not check all aspects of the credit memo to get rid of all bugs. Also this is worst case with payment methods like PayPal which refund the credit memo amount automatically - so this leads to serious problems in the accounting.

1 2

There is also a massive bug in the credit memo creation. The total amount does not change in the credit memo backend if you change the Adjustment Fee/ Refund at all - Using Safari for Mac. Could you pls also check this!

andidhouse commented 7 years ago

This only happens sometimes - some refunds are ok - some have a calculation error.

I am also questioning why there are two ways to refund an order:

  1. Create a credit memo over the order page directly
  2. Create a credit memo over the invoice page

We realized this bugs only appeares on the credit creation when we do a credit memo over the invoice (which needs to be done to create an online refund).

Not shure why there are two ways?

magento-engcom-team commented 6 years ago

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

ste88 commented 6 years ago

Hi, we have reproduced the problem only with the "online" credit memo created from the invoice page. Offline credit memo works correctly.

Hope it is useful.

ottosschweiz commented 6 years ago

Hello,

Has something happened since this issue was reported? Or is there a known workaround to fix this problem?

It's just a really bad thing when those amounts are not correct on online credit memos.

Thank you

vseager commented 6 years ago

A year since this issue was raised and still no resolution or known workaround?!

kanduvisla commented 5 years ago

We just encountered this issue today in a Magento 2.2.6 shop which has been recently updaten from Magento 2.1.15. The order was placed in 2.1, but the credit memo was created in 2.2 (due to the passing of time).

We are unable to reproduce this issue on our dev-setup. Also, I cannot seem to find how you can create a credit memo from the invoice page. Is this feature removed in Magento 2.2?

sdzhepa commented 5 years ago

Hello @andidhouse @ottosschweiz @vseager @kanduvisla

Thank you for contribution and collaboration!

The corresponding internal tickets MAGETWO-91769, MAGETWO-82400 were fixed and closed by Magento team

Delivered to 2.3-develop branch and should be available with 2.3.1 release Please see details in the next commits:

Delivered to 2.2-develop branch and should be available with 2.2.8 release Please see details in the next commits: