Skip to content

Commit

Permalink
Merge pull request mollie#100 from Davie82/issue-99
Browse files Browse the repository at this point in the history
Get shipping amount including tax for refunds
  • Loading branch information
Marvin-Magmodules authored Dec 4, 2018
2 parents d3afc7b + 4325743 commit 72b8697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Client/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ public function createOrderRefund(Order\Creditmemo $creditmemo, Order $order)
if ($shippingCostsLine->getId() && $shippingCostsLine->getQtyRefunded() == 0) {
if ($creditmemo->getShippingAmount() > 0) {
$addShippingToRefund = true;
if (abs($creditmemo->getShippingAmount() - $shippingCostsLine->getTotalAmount()) > 0.01) {
if (abs($creditmemo->getShippingInclTax() - $shippingCostsLine->getTotalAmount()) > 0.01) {
$msg = __('Can not create online refund, as shipping costs do not match');
$this->mollieHelper->addTolog('error', $msg);
throw new LocalizedException($msg);
Expand Down

0 comments on commit 72b8697

Please sign in to comment.