feat: Implement general catalogs for INPC, Legends, Multi-Currency Types, Packages, Ports, Prevalidators, Signatures, Unit Conversions, and Units of Measure

- Added INPC management page with search functionality.
- Created Legends management page with filters for code and description.
- Implemented Multi-Currency Types management with search capabilities.
- Developed Packages management page with filtering options.
- Introduced Ports management page with authentication and data fetching.
- Added Prevalidators management page with search filters.
- Implemented Signatures management page with search by name and position.
- Created Unit Conversions management page for conversion factors.
- Developed Units of Measure management pages for ACE, American, and OMA with data tables and create/edit dialogs.
This commit is contained in:
2025-12-08 14:17:47 -06:00
parent f1bd2d63e8
commit 6acbd48e9e
152 changed files with 7334 additions and 2747 deletions

View File

@@ -39,6 +39,11 @@ class Class(Base, TenantScopedMixin, TimestampMixin):
["public.material_types.key"],
name="fk_classes_material_type",
),
ForeignKeyConstraint(
["unit_of_measure", "tenant_id", "company_id"],
["a76.units_of_measure.code", "a76.units_of_measure.tenant_id",
"a76.units_of_measure.company_id"],
),
UniqueConstraint(
"tenant_id",
"company_id",
@@ -63,10 +68,10 @@ class Class(Base, TenantScopedMixin, TimestampMixin):
# Material and measurement
material_key: Mapped[Optional[str]] = mapped_column(
String(10), ForeignKey("public.material_types.key")
String(10)
) # CLAVEMAT - homologated from TIPOMAT/TIPOMATEQUIPO
unit_of_measure: Mapped[Optional[str]] = mapped_column(
String(5), ForeignKey("a76.units_of_measure.code")
String(5)
) # UNIMED - homologated from UNIMEDIDA
# Tariff fractions