Enhance invoice processing to support export and import differentiation

- Updated the invoice processing route to automatically detect and handle invoice types based on the operation_type.
- Introduced error handling for non-existent invoices, returning a 404 status when an invoice is not found.
- Added a new field 'serie_row' in the Serie model to accommodate additional data for export scenarios.
This commit is contained in:
2026-03-17 22:43:53 -05:00
parent 5d9f4041e4
commit 196525c684
31 changed files with 3732 additions and 6 deletions

View File

@@ -19,6 +19,6 @@ class Serie(Base, TenantScopedMixin, TimestampMixin):
brand: Mapped[Optional[str]] = mapped_column(String(50)) # MARCAEXPO
number_id: Mapped[Optional[str]] = mapped_column(String(25)) # NUMIDEXPO
discharge: Mapped[Optional[bool]] = mapped_column(Boolean) # MARCA
serie_row: Mapped[Optional[int]] = mapped_column(Integer) # LINEASERIEIMPO <-- IN CASE OF EXPO