Quellcode durchsuchen

[backend] Rapports : correction bug produits non filtrés par producteur.

refactoring
Guillaume Bourgeois vor 5 Jahren
Ursprung
Commit
7c0cd8352b
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. +1
    -0
      backend/controllers/ReportController.php

+ 1
- 0
backend/controllers/ReportController.php Datei anzeigen

@@ -135,6 +135,7 @@ class ReportController extends BackendController
$res = Yii::$app->db->createCommand("SELECT product.name, SUM(product_order.quantity) AS quantity, SUM(product_order.price * product_order.quantity) AS total
FROM `order`, product_order, product
WHERE `order`.id = product_order.id_order
AND product.id_producer = ".((int) Producer::getId())."
AND product_order.id_product = product.id
AND `order`.date_delete IS NULL
".$conditionUsers."

Laden…
Abbrechen
Speichern