Enhance FalukantService and UI components for improved product handling

- Updated FalukantService to allow optional inclusion of productType in queries, enhancing flexibility in data retrieval.
- Modified SaleSection.vue to conditionally display product information and size, improving user experience by handling cases with no product.
- Added new German translation for 'runningNoProduct' to enhance localization support for users.
This commit is contained in:
Torsten Schulz (local)
2025-12-05 13:07:31 +01:00
parent 5ad27a87e5
commit 865ef81012
3 changed files with 15 additions and 4 deletions

View File

@@ -1014,7 +1014,7 @@ class FalukantService extends BaseService {
include: [
{ model: RegionData, as: 'sourceRegion', attributes: ['id', 'name'] },
{ model: RegionData, as: 'targetRegion', attributes: ['id', 'name'] },
{ model: ProductType, as: 'productType', attributes: ['id', 'labelTr'] },
{ model: ProductType, as: 'productType', required: false, attributes: ['id', 'labelTr'] },
{
model: Vehicle,
as: 'vehicle',