Pārlūkot izejas kodu

Gestion de la TVA : correction bug lors de l'initialisation de la TVA

refactoring
Guillaume Bourgeois pirms 4 gadiem
vecāks
revīzija
6ea19f977d
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. +4
    -2
      backend/controllers/ProducerAdminController.php
  2. +1
    -1
      backend/views/distribution/report.php

+ 4
- 2
backend/controllers/ProducerAdminController.php Parādīt failu

@@ -195,11 +195,13 @@ class ProducerAdminController extends BackendController

$command = $connection->createCommand("
UPDATE `product_order`
SET price = ROUND(price / (1 + :tax_value), 2)
SET price = ROUND(price / (1 + :tax_value), 2),
id_tax_rate = :id_tax_rate
WHERE id_product = :id_product",
[
':id_product' => $product->id,
':tax_value' => $product->taxRate->value
':tax_value' => $product->taxRate->value,
':id_tax_rate' => $product->taxRate->id,
]);

$result = $command->query();

+ 1
- 1
backend/views/distribution/report.php Parādīt failu

@@ -106,7 +106,7 @@ foreach ($pointsSaleArray as $pointSale) {
$html .= '<td>'.$credit.'</td>' ;
}
$html .= '<td><strong>'.number_format($order->amount, 2) . ' € ';
$html .= '<td><strong>'.number_format($order->amount_with_tax, 2) . ' € ';

if($order->getPaymentStatus() == Order::PAYMENT_PAID)
{

Notiek ielāde…
Atcelt
Saglabāt