feat: add fixed asset classes management page and embed functionality

- Implemented a new page for managing fixed asset classes with full CRUD functionality.
- Added filtering options for searching classes by code, description, type, and fraction.
- Integrated dialogs for inserting, editing, and deleting classes with validation.
- Enhanced error handling and user feedback with toast notifications.
- Created an embedded iframe for the fixed asset classes page in the merchandise section.
This commit is contained in:
Galindo97
2026-01-08 16:33:43 -06:00
parent 7c9c295c5c
commit ea0e570678
18 changed files with 3014 additions and 48 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -205,10 +205,10 @@
</div>
<Dialog.Footer>
<Button variant="outline" on:click={() => (open = false)} disabled={loading}>
<Button variant="outline" onclick={() => (open = false)} disabled={loading}>
Cancelar
</Button>
<Button on:click={handleSubmit} disabled={loading}>
<Button onclick={handleSubmit} disabled={loading}>
{#if loading}
<Loader2 class="mr-2 h-4 w-4 animate-spin" />
Guardando

View File

@@ -159,6 +159,10 @@ export function getSidebarData(): SidebarData {
title: m["sidebar.general_catalogs.company_information"](),
url: "/dashboard/general_catalogs/company_information",
},
{
title: "Catálogo de Clases de Activo Fijo",
url: "/dashboard/catalogs/fixed-asset-classes",
},
{
title: m["sidebar.general_catalogs.packages"](),
url: "/dashboard/general_catalogs/packages",
@@ -372,8 +376,8 @@ export function getSidebarData(): SidebarData {
icon: Package,
items: [
{
title: "Clase de Activo Fijo",
url: "/dashboard/merchandise/fixed_asset_classes",
title: "Catálogo de Clases de Activo Fijo",
url: "/dashboard/catalogs/fixed-asset-classes",
},
],
},