diff --git a/app/code/community/Mollie/Mpm/Model/Client/Orders.php b/app/code/community/Mollie/Mpm/Model/Client/Orders.php index cedbe11..f6506fc 100644 --- a/app/code/community/Mollie/Mpm/Model/Client/Orders.php +++ b/app/code/community/Mollie/Mpm/Model/Client/Orders.php @@ -535,6 +535,11 @@ public function createShipment(Mage_Sales_Model_Order_Shipment $shipment, Mage_S $payment->setTransactionId($transactionId); $payment->registerCaptureNotification($captureAmount, true); + // Set the tax_invoiced and base_tax_invoiced. Normally this is done by calling $invoice->register(), + // but because the invoice is already exists this does not work. So, set it manually. + $order->setTaxInvoiced($order->getTaxInvoiced() + $invoice->getTaxAmount()); + $order->setBaseTaxInvoiced($order->getBaseTaxInvoiced() + $invoice->getBaseTaxAmount()); + foreach ($invoice->getAllItems() as $item) { if ($item->getQty() > 0) { $item->register(); diff --git a/app/code/community/Mollie/Mpm/etc/config.xml b/app/code/community/Mollie/Mpm/etc/config.xml index 938ceae..4a55a18 100644 --- a/app/code/community/Mollie/Mpm/etc/config.xml +++ b/app/code/community/Mollie/Mpm/etc/config.xml @@ -33,7 +33,7 @@ - 5.6.5 + 5.6.6