Skip to content

Commit 15bf1f5

Browse files
Merge pull request #204 from mollie/5.6.6
5.6.6
2 parents 508bfc1 + 8f6aa7a commit 15bf1f5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/community/Mollie/Mpm/Model/Client/Orders.php

+5
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ public function createShipment(Mage_Sales_Model_Order_Shipment $shipment, Mage_S
535535
$payment->setTransactionId($transactionId);
536536
$payment->registerCaptureNotification($captureAmount, true);
537537

538+
// Set the tax_invoiced and base_tax_invoiced. Normally this is done by calling $invoice->register(),
539+
// but because the invoice is already exists this does not work. So, set it manually.
540+
$order->setTaxInvoiced($order->getTaxInvoiced() + $invoice->getTaxAmount());
541+
$order->setBaseTaxInvoiced($order->getBaseTaxInvoiced() + $invoice->getBaseTaxAmount());
542+
538543
foreach ($invoice->getAllItems() as $item) {
539544
if ($item->getQty() > 0) {
540545
$item->register();

app/code/community/Mollie/Mpm/etc/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<config>
3434
<modules>
3535
<Mollie_Mpm>
36-
<version>5.6.5</version>
36+
<version>5.6.6</version>
3737
</Mollie_Mpm>
3838
</modules>
3939
<global>

0 commit comments

Comments
 (0)