Add getPlateReferenceIfExists in customer_vehicles_o, refine order creation logic to include plate references, enable usage synchronization in XLVask tasks, and introduce xlvask_parser_special_s_be_front.

This commit is contained in:
Jepp9350
2025-06-12 12:14:20 +02:00
parent 5d38eae9f6
commit 27e8c558a4
8 changed files with 115 additions and 33 deletions
+2 -2
View File
@@ -731,8 +731,8 @@ class orders_o extends db
$this->add(
(int)$user->customer_number->value(),
2285,
'',
'This transaction was created automatically, based on usage log ' . $xlvask_usage_log->WashId,
(string)(new customer_vehicles_o())->getPlateReferenceIfExists($xlvask_usage_log->RegistrationNumber),
'', // No notes for XL Vask orders
(int)$xlvask_usage_log->getDepartment()->id,
$xlvask_usage_log->RegistrationNumber,
);