37 Commits

Author SHA1 Message Date
05b55b5721 fix: add staleTime to job card expense, parts, and services queries; update job card general info and payments received components 2026-05-13 17:20:59 +04:00
6b356d2855 fix estimate table and expense items 2026-05-13 15:55:40 +04:00
Najjar\NajjarV02
cc7dc1bd17 fix: align frontend zod schemas with backend validation rules
Tightened frontend zod schemas where backend required fields the frontend marked optional, and matched enum/format constraints.

Schemas:
- vehicle-document: document_type required
- parts: shop_type, category, unit_type, department, sku required
- inspections: customer, vehicle, department, inspection_category, employee, order_number, date, time required
- appointments: service_writer required, cross-field to_time > from_time
- vendor-credits: vendor + vendor_credit_date required
- job-cards: documents[].document_type_id required
- expense-items: category, unit_type, department, sku required
- inventory-adjustments: reference_number, date required
- tasks: task_type, task_section required
- shop-timings: in_time, out_time enforce HH:MM:SS regex
- vendor-credit: subject + vendor + vendor_credit_date required

Settings:
- shop-type: shop_type + note required
- insurance-types: description field added, required
- make-and-models: shop_type required, year 1900..2100
- departments: assignment_type required enum (AssignmentType)
- company: website URL validation, latitude/longitude range, first_day_of_work enum, string max lengths
- configurations: 4 fields enum-typed (was raw strings)

Inline forms:
- job-card service/part/expense-item: relations required (part/service/expense_item/department)
- job-card recommendation: max 255
- vehicles/inline-forms/shop-type: shop_type + note required
- vehicles/inline-forms/body-type: shop_type_id pulled from parent form context, guard on submit
- vehicles/inline-forms/color: code field added, required
- services/inline-forms/department: assignment_type required enum
- tasks/task-section: arrangement required integer
- invoices/invoice-edit: status + discount enum-typed

Auth:
- login: password min 6 (was 8; backend allows 6)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 16:22:26 +04:00
349a458c3c feat: enhance invoice and job card forms with new fields, validation, and print functionality
Co-authored-by: Copilot <copilot@github.com>
2026-05-09 02:51:19 +03:00
25c3125894 fix: update default values in service form and enhance validation for required fields 2026-05-08 16:02:51 +03:00
4b51ffe457 refactor: enhance employee and service forms with new fields and validation
Co-authored-by: Copilot <copilot@github.com>
2026-05-08 15:55:33 +03:00
b0361fcbfb fix build errors 2026-05-08 12:15:40 +03:00
38565298fc update forms
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 21:02:15 +03:00
dd32658500 fix bugs
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 15:04:05 +03:00
c7eb23dd3f fix bugs
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 13:32:35 +03:00
4faafe6667 hide company for non company users
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 11:34:07 +03:00
1fda8d8d7b fixes
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 11:30:23 +03:00
cdd1cbc31a fix validation issues 2026-05-07 10:35:57 +03:00
c5d406792f add ignoreDeprecations option to tsconfig files 2026-05-01 11:23:23 +03:00
97364f4734 fix bugs phase 2 (excel ) , download sample feature
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 11:04:38 +03:00
e1ef6fa2ea fix many bugs
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 19:03:31 +03:00
0c43c8edd2 add customer_id prop to RhfVehicleSelectField and update vehicle query
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 11:32:35 +03:00
615a0fda59 fix build 2026-04-24 12:28:30 +03:00
65964605e1 updates
Co-authored-by: Copilot <copilot@github.com>
2026-04-24 12:20:10 +03:00
564e9e510f fix build 2026-04-23 15:15:21 +03:00
c0f78c6e18 updates 2026-04-23 14:38:41 +03:00
f17dd1486c fix invoice informations 2026-04-16 11:42:11 +03:00
973149e974 fix build 2026-04-15 04:59:05 +03:00
020ffccfd6 finish bills , po , jobcards relational fields creation 2026-04-13 18:48:15 +03:00
3eb471a604 fix build errors 2026-04-09 15:23:36 +03:00
29cc9c6f4e updates 2026-04-09 15:17:07 +03:00
c5f6d2f596 make and models 2026-04-09 11:06:56 +03:00
17d8e1c90d fix build error 2026-04-08 15:04:01 +03:00
bb02b77be2 filters , order inspections , inventory items , credit notes 2026-04-08 14:38:16 +03:00
90c84a0bda update 2026-04-07 15:05:03 +03:00
38ef10da4d updates 2026-04-07 14:45:29 +03:00
c47f7c1b6a fix build error 2026-04-07 13:05:22 +03:00
9fd7b61c5a fix build 2026-04-07 07:07:02 +03:00
11db1e6941 updates 2026-04-07 06:32:40 +03:00
24a44481a0 updates 2026-04-06 02:32:47 +03:00
5f3d208158 updates 2026-04-01 15:34:50 +03:00
13b56d4960 init 2026-03-27 16:20:46 +03:00