diff --git a/services/nginx/app/objects/customer_vehicles_o.php b/services/nginx/app/objects/customer_vehicles_o.php index 6962840e..058d84b8 100644 --- a/services/nginx/app/objects/customer_vehicles_o.php +++ b/services/nginx/app/objects/customer_vehicles_o.php @@ -503,6 +503,11 @@ class customer_vehicles_o extends db // Convert the array of transaction ids to a comma separated string $orders = ''; foreach ($transaction_ids as $transaction_id) { + // Check if the transaction is included in the invoicing. + $tmp = (new orders_o())->select((int)$transaction_id); + if (!$tmp->isIncludedInInvoicing()) { + continue; // The transaction is not included in the invoicing, skip it + } $orders .= (int)$transaction_id . ','; } // Remove the last comma