Add check for empty vehicle subscriptions in collected order invoices processing
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user