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:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user