Skip to content

Commit

Permalink
Merge pull request #225 from mollie/5.7.1
Browse files Browse the repository at this point in the history
5.7.1
  • Loading branch information
Marvin-Magmodules authored Jul 29, 2022
2 parents 76f2978 + 011ef7b commit 1a54fae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ class Mollie_Mpm_Model_Totals_PaymentFee_InvoiceTax extends Mage_Sales_Model_Ord
{
public function collect(Mage_Sales_Model_Order_Invoice $invoice)
{
// When this is the last invoice, Magento will use the tax from the order, which already includes the payment
// fee tax minus the already invoiced tax. So don't add it again.
if ($invoice->isLast()) {
return $this;
}

$invoice->setGrandTotal($invoice->getGrandTotal() + $invoice->getMollieMpmPaymentFeeTax());
$invoice->setBaseGrandTotal($invoice->getBaseGrandTotal() + $invoice->getBaseMollieMpmPaymentFeeTax());

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.7.0</version>
<version>5.7.1</version>
</Mollie_Mpm>
</modules>
<global>
Expand Down

0 comments on commit 1a54fae

Please sign in to comment.