Skip to content

Commit 72b8697

Browse files
Merge pull request #100 from Davie82/issue-99
Get shipping amount including tax for refunds
2 parents d3afc7b + 4325743 commit 72b8697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Client/Orders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public function createOrderRefund(Order\Creditmemo $creditmemo, Order $order)
648648
if ($shippingCostsLine->getId() && $shippingCostsLine->getQtyRefunded() == 0) {
649649
if ($creditmemo->getShippingAmount() > 0) {
650650
$addShippingToRefund = true;
651-
if (abs($creditmemo->getShippingAmount() - $shippingCostsLine->getTotalAmount()) > 0.01) {
651+
if (abs($creditmemo->getShippingInclTax() - $shippingCostsLine->getTotalAmount()) > 0.01) {
652652
$msg = __('Can not create online refund, as shipping costs do not match');
653653
$this->mollieHelper->addTolog('error', $msg);
654654
throw new LocalizedException($msg);

0 commit comments

Comments
 (0)