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:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user