- Add entities for tax regime forms and error view models. - Create schemas for tax regime forms using Zod for validation. - Implement UI components for creating, deleting, and managing tax regimes. - Develop hooks for CRUD operations on tax regimes, including create, update, delete, and enable/disable functionalities. - Add error handling and loading states for better user experience. - Create utility functions for building form data and handling API responses. - Implement skeleton and empty state components for improved UI feedback.
37 lines
920 B
TypeScript
37 lines
920 B
TypeScript
import type { IModuleClient } from "@erp/core/client";
|
|
|
|
import { CatalogsRoutes } from "./catalogs-routes";
|
|
import { ensureModuleTranslations } from "./i18n";
|
|
|
|
export const MODULE_NAME = "Catalogs";
|
|
const MODULE_VERSION = "1.0.0";
|
|
|
|
ensureModuleTranslations();
|
|
|
|
export const CatalogsModuleManifest: IModuleClient = {
|
|
name: MODULE_NAME,
|
|
version: MODULE_VERSION,
|
|
dependencies: ["auth", "Core"],
|
|
protected: true,
|
|
layout: "app-sidebar",
|
|
settings: {
|
|
entries: [
|
|
{
|
|
id: "payment-methods",
|
|
sectionId: "general",
|
|
labelKey: "settings.paymentMethods.title",
|
|
path: "/settings/general/payment-methods",
|
|
},
|
|
{
|
|
id: "tax-regimes",
|
|
sectionId: "general",
|
|
labelKey: "settings.taxRegimes.title",
|
|
path: "/settings/general/tax-regimes",
|
|
},
|
|
],
|
|
},
|
|
routes: (params) => CatalogsRoutes(params),
|
|
};
|
|
|
|
export default CatalogsModuleManifest;
|