feat: Enhance fixed asset class management with new fields, refactor forms, and update invoice-related services.
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user