Merge branch 'feature/facturas' into development
This commit is contained in:
@@ -13,8 +13,12 @@ export interface InvoiceComplianceMx {
|
||||
invoice_id?: number;
|
||||
pedimento?: string | null;
|
||||
pedimento_code?: string | null;
|
||||
pedimento_k1?: string | null;
|
||||
remesa?: number | null;
|
||||
aduana?: string | null;
|
||||
aduana?: string | null;
|
||||
port_of_entry?: string | null;
|
||||
destination?: string | null;
|
||||
manifest_number?: string | null;
|
||||
provider_header?: string | null;
|
||||
provider_id?: string | null;
|
||||
sold_to_header?: string | null;
|
||||
@@ -24,11 +28,42 @@ export interface InvoiceComplianceMx {
|
||||
shipped_by_header?: string | null;
|
||||
shipped_by_id?: string | null;
|
||||
customs_broker_id?: string | null;
|
||||
customs_broker_us_id?: string | null;
|
||||
broker_invoice_num?: string | null;
|
||||
broker_invoice_date?: string | null;
|
||||
is_mixed?: boolean | null;
|
||||
waste_type?: string | null;
|
||||
scrap_type?: string | null;
|
||||
appendix_17?: number | null;
|
||||
is_regime_change?: string | null;
|
||||
which_exchange_rate?: string | null;
|
||||
value_method?: string | null;
|
||||
act_value?: string | null;
|
||||
is_pedimento_pending?: boolean | null;
|
||||
is_owner_of_goods?: string | null;
|
||||
generate_balances?: string | null;
|
||||
was_reviewed_by_company?: boolean | null;
|
||||
edocument?: string | null;
|
||||
code_signature?: string | null;
|
||||
electronic_signature?: string | null;
|
||||
certificate_number?: string | null;
|
||||
niu_number?: string | null;
|
||||
bill_of_lading_count?: string | null;
|
||||
addendum_vu?: string | null;
|
||||
origin_destination_cove?: string | null;
|
||||
vucem_operation_num?: string | null;
|
||||
customs_person_line?: number | null;
|
||||
contingency_mode?: boolean | null;
|
||||
enclosure?: string | null;
|
||||
guide_type_to_identify?: string | null;
|
||||
location?: string | null;
|
||||
dot_code?: string | null;
|
||||
subdivision?: string | null;
|
||||
acts_as?: string | null;
|
||||
movement_type?: string | null;
|
||||
office_document?: string | null;
|
||||
reason_export?: string | null;
|
||||
signature_key?: string | null;
|
||||
sem_id?: number | null;
|
||||
}
|
||||
|
||||
@@ -38,33 +73,83 @@ export interface InvoiceFinancials {
|
||||
currency?: string | null;
|
||||
currency_type?: string | null;
|
||||
exchange_rate?: number | null;
|
||||
exchange_rate_mm?: number | null;
|
||||
value_mn?: number | null;
|
||||
value_me?: number | null;
|
||||
value_mc?: number | null;
|
||||
customs_value_mn?: number | null;
|
||||
customs_value_me?: number | null;
|
||||
raw_material_value_mn?: number | null;
|
||||
raw_material_value_me?: number | null;
|
||||
aggregate_value_mn?: number | null;
|
||||
aggregate_value_me?: number | null;
|
||||
aggregate_value_mc?: number | null;
|
||||
mexican_value_mn?: number | null;
|
||||
mexican_value_me?: number | null;
|
||||
mexican_value_mc?: number | null;
|
||||
national_packaging_mn?: number | null;
|
||||
national_packaging_me?: number | null;
|
||||
national_packaging_mc?: number | null;
|
||||
freight?: number | null;
|
||||
insurance?: number | null;
|
||||
insurance_value?: number | null;
|
||||
packaging?: number | null;
|
||||
other_increments?: number | null;
|
||||
total_increments_mn?: number | null;
|
||||
total_increments_me?: number | null;
|
||||
iva_mn?: number | null;
|
||||
iva_factor?: number | null;
|
||||
iva_me?: number | null;
|
||||
iva_mc?: number | null;
|
||||
iva_factor?: string | null;
|
||||
tax_value_me?: number | null;
|
||||
seal_value_2500?: boolean | null;
|
||||
total_quantity?: number | null;
|
||||
gross_weight?: number | null;
|
||||
net_weight?: number | null;
|
||||
bundle_count?: number | null;
|
||||
weight_factor?: number | null;
|
||||
}
|
||||
|
||||
export interface InvoiceLogistics {
|
||||
id?: number;
|
||||
invoice_id?: number;
|
||||
carrier_id?: string | null;
|
||||
transport_id?: string | null;
|
||||
transport_us_id?: string | null;
|
||||
transport_type?: TransportType | null;
|
||||
transport_num?: string | null;
|
||||
transport_mode?: string | null;
|
||||
driver_name?: string | null;
|
||||
is_rail?: string | null;
|
||||
rail_id?: string | null;
|
||||
vehicle_num?: string | null;
|
||||
license_plate?: string | null;
|
||||
license_plate_complete?: string | null;
|
||||
trailer_num?: string | null;
|
||||
seal_number?: string | null;
|
||||
guide_number?: string | null;
|
||||
bill_number?: string | null;
|
||||
reference_number?: string | null;
|
||||
shipment_number?: string | null;
|
||||
incoterm?: string | null;
|
||||
identifier_1?: string | null;
|
||||
complement_1?: string | null;
|
||||
identifier_2?: string | null;
|
||||
complement_2?: string | null;
|
||||
weight_type?: string | null;
|
||||
container_types?: string | null;
|
||||
vehicle_data?: string | null;
|
||||
origin_location?: string | null;
|
||||
destination_location?: string | null;
|
||||
transport_itinerary?: string | null;
|
||||
destination_goods?: string | null;
|
||||
entry_exit_date?: string | null;
|
||||
delivery_date?: string | null;
|
||||
delivered_status?: string | null;
|
||||
received_by?: string | null;
|
||||
payment_date?: string | null;
|
||||
payment_receipt_num?: string | null;
|
||||
is_ctm_process?: string | null;
|
||||
}
|
||||
|
||||
export interface InvoiceSalesDetails {
|
||||
@@ -91,25 +176,47 @@ export interface Invoice {
|
||||
id: number;
|
||||
tenant_id: number;
|
||||
company_id: number;
|
||||
system?: string | null;
|
||||
operation_type?: OperationType | null;
|
||||
invoice_type?: string | null;
|
||||
invoice_number?: string | null;
|
||||
project_number?: string | null;
|
||||
purchase_order?: string | null;
|
||||
related_doc_id?: number | null;
|
||||
alternate_invoice?: string | null;
|
||||
invoice_ref?: string | null;
|
||||
proforma_number?: string | null;
|
||||
invoice_date?: string | null;
|
||||
capture_date: string;
|
||||
emission_date?: string | null;
|
||||
is_updated?: boolean | null;
|
||||
updated_date?: string | null;
|
||||
who_updated?: string | null;
|
||||
capture_user?: string | null;
|
||||
traffic_light_status?: string | null;
|
||||
process_log?: string | null;
|
||||
status_rec?: number | null;
|
||||
status_rep?: string | null;
|
||||
observation_es?: string | null;
|
||||
observation_en?: string | null;
|
||||
comments_status?: string | null;
|
||||
vu_observations?: string | null;
|
||||
cfdi_uuid?: string | null;
|
||||
path_pdf?: string | null;
|
||||
path_xml?: string | null;
|
||||
subcompany?: string | null;
|
||||
party_count?: number | null;
|
||||
generate_id?: string | null;
|
||||
generate_desc_parties?: string | null;
|
||||
apply_manual_discount?: string | null;
|
||||
is_bulk?: boolean | null;
|
||||
download_substance?: boolean | null;
|
||||
download_class?: boolean | null;
|
||||
download_def?: boolean | null;
|
||||
payment_terms?: string | null;
|
||||
handling_fees?: number | null;
|
||||
option_iv18?: string | null;
|
||||
enajenation_goods?: boolean | null;
|
||||
compliance_mx?: InvoiceComplianceMx | null;
|
||||
financials?: InvoiceFinancials | null;
|
||||
logistics?: InvoiceLogistics[];
|
||||
@@ -124,22 +231,47 @@ export interface InvoiceListResponse {
|
||||
page_size: number;
|
||||
}
|
||||
|
||||
export interface InvoiceData {
|
||||
export interface CreateInvoiceData {
|
||||
system?: string | null;
|
||||
operation_type?: OperationType | null;
|
||||
invoice_type?: string | null;
|
||||
invoice_number?: string | null;
|
||||
project_number?: string | null;
|
||||
purchase_order?: string | null;
|
||||
related_doc_id?: number | null;
|
||||
alternate_invoice?: string | null;
|
||||
invoice_ref?: string | null;
|
||||
proforma_number?: string | null;
|
||||
invoice_date?: string | null;
|
||||
emission_date?: string | null;
|
||||
is_updated?: boolean | null;
|
||||
updated_date?: string | null;
|
||||
who_updated?: string | null;
|
||||
capture_user?: string | null;
|
||||
traffic_light_status?: string | null;
|
||||
process_log?: string | null;
|
||||
status_rec?: number | null;
|
||||
status_rep?: string | null;
|
||||
observation_es?: string | null;
|
||||
observation_en?: string | null;
|
||||
comments_status?: string | null;
|
||||
vu_observations?: string | null;
|
||||
cfdi_uuid?: string | null;
|
||||
path_pdf?: string | null;
|
||||
path_xml?: string | null;
|
||||
subcompany?: string | null;
|
||||
party_count?: number | null;
|
||||
generate_id?: string | null;
|
||||
generate_desc_parties?: string | null;
|
||||
apply_manual_discount?: string | null;
|
||||
is_bulk?: boolean | null;
|
||||
download_substance?: boolean | null;
|
||||
download_class?: boolean | null;
|
||||
download_def?: boolean | null;
|
||||
payment_terms?: string | null;
|
||||
handling_fees?: number | null;
|
||||
option_iv18?: string | null;
|
||||
enajenation_goods?: boolean | null;
|
||||
compliance_mx?: Omit<InvoiceComplianceMx, 'invoice_id'> | null;
|
||||
financials?: Omit<InvoiceFinancials, 'id' | 'invoice_id'> | null;
|
||||
logistics?: Omit<InvoiceLogistics, 'id' | 'invoice_id'>[] | null;
|
||||
|
||||
Reference in New Issue
Block a user