maksuturva / magento2_payment_module

Svea Payment module for Magento 2
Other
4 stars 13 forks source link

SVEA-48 Fix handling fee issue when creating a credit memo #58

Closed szagabesz closed 1 year ago

szagabesz commented 1 year ago

This pull request has been initiated on behalf of Vaimo. The internal ticket reference for Vaimo is provided [here].(https://jira.vaimo.com/browse/SVEA-48)

Issue description targeted by this pull request:

We encountered a bug in the creation of the Credit Memo related to the handling fee (5€) of Svea's Company Invoice that has been collected from the customer.

The customer is supposed to be reimbursed for only one product, but since the order included several products, we do not want to return the part of the handling fee.

Credit Memo's "Grand Total" value always includes this handling fee, even if you try to set the value to zero and update the total amount with the "Update Total" button. When the invoicing allowance is reset, the product price should be €49.00 as a refund