diff --git a/modules/customer-invoices/src/web/proformas/change-status/controllers/use-change-status-dialog-controller.ts b/modules/customer-invoices/src/web/proformas/change-status/controllers/use-change-status-dialog-controller.ts index c9a9902a..5befb45a 100644 --- a/modules/customer-invoices/src/web/proformas/change-status/controllers/use-change-status-dialog-controller.ts +++ b/modules/customer-invoices/src/web/proformas/change-status/controllers/use-change-status-dialog-controller.ts @@ -44,7 +44,7 @@ export function useChangeStatusDialogController() { setState((s) => ({ ...s, loading: true })); for (const proforma of state.proformas) { - await changeStatus(proforma.id.toString(), state.targetStatus, { + await changeStatus(proforma.id, state.targetStatus, { onError: (err: unknown) => { const error = err as Error; showErrorToast("Error cambiando estado", error.message);