fix invoice informations
This commit is contained in:
+470
-19
@@ -95,8 +95,8 @@ export interface paths {
|
||||
};
|
||||
requestBody?: never;
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
/** @description Created */
|
||||
201: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
@@ -14538,7 +14538,166 @@ export interface paths {
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
/** Display the specified estimate. */
|
||||
get: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path: {
|
||||
id: string;
|
||||
};
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody?: never;
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
/**
|
||||
* @example {
|
||||
* "data": {
|
||||
* "id": 1,
|
||||
* "title": "Estimate for Toyota Camry",
|
||||
* "customer_id": 1,
|
||||
* "vehicle_id": 1,
|
||||
* "department_id": 1,
|
||||
* "estimate_number": "EST-001",
|
||||
* "date": "2026-03-31",
|
||||
* "has_insurance": false,
|
||||
* "enable_digital_authorisation": false,
|
||||
* "insurance_type_id": 1,
|
||||
* "insurer_id": 2,
|
||||
* "service_writer_id": 1,
|
||||
* "footer": "Thank you for your business.",
|
||||
* "created_at": "2026-03-31T10:00:00.000000Z",
|
||||
* "updated_at": "2026-03-31T10:00:00.000000Z",
|
||||
* "labels": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "title": "Urgent",
|
||||
* "color_code": "#FF0000",
|
||||
* "pivot": {
|
||||
* "estimate_id": 1,
|
||||
* "label_id": 1
|
||||
* }
|
||||
* }
|
||||
* ],
|
||||
* "customer_remarks": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "estimate_id": 1,
|
||||
* "remark": "Oil change recommended.",
|
||||
* "created_at": "2026-03-31T10:00:00.000000Z",
|
||||
* "updated_at": "2026-03-31T10:00:00.000000Z"
|
||||
* }
|
||||
* ],
|
||||
* "customer": {
|
||||
* "id": 1,
|
||||
* "first_name": "John",
|
||||
* "last_name": "Doe"
|
||||
* },
|
||||
* "vehicle": {
|
||||
* "id": 1,
|
||||
* "registration_number": "ABC-1234",
|
||||
* "make": "Toyota",
|
||||
* "model": "Camry"
|
||||
* },
|
||||
* "department": {
|
||||
* "id": 1,
|
||||
* "name": "Service"
|
||||
* },
|
||||
* "insurance_type": {
|
||||
* "id": 1,
|
||||
* "title": "Comprehensive"
|
||||
* },
|
||||
* "insurer": {
|
||||
* "id": 2,
|
||||
* "first_name": "Alex",
|
||||
* "last_name": "Insurer"
|
||||
* },
|
||||
* "service_writer": {
|
||||
* "id": 1,
|
||||
* "first_name": "Sam",
|
||||
* "last_name": "Writer"
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
"application/json": {
|
||||
data?: {
|
||||
id?: number;
|
||||
title?: string;
|
||||
customer_id?: number;
|
||||
vehicle_id?: number;
|
||||
department_id?: number;
|
||||
estimate_number?: string;
|
||||
date?: string;
|
||||
has_insurance?: boolean;
|
||||
enable_digital_authorisation?: boolean;
|
||||
insurance_type_id?: number;
|
||||
insurer_id?: number;
|
||||
service_writer_id?: number;
|
||||
footer?: string;
|
||||
/** Format: date-time */
|
||||
created_at?: string;
|
||||
/** Format: date-time */
|
||||
updated_at?: string;
|
||||
labels?: {
|
||||
id?: number;
|
||||
title?: string;
|
||||
color_code?: string;
|
||||
pivot?: {
|
||||
estimate_id?: number;
|
||||
label_id?: number;
|
||||
};
|
||||
}[];
|
||||
customer_remarks?: {
|
||||
id?: number;
|
||||
estimate_id?: number;
|
||||
remark?: string;
|
||||
/** Format: date-time */
|
||||
created_at?: string;
|
||||
/** Format: date-time */
|
||||
updated_at?: string;
|
||||
}[];
|
||||
customer?: {
|
||||
id?: number;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
};
|
||||
vehicle?: {
|
||||
id?: number;
|
||||
registration_number?: string;
|
||||
make?: string;
|
||||
model?: string;
|
||||
};
|
||||
department?: {
|
||||
id?: number;
|
||||
name?: string;
|
||||
};
|
||||
insurance_type?: {
|
||||
id?: number;
|
||||
title?: string;
|
||||
};
|
||||
insurer?: {
|
||||
id?: number;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
};
|
||||
service_writer?: {
|
||||
id?: number;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
/** Update the specified estimate. */
|
||||
put: {
|
||||
parameters: {
|
||||
@@ -29708,15 +29867,87 @@ export interface paths {
|
||||
* "customer_id": 1,
|
||||
* "vehicle_id": 1,
|
||||
* "estimate_id": 1,
|
||||
* "kms_in": 50000,
|
||||
* "has_insurance": false,
|
||||
* "insurer_id": 2,
|
||||
* "invoice_to_id": 1,
|
||||
* "billing_address_id": 10,
|
||||
* "delivery_address_id": 11,
|
||||
* "invoice_date": "2026-03-31",
|
||||
* "due_date": "2026-04-14",
|
||||
* "payment_terms_id": 1,
|
||||
* "invoice_sequence_id": 1,
|
||||
* "invoice_number": "INV-001",
|
||||
* "invoice_title": "Tax Invoice",
|
||||
* "department_id": 1,
|
||||
* "notes": "string",
|
||||
* "notes": "Vehicle service and parts",
|
||||
* "terms_and_conditions": "Payment due in 14 days.",
|
||||
* "status": "draft",
|
||||
* "discount": "no"
|
||||
* "received_payment": false,
|
||||
* "payment_mode_id": 1,
|
||||
* "deposit_to": "Main Account",
|
||||
* "amount": 2500,
|
||||
* "discount": "no",
|
||||
* "inspection_categories": [
|
||||
* {
|
||||
* "inspection_category_id": 1,
|
||||
* "rate_type": "flat_rate",
|
||||
* "labor_rate": 500,
|
||||
* "working_hours": 1,
|
||||
* "labor_hours": 1,
|
||||
* "rate": 500,
|
||||
* "chart_of_account": "4000",
|
||||
* "description": "General inspection",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "parts": [
|
||||
* {
|
||||
* "part_id": 1,
|
||||
* "quantity": 2,
|
||||
* "rate": 150,
|
||||
* "chart_of_account": "4100",
|
||||
* "description": "Oil filter",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "expenses": [
|
||||
* {
|
||||
* "expense_id": 1,
|
||||
* "quantity": 1,
|
||||
* "rate": 100,
|
||||
* "chart_of_account": "4200",
|
||||
* "description": "Shop supplies",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "services": [
|
||||
* {
|
||||
* "service_id": 1,
|
||||
* "rate_type": "hourly",
|
||||
* "labor_rate_id": 1,
|
||||
* "working_hours": 2,
|
||||
* "labor_hours": 2,
|
||||
* "quantity": 1,
|
||||
* "rate": 800,
|
||||
* "chart_of_account": "4300",
|
||||
* "description": "Engine service",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "service_groups": [
|
||||
* {
|
||||
* "service_group_id": 1,
|
||||
* "rate_type": "flat_rate",
|
||||
* "labor_rate_id": 1,
|
||||
* "working_hours": 1,
|
||||
* "labor_hours": 1,
|
||||
* "rate": 600,
|
||||
* "chart_of_account": "4400",
|
||||
* "description": "Major service package",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
*/
|
||||
"application/json": {
|
||||
@@ -29724,40 +29955,102 @@ export interface paths {
|
||||
customer_id?: number;
|
||||
vehicle_id?: number;
|
||||
estimate_id?: number;
|
||||
kms_in?: number;
|
||||
has_insurance?: boolean;
|
||||
insurer_id?: number;
|
||||
invoice_to_id?: number;
|
||||
billing_address_id?: number;
|
||||
delivery_address_id?: number;
|
||||
invoice_date?: string;
|
||||
due_date?: string;
|
||||
payment_terms_id?: number;
|
||||
invoice_sequence_id?: number;
|
||||
invoice_number?: string;
|
||||
invoice_title?: string;
|
||||
department_id?: number;
|
||||
notes?: string;
|
||||
terms_and_conditions?: string;
|
||||
status?: string;
|
||||
received_payment?: boolean;
|
||||
payment_mode_id?: number;
|
||||
deposit_to?: string;
|
||||
amount?: number;
|
||||
discount?: string;
|
||||
inspection_categories?: {
|
||||
inspection_category_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
parts?: {
|
||||
part_id?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
expenses?: {
|
||||
expense_id?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
services?: {
|
||||
service_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate_id?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
service_groups?: {
|
||||
service_group_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate_id?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
/** @description Created */
|
||||
201: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
/**
|
||||
* @example {
|
||||
* "message": "Operation completed successfully.",
|
||||
* "message": "Invoice created successfully.",
|
||||
* "data": {
|
||||
* "id": 1,
|
||||
* "subject": "Invoice for Job Card 001",
|
||||
* "subject": "Invoice for Service",
|
||||
* "customer_id": 1,
|
||||
* "vehicle_id": 1,
|
||||
* "estimate_id": 1,
|
||||
* "kms_in": 50000,
|
||||
* "has_insurance": false,
|
||||
* "insurer_id": 1,
|
||||
* "insurer_id": 2,
|
||||
* "invoice_to_id": 1,
|
||||
* "billing_address_id": 1,
|
||||
* "delivery_address_id": 1,
|
||||
* "billing_address_id": 10,
|
||||
* "delivery_address_id": 11,
|
||||
* "invoice_date": "2026-03-31",
|
||||
* "due_date": "2026-04-14",
|
||||
* "payment_terms_id": 1,
|
||||
@@ -29765,16 +30058,100 @@ export interface paths {
|
||||
* "invoice_number": "INV-001",
|
||||
* "invoice_title": "Tax Invoice",
|
||||
* "department_id": 1,
|
||||
* "notes": "string",
|
||||
* "terms_and_conditions": "string",
|
||||
* "notes": "Vehicle service and parts",
|
||||
* "terms_and_conditions": "Payment due in 14 days.",
|
||||
* "status": "draft",
|
||||
* "received_payment": 0,
|
||||
* "received_payment": false,
|
||||
* "payment_mode_id": 1,
|
||||
* "deposit_to": "string",
|
||||
* "amount": 0,
|
||||
* "deposit_to": "Main Account",
|
||||
* "amount": 2500,
|
||||
* "discount": "no",
|
||||
* "created_at": "2026-03-31T10:00:00.000000Z",
|
||||
* "updated_at": "2026-03-31T10:00:00.000000Z"
|
||||
* "updated_at": "2026-03-31T10:00:00.000000Z",
|
||||
* "customer": {
|
||||
* "id": 1
|
||||
* },
|
||||
* "vehicle": {
|
||||
* "id": 1
|
||||
* },
|
||||
* "invoice_sequence": {
|
||||
* "id": 1,
|
||||
* "title": "INV"
|
||||
* },
|
||||
* "department": {
|
||||
* "id": 1,
|
||||
* "name": "Service"
|
||||
* },
|
||||
* "invoice_inspection_categories": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "invoice_id": 1,
|
||||
* "inspection_category_id": 1,
|
||||
* "rate_type": "flat_rate",
|
||||
* "labor_rate": 500,
|
||||
* "working_hours": 1,
|
||||
* "labor_hours": 1,
|
||||
* "rate": 500,
|
||||
* "chart_of_account": "4000",
|
||||
* "description": "General inspection",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "invoice_parts": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "invoice_id": 1,
|
||||
* "part_id": 1,
|
||||
* "quantity": 2,
|
||||
* "rate": 150,
|
||||
* "chart_of_account": "4100",
|
||||
* "description": "Oil filter",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "invoice_expenses": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "invoice_id": 1,
|
||||
* "expense_id": 1,
|
||||
* "quantity": 1,
|
||||
* "rate": 100,
|
||||
* "chart_of_account": "4200",
|
||||
* "description": "Shop supplies",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "invoice_services": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "invoice_id": 1,
|
||||
* "service_id": 1,
|
||||
* "rate_type": "hourly",
|
||||
* "labor_rate_id": 1,
|
||||
* "working_hours": 2,
|
||||
* "labor_hours": 2,
|
||||
* "quantity": 1,
|
||||
* "rate": 800,
|
||||
* "chart_of_account": "4300",
|
||||
* "description": "Engine service",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ],
|
||||
* "invoice_service_groups": [
|
||||
* {
|
||||
* "id": 1,
|
||||
* "invoice_id": 1,
|
||||
* "service_group_id": 1,
|
||||
* "rate_type": "flat_rate",
|
||||
* "labor_rate_id": 1,
|
||||
* "working_hours": 1,
|
||||
* "labor_hours": 1,
|
||||
* "rate": 600,
|
||||
* "chart_of_account": "4400",
|
||||
* "description": "Major service package",
|
||||
* "department_id": 1
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
@@ -29802,7 +30179,7 @@ export interface paths {
|
||||
notes?: string;
|
||||
terms_and_conditions?: string;
|
||||
status?: string;
|
||||
received_payment?: number;
|
||||
received_payment?: boolean;
|
||||
payment_mode_id?: number;
|
||||
deposit_to?: string;
|
||||
amount?: number;
|
||||
@@ -29811,6 +30188,80 @@ export interface paths {
|
||||
created_at?: string;
|
||||
/** Format: date-time */
|
||||
updated_at?: string;
|
||||
customer?: {
|
||||
id?: number;
|
||||
};
|
||||
vehicle?: {
|
||||
id?: number;
|
||||
};
|
||||
invoice_sequence?: {
|
||||
id?: number;
|
||||
title?: string;
|
||||
};
|
||||
department?: {
|
||||
id?: number;
|
||||
name?: string;
|
||||
};
|
||||
invoice_inspection_categories?: {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
inspection_category_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
invoice_parts?: {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
part_id?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
invoice_expenses?: {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
expense_id?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
invoice_services?: {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
service_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate_id?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
quantity?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
invoice_service_groups?: {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
service_group_id?: number;
|
||||
rate_type?: string;
|
||||
labor_rate_id?: number;
|
||||
working_hours?: number;
|
||||
labor_hours?: number;
|
||||
rate?: number;
|
||||
chart_of_account?: string;
|
||||
description?: string;
|
||||
department_id?: number;
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user