98 lines
3.1 KiB
TypeScript
98 lines
3.1 KiB
TypeScript
|
|
import type { LucideIcon } from "lucide-react";
|
||
|
|
import {
|
||
|
|
BanknoteIcon,
|
||
|
|
BarChart3Icon,
|
||
|
|
BoxesIcon,
|
||
|
|
Building2Icon,
|
||
|
|
ClipboardListIcon,
|
||
|
|
CoinsIcon,
|
||
|
|
CreditCardIcon,
|
||
|
|
FileTextIcon,
|
||
|
|
LandmarkIcon,
|
||
|
|
PackageIcon,
|
||
|
|
PercentIcon,
|
||
|
|
ReceiptIcon,
|
||
|
|
RefreshCcwIcon,
|
||
|
|
ShoppingCartIcon,
|
||
|
|
SlidersHorizontalIcon,
|
||
|
|
TruckIcon,
|
||
|
|
UserCogIcon,
|
||
|
|
UsersIcon,
|
||
|
|
WarehouseIcon,
|
||
|
|
} from "lucide-react";
|
||
|
|
|
||
|
|
export interface AppSidebarNavItem {
|
||
|
|
title: string;
|
||
|
|
href: string;
|
||
|
|
icon: LucideIcon;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type AppSidebarSectionAccent = "blue" | "green" | "amber" | "violet";
|
||
|
|
|
||
|
|
export interface AppSidebarNavSection {
|
||
|
|
title: string;
|
||
|
|
accent: AppSidebarSectionAccent;
|
||
|
|
items: AppSidebarNavItem[];
|
||
|
|
}
|
||
|
|
|
||
|
|
export const appSidebarNavSections: AppSidebarNavSection[] = [
|
||
|
|
{
|
||
|
|
title: "Ventas",
|
||
|
|
accent: "blue",
|
||
|
|
items: [
|
||
|
|
{ title: "Proformas", href: "/proformas", icon: FileTextIcon },
|
||
|
|
{ title: "Pedidos de venta", href: "/sales-orders", icon: ShoppingCartIcon },
|
||
|
|
{ title: "Clientes", href: "/customers", icon: UsersIcon },
|
||
|
|
{ title: "Facturación", href: "/customer-invoices", icon: ReceiptIcon },
|
||
|
|
{ title: "Cobros", href: "/collections", icon: CreditCardIcon },
|
||
|
|
{ title: "Devoluciones", href: "/sales-returns", icon: RefreshCcwIcon },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: "Compras",
|
||
|
|
accent: "green",
|
||
|
|
items: [
|
||
|
|
{ title: "Pedidos de compra", href: "/purchase-orders", icon: ClipboardListIcon },
|
||
|
|
{ title: "Proveedores", href: "/suppliers", icon: TruckIcon },
|
||
|
|
{ title: "Facturas de compra", href: "/supplier-invoices", icon: ReceiptIcon },
|
||
|
|
{ title: "Pagos", href: "/payments", icon: BanknoteIcon },
|
||
|
|
{ title: "Devoluciones", href: "/purchase-returns", icon: RefreshCcwIcon },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: "Inventario",
|
||
|
|
accent: "amber",
|
||
|
|
items: [
|
||
|
|
{ title: "Productos", href: "/products", icon: PackageIcon },
|
||
|
|
{ title: "Almacenes", href: "/warehouses", icon: WarehouseIcon },
|
||
|
|
{ title: "Movimientos", href: "/stock-movements", icon: BoxesIcon },
|
||
|
|
{ title: "Ajustes de stock", href: "/stock-adjustments", icon: SlidersHorizontalIcon },
|
||
|
|
{ title: "Categorías", href: "/product-categories", icon: ClipboardListIcon },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: "Contabilidad",
|
||
|
|
accent: "violet",
|
||
|
|
items: [
|
||
|
|
{ title: "Plan contable", href: "/accounting/chart", icon: LandmarkIcon },
|
||
|
|
{ title: "Asientos contables", href: "/accounting/entries", icon: FileTextIcon },
|
||
|
|
{ title: "Diario", href: "/accounting/journal", icon: ClipboardListIcon },
|
||
|
|
{ title: "Informes financieros", href: "/accounting/reports", icon: BarChart3Icon },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export interface AppSidebarSettingsItem {
|
||
|
|
title: string;
|
||
|
|
href: string;
|
||
|
|
icon: LucideIcon;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const appSidebarSettingsItems: AppSidebarSettingsItem[] = [
|
||
|
|
{ title: "Usuarios y roles", href: "/settings/users", icon: UserCogIcon },
|
||
|
|
{ title: "Empresas", href: "/settings/companies", icon: Building2Icon },
|
||
|
|
{ title: "Impuestos", href: "/settings/taxes", icon: PercentIcon },
|
||
|
|
{ title: "Monedas", href: "/settings/currencies", icon: CoinsIcon },
|
||
|
|
{ title: "Parámetros", href: "/settings", icon: SlidersHorizontalIcon },
|
||
|
|
];
|