feature/quitar-label-tc-pedimentos
This commit is contained in:
@@ -621,23 +621,25 @@
|
||||
<!-- Tipo de Cambio -->
|
||||
<div class="space-y-2">
|
||||
<Label for="exchange_rate">Tipo de Cambio</Label>
|
||||
<Input
|
||||
id="exchange_rate"
|
||||
type="text"
|
||||
value={formData.exchange_rate ? Number(formData.exchange_rate).toFixed(6) : ''}
|
||||
placeholder={`Se obtiene automáticamente de la ${getEffectiveDateLabel()}`}
|
||||
readonly
|
||||
disabled
|
||||
class="cursor-not-allowed bg-muted"
|
||||
/>
|
||||
<p class="text-xs text-muted-foreground">
|
||||
Tipo de fecha para TC: <span class="font-bold">FECHA {getEffectiveDateLabel().toUpperCase()}</span>
|
||||
{#if formData.pedimento_type === 'consolidated' && getEffectiveExchangeDate() > getCurrentLocalDate()}
|
||||
<span class="ml-1 block font-medium text-amber-600 dark:text-amber-400">
|
||||
(Opcional por fecha futura en consolidado)
|
||||
</span>
|
||||
{/if}
|
||||
</p>
|
||||
<div class="flex items-center gap-2">
|
||||
<Input
|
||||
id="exchange_rate"
|
||||
type="text"
|
||||
value={formData.exchange_rate ? Number(formData.exchange_rate).toFixed(6) : ''}
|
||||
placeholder={`Se obtiene automáticamente de la ${getEffectiveDateLabel()}`}
|
||||
readonly
|
||||
disabled
|
||||
class="flex-1 cursor-not-allowed bg-muted"
|
||||
/>
|
||||
<p class="whitespace-nowrap text-xs text-muted-foreground">
|
||||
<span class="font-bold">FECHA {getEffectiveDateLabel().toUpperCase()}</span>
|
||||
</p>
|
||||
</div>
|
||||
{#if formData.pedimento_type === 'consolidated' && getEffectiveExchangeDate() > getCurrentLocalDate()}
|
||||
<p class="text-right text-xs font-medium text-amber-600 dark:text-amber-400">
|
||||
(Opcional por fecha futura en consolidado)
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user