feat: add Pedimento relationship and update invoice handling for improved data management

This commit is contained in:
2026-01-11 17:49:13 -06:00
parent 20aff5ff7b
commit 8bf0ac8969
5 changed files with 205 additions and 179 deletions

View File

@@ -15,6 +15,14 @@ export interface InvoiceComplianceMx {
pedimento_r1?: number | null;
pedimento_k1?: number | null;
remesa?: number | null;
// Pedimento relationship data (when joined)
pedimento?: {
pedimento_number?: string;
pedimento_code?: string;
customs_office?: string;
license?: string;
year?: string;
} | null;
aduana?: string | null;
port_of_entry?: string | null;
destination?: string | null;
@@ -282,6 +290,7 @@ export interface CreateInvoiceData {
}
export interface UpdateInvoiceData {
id: number; // Required by backend
operation_type?: OperationType | null;
invoice_type?: string | null;
document_type?: string | null;