Add check for empty vehicle subscriptions in collected order invoices processing

This commit is contained in:
Jepp9350
2025-06-01 20:33:09 +02:00
parent 0eda58bcba
commit dcc6a56009
@@ -895,6 +895,11 @@ class collected_order_invoices_o extends db
];
}
// Check if there are any vehicle subscriptions
if (empty($vehicle_array)) {
return;
}
// Create the vehicle subscriptions transaction
$transaction = new orders_o();
$transaction->add(