From d449ab198eda67fa8ac8e9973b8e1aad65c8b6b3 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 18 Sep 2025 10:35:15 +0000 Subject: [PATCH] changed calculation again --- application/Preorder/PreorderModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Preorder/PreorderModel.php b/application/Preorder/PreorderModel.php index 9a1ae5575..edf156c08 100644 --- a/application/Preorder/PreorderModel.php +++ b/application/Preorder/PreorderModel.php @@ -1190,7 +1190,7 @@ class PreorderModel public static function countActivePreorder($preorderCampaignId = null) { $db = FronkDB::singleton(); - $where = " AND !(h.rimo_op_state = 'Not2Connect' AND h.rimo_ex_state = 'Gross planning')"; + $where = " AND h.rimo_op_state 1= 'Not2Connect'"; if ($preorderCampaignId) { $where .= " AND p.preordercampaign_id = $preorderCampaignId"; } @@ -1230,7 +1230,7 @@ class PreorderModel public static function countTotalUnits($preorderCampaignId = null) { $db = FronkDB::singleton(); - $where = " h.rimo_type != 'greenfield' AND !(h.rimo_op_state = 'Not2Connect' AND h.rimo_ex_state = 'Gross planning')"; + $where = " h.rimo_type != 'greenfield' AND h.rimo_op_state 1= 'Not2Connect'"; if ($preorderCampaignId) { $where .= " AND pc.id = $preorderCampaignId"; }