Skip to content

Commit

Permalink
Merge pull request #204 from mollie/5.6.6
Browse files Browse the repository at this point in the history
5.6.6
  • Loading branch information
Marvin-Magmodules authored Jun 1, 2021
2 parents 508bfc1 + 8f6aa7a commit 15bf1f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/code/community/Mollie/Mpm/Model/Client/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Mollie/Mpm/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<config>
<modules>
<Mollie_Mpm>
<version>5.6.5</version>
<version>5.6.6</version>
</Mollie_Mpm>
</modules>
<global>
Expand Down

0 comments on commit 15bf1f5

Please sign in to comment.