Correction anomalie 0000022 soumise le 16/04/2020 : Encore des problèmes de calcul de la TVA

This commit is contained in:
2020-04-16 23:09:12 +02:00
parent 2fe0f96c7c
commit 23c666e59f
4 changed files with 17 additions and 6 deletions

View File

@@ -60,7 +60,8 @@ class PrelevementSepaValidationModuleFrontController extends ModuleFrontControll
}
$currency = $this->context->currency;
$total = (float)$cart->getOrderTotal(true, Cart::BOTH);
$total = (float) $cart->getOrderTotal(false, Cart::BOTH) * 1.20;
// $total = (float)$cart->getOrderTotal(true, Cart::BOTH);
$this->module->validateOrder(
(int)$cart->id,

View File

@@ -777,7 +777,9 @@ class PrelevementSEPA extends PaymentModule
$cart = $this->context->cart;
$total = sprintf(
$this->trans('%1$s (tax incl.)', array(), 'Modules.PrelevementSEPA.Shop'),
Tools::displayPrice($cart->getOrderTotal(true, Cart::BOTH))
/* TheCoreDev le 16/04/2020 : Toujours le pb de calcul de la TVA --> finalement, on prend le HT et on le multiple par 1.2
Tools::displayPrice($cart->getOrderTotal(true, Cart::BOTH)) */
Tools::displayPrice($cart->getOrderTotal(false, Cart::BOTH) * 1.20)
);
return array(

View File

@@ -267,7 +267,9 @@ class Ps_Checkpayment extends PaymentModule
$total = $this->trans(
'%amount% (tax incl.)',
array(
'%amount%' => Tools::displayPrice($cart->getOrderTotal(true, Cart::BOTH)),
'%amount%' => Tools::displayPrice($cart->getOrderTotal(false, Cart::BOTH) * 1.20),
/* TheCoreDev le 16/04/2020 : Toujours le pb de calcul de la TVA (ano n°0000022) --> on utilise finalement le HT que l'on multiple par 1.2
'%amount%' => Tools::displayPrice($cart->getOrderTotal(true, Cart::BOTH)), */
),
'Modules.Checkpayment.Admin'
);