Improve vehicle type determination in xlvask_parser_stor_bil

- Integrated `customer_vehicles_o` to validate vehicle type using customer-based data.
- Added fallback logic in `selectByPlate` to handle exceptions gracefully.
- Enhanced `checkMotorAPI` error handling by returning `false` instead of throwing exceptions.
This commit is contained in:
Jeppe Bundgaard
2025-09-08 13:06:52 +02:00
parent d14316e249
commit 2dbf318df0
@@ -21,6 +21,6 @@ class xlvask_parser_halleje extends xlvask_product_parser
*/
protected function parse(xlvask_wash_item $wash_item, xlvask_usage_log $xlvask_usage_log): products_o
{
return (new products_o())->select(64); // Halleje product ID is actually 62, but since we're currently not using it we just return the 64 (Irrelevant) product ID.
return (new products_o())->select(62); // Halleje product ID is actually 62, but since we're currently not using it we just return the 64 (Irrelevant) product ID.
}
}