Importacion de reparacion

This commit is contained in:
2026-03-13 17:56:15 -05:00
parent dada17b54c
commit 63cbdf2124
2 changed files with 31 additions and 15 deletions

View File

@@ -111,16 +111,18 @@
/>
</div>
{/if}
<div class="space-y-1">
<Label for="valor_det" class="text-xs">Valor Det:</Label>
<Input
id="valor_det"
type="number"
step="0.00000001"
bind:value={lineItem.valuation_determined_value}
class="h-7 text-xs"
/>
</div>
{#if visibility.showLabelingValuationValue}
<div class="space-y-1">
<Label for="valor_det" class="text-xs">Valor Det:</Label>
<Input
id="valor_det"
type="number"
step="0.00000001"
bind:value={lineItem.valuation_determined_value}
class="h-7 text-xs"
/>
</div>
{/if}
{/if}
</div>
@@ -159,7 +161,7 @@
{/if}
{#if visibility.showLabelingStandard}
{#if visibility.showLabelingObservations}
<div class="space-y-1">
<Label for="observaciones_etiqueta" class="text-xs">Observations:</Label>
<textarea

View File

@@ -43,6 +43,10 @@ export interface InvoiceItemVisibility {
showLabelingStandard: boolean;
/** Etiquetado tab: Quantity field. */
showLabelingQuantity: boolean;
/** Etiquetado tab: Observations field. */
showLabelingObservations: boolean;
/** Etiquetado tab: Valuation field (Valor Det). */
showLabelingValuationValue: boolean;
}
const defaultVisibility: InvoiceItemVisibility = {
@@ -68,7 +72,9 @@ const defaultVisibility: InvoiceItemVisibility = {
showLabelingTab: true,
showUsageReason: false,
showLabelingStandard: true,
showLabelingQuantity: false
showLabelingQuantity: false,
showLabelingObservations: true,
showLabelingValuationValue: false
};
function normalizeInvoiceType(invoiceType?: string | null): string {
@@ -146,7 +152,9 @@ export function getVisibility(
showCrTrackingHeader: false,
showFdaFcc: false,
showLabelingEnhanced: true,
showLabelingQuantity: true
showLabelingQuantity: true,
showLabelingObservations: true,
showLabelingValuationValue: true
};
case 'CR':
@@ -158,7 +166,8 @@ export function getVisibility(
showUsageReason: true,
showLabelingEnhanced: true,
showLabelingQuantity: false,
showLabelingStandard: false
showLabelingStandard: false,
showLabelingObservations: false
};
case 'REP':
@@ -179,7 +188,12 @@ export function getVisibility(
showContinuationOwnOmitAnnex: false,
showContinuationLotEntry: false,
showContinuationConsiderA31: false,
showContinuationExtraDescription: true
showContinuationExtraDescription: true,
showLabelingEnhanced: true,
showLabelingQuantity: true,
showLabelingStandard: true,
showLabelingObservations: false,
showLabelingValuationValue: false
};
case 'MEX':