(
Moneda
{cfdi.moneda || 'MXN'}
- {cfdi.typeCambio && cfdi.typeCambio !== 1 && (
-
TC: {cfdi.typeCambio}
+ {cfdi.tipoCambio && cfdi.tipoCambio !== 1 && (
+
TC: {cfdi.tipoCambio}
)}
diff --git a/apps/web/components/cfdi/cfdi-viewer-modal.tsx b/apps/web/components/cfdi/cfdi-viewer-modal.tsx
index ed892ca..a729020 100644
--- a/apps/web/components/cfdi/cfdi-viewer-modal.tsx
+++ b/apps/web/components/cfdi/cfdi-viewer-modal.tsx
@@ -121,7 +121,7 @@ export function CfdiViewerModal({ cfdi, open, onClose }: CfdiViewerModalProps) {
let xml = xmlContent;
if (!xml) {
- xml = await getCfdiXml(cfdi.id);
+ xml = await getCfdiXml(String(cfdi.id));
}
if (!xml) {
diff --git a/apps/web/components/layouts/sidebar-compact.tsx b/apps/web/components/layouts/sidebar-compact.tsx
index 18f9dc0..6941ab8 100644
--- a/apps/web/components/layouts/sidebar-compact.tsx
+++ b/apps/web/components/layouts/sidebar-compact.tsx
@@ -22,9 +22,9 @@ import { useAuthStore } from '@/stores/auth-store';
import { logout } from '@/lib/api/auth';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
-import { hasFeature, isGlobalAdminRfc, type Plan } from '@horux/shared';
+import { hasFeature, isGlobalAdminRfc, type Plan, type Role } from '@horux/shared';
-const navigation = [
+const navigation: { name: string; href: string; icon: React.ElementType; feature?: string; roles?: Role[] }[] = [
{ name: 'Dashboard', href: '/dashboard', icon: LayoutDashboard, roles: ['owner', 'contador'] },
{ name: 'CFDI', href: '/cfdi', icon: FileText },
{ name: 'Impuestos', href: '/impuestos', icon: Calculator },
@@ -35,7 +35,7 @@ const navigation = [
{ name: 'Facturación', href: '/facturacion', icon: Send, roles: ['owner', 'contador'] },
{ name: 'Usuarios', href: '/usuarios', icon: Users, roles: ['owner'] },
{ name: 'Configuración', href: '/configuracion', icon: Settings, roles: ['owner'] },
-] as const;
+];
const adminNavigation = [
{ name: 'Clientes', href: '/clientes', icon: Building2 },
diff --git a/apps/web/components/layouts/sidebar-floating.tsx b/apps/web/components/layouts/sidebar-floating.tsx
index 6e10d62..45223e7 100644
--- a/apps/web/components/layouts/sidebar-floating.tsx
+++ b/apps/web/components/layouts/sidebar-floating.tsx
@@ -21,9 +21,9 @@ import {
import { useAuthStore } from '@/stores/auth-store';
import { logout } from '@/lib/api/auth';
import { useRouter } from 'next/navigation';
-import { hasFeature, isGlobalAdminRfc, type Plan } from '@horux/shared';
+import { hasFeature, isGlobalAdminRfc, type Plan, type Role } from '@horux/shared';
-const navigation = [
+const navigation: { name: string; href: string; icon: React.ElementType; feature?: string; roles?: Role[] }[] = [
{ name: 'Dashboard', href: '/dashboard', icon: LayoutDashboard, roles: ['owner', 'contador'] },
{ name: 'CFDI', href: '/cfdi', icon: FileText },
{ name: 'Impuestos', href: '/impuestos', icon: Calculator },
@@ -34,7 +34,7 @@ const navigation = [
{ name: 'Facturación', href: '/facturacion', icon: Send, roles: ['owner', 'contador'] },
{ name: 'Usuarios', href: '/usuarios', icon: Users, roles: ['owner'] },
{ name: 'Config', href: '/configuracion', icon: Settings, roles: ['owner'] },
-] as const;
+];
const adminNavigation = [
{ name: 'Clientes', href: '/clientes', icon: Building2 },
diff --git a/apps/web/components/layouts/topnav.tsx b/apps/web/components/layouts/topnav.tsx
index d5668aa..58abb54 100644
--- a/apps/web/components/layouts/topnav.tsx
+++ b/apps/web/components/layouts/topnav.tsx
@@ -22,9 +22,9 @@ import { useAuthStore } from '@/stores/auth-store';
import { logout } from '@/lib/api/auth';
import { useRouter } from 'next/navigation';
import { useState } from 'react';
-import { hasFeature, isGlobalAdminRfc, type Plan } from '@horux/shared';
+import { hasFeature, isGlobalAdminRfc, type Plan, type Role } from '@horux/shared';
-const navigation = [
+const navigation: { name: string; href: string; icon: React.ElementType; feature?: string; roles?: Role[] }[] = [
{ name: 'Dashboard', href: '/dashboard', icon: LayoutDashboard, roles: ['owner', 'contador'] },
{ name: 'CFDI', href: '/cfdi', icon: FileText },
{ name: 'Impuestos', href: '/impuestos', icon: Calculator },
@@ -35,7 +35,7 @@ const navigation = [
{ name: 'Facturación', href: '/facturacion', icon: Send, roles: ['owner', 'contador'] },
{ name: 'Usuarios', href: '/usuarios', icon: Users, roles: ['owner'] },
{ name: 'Config', href: '/configuracion', icon: Settings, roles: ['owner'] },
-] as const;
+];
const adminNavigation = [
{ name: 'Clientes', href: '/clientes', icon: Building2 },