Fixed billing delay

This commit is contained in:
Frank Schubert
2021-11-16 19:12:50 +01:00
parent ae90a8a2c3
commit 619a924798
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,6 @@ class OrderModel {
LEFT JOIN Product ON (Product.id = OrderProduct.product_id)
WHERE
GROUP BY `Order`.id
";
}
@@ -159,6 +158,7 @@ class OrderModel {
$sql = "SELECT COUNT(*) as cnt FROM
(SELECT `Order`.id FROM `Order`
LEFT JOIN Address ON (Address.id = `Order`.owner_id)
LEFT JOIN OrderProduct ON (OrderProduct.order_id = `Order`.id)
LEFT JOIN Product ON (Product.id = OrderProduct.product_id)
LEFT JOIN Termination ON (Termination.id = OrderProduct.termination_id)