Add 'barred' status to customer and vehicle data

Introduced the 'barred' property to identify barred customers and vehicles. Updated relevant classes, methods, and API endpoints to handle this new field. Enhanced plate scans to include the barred status for vehicles based on customer association.
This commit is contained in:
Jepp9350
2025-05-06 12:14:21 +02:00
parent 4cc2ff462e
commit 45faa7c56a
5 changed files with 73 additions and 3 deletions
@@ -3,6 +3,7 @@
namespace routes;
use classes\authentication;
use customers\economic_customer_mo;
use objects\customer_vehicles_o;
use objects\logs_o;
use objects\orders_o;
@@ -387,6 +388,7 @@ class vehiclesRoute
'id' => (int)$customer->id,
'customer_name' => (string)$customer->getCustomerName((int)$customer_number),
'customer_number' => (int)$customer_number,
'barred' => (new economic_customer_mo())->getCustomerByCustomerNumber((int)$customer_number)->asArray()['barred'],
];
}, $customers)
);