Partidas por tipo de factura en importacion

This commit is contained in:
2026-03-13 17:38:30 -05:00
parent dfa44aaff7
commit dada17b54c
15 changed files with 1015 additions and 56 deletions

View File

@@ -31,6 +31,18 @@ export interface InvoiceItemVisibility {
showContinuationConsiderA31: boolean;
/** Continuación tab: Extra Description in Spanish. */
showContinuationExtraDescription: boolean;
/** Etiquetado tab: Quantity, Valuation, Assets Table. */
showLabelingEnhanced: boolean;
/** Identificadores tab: Special Assets table for MEX. */
showMexicanIdEnhanced: boolean;
/** Etiquetado tab visibility. */
showLabelingTab: boolean;
/** Etiquetado tab: Usage Reason field. */
showUsageReason: boolean;
/** Etiquetado tab: Standard fields (Label No, Type, Observations). */
showLabelingStandard: boolean;
/** Etiquetado tab: Quantity field. */
showLabelingQuantity: boolean;
}
const defaultVisibility: InvoiceItemVisibility = {
@@ -50,7 +62,13 @@ const defaultVisibility: InvoiceItemVisibility = {
showContinuationOwnOmitAnnex: true,
showContinuationLotEntry: true,
showContinuationConsiderA31: true,
showContinuationExtraDescription: true
showContinuationExtraDescription: true,
showLabelingEnhanced: false,
showMexicanIdEnhanced: false,
showLabelingTab: true,
showUsageReason: false,
showLabelingStandard: true,
showLabelingQuantity: false
};
function normalizeInvoiceType(invoiceType?: string | null): string {
@@ -126,14 +144,21 @@ export function getVisibility(
return {
...defaultVisibility,
showCrTrackingHeader: false,
showFdaFcc: false
showFdaFcc: false,
showLabelingEnhanced: true,
showLabelingQuantity: true
};
case 'CR':
return {
...defaultVisibility,
showEighthRule: false,
showValuationFields: true
showIdentifiersTab: true,
showValuationFields: true,
showUsageReason: true,
showLabelingEnhanced: true,
showLabelingQuantity: false,
showLabelingStandard: false
};
case 'REP':
@@ -165,7 +190,9 @@ export function getVisibility(
showEighthRule: false,
showFdaFcc: false,
showCertificateOfOrigin: false,
showIdentifiersTab: false,
showIdentifiersTab: true,
showMexicanIdEnhanced: true,
showLabelingTab: false,
showContinuationIgi: false,
showContinuationLocation: true,
showContinuationMilitary: false,