Add enhanced department complaint functionality with category and date support alongside POS improvements:

- Introduced `departmentDailyReportComplaintCategories.js` for managing complaint categories with validation utilities.
- Added category and wash date fields to the complaint editing interface with validation in `DepartmentDailyReportComplaints.vue`.
- Developed `PosOrderDetailItemsTable.vue` for displaying order details with inline actions and price highlighting.
- Implemented `PosOrderItemEditModal.vue` for editable order items with validations for price and quantity.
- Created unit tests for `PosLastScannedLicensePlatesV2.vue` to verify scanning, caching, and error handling behaviors.
This commit is contained in:
Jeppe Bundgaard
2026-04-09 12:55:30 +02:00
parent 78648a0b7f
commit 2bf1f5b385
31 changed files with 2936 additions and 773 deletions
+32 -1
View File
@@ -17028,12 +17028,17 @@ components:
DepartmentDailyReportComplaintCreateRequest:
type: object
required: [department_id, description]
required: [department_id, wash_date, category, description]
properties:
department_id: { type: integer }
customer_number:
type: integer
nullable: true
wash_date:
type: string
format: date
category:
$ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
description:
type: string
minLength: 1
@@ -17048,11 +17053,29 @@ components:
customer_number:
type: integer
nullable: true
wash_date:
type: string
format: date
category:
$ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
description:
type: string
minLength: 1
maxLength: 4000
DepartmentDailyReportComplaintCategory:
type: string
enum:
- wash_quality
- wash_price
- damage_paint
- damage_mirrors
- damage_cables_electronics
- damage_plastic_parts
- damage_other
- service
- other
DepartmentDailyReportComplaintCustomerSearchResult:
type: object
properties:
@@ -17076,6 +17099,14 @@ components:
customer_name:
type: string
nullable: true
wash_date:
type: string
format: date
nullable: true
category:
allOf:
- $ref: '#/components/schemas/DepartmentDailyReportComplaintCategory'
nullable: true
description: { type: string }
created_by: { type: integer }
created_by_name: