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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user