feat: Enhance fixed asset class management with new fields, refactor forms, and update invoice-related services.

This commit is contained in:
Galindo97
2026-02-24 08:17:38 -06:00
parent f9f6a17c4a
commit 3898d3a1e0
25 changed files with 910 additions and 769 deletions

View File

@@ -98,7 +98,7 @@ export const faClassesApi = {
* Actualizar una clase de activo fijo existente
*/
update: (id: number, data: FAClassUpdate, company_id: number): Promise<ApiResponse<FAClass>> => {
return api.put(`/v1/a24/fa/classes/${id}?company_id=${company_id}`, data);
return api.put(`/v1/a24/fa/classes/${id}/?company_id=${company_id}`, data);
},
/**

View File

@@ -17,6 +17,7 @@ export interface A76Class {
sub_key: string;
physical_review: number;
iva_exempt_fraction: string;
eccn_code?: string | null;
is_active?: boolean; // Agregado para el switch del formulario
created_at: string;
updated_at: string;
@@ -35,6 +36,7 @@ export interface A76ClassCreate {
sub_key?: string | null;
physical_review?: number | null;
iva_exempt_fraction?: string | null;
eccn_code?: string | null;
is_active?: boolean;
}