Merge pull request 'feature/parametros-datos-faltantes' (#467) from feature/parametros-datos-faltantes into development
Reviewed-on: ADUANASOFT/anexo76#467
This commit is contained in:
@@ -150,6 +150,8 @@
|
|||||||
fecha_pedimento_al: '',
|
fecha_pedimento_al: '',
|
||||||
clave_pedimento: '',
|
clave_pedimento: '',
|
||||||
regimen_pedimento: '',
|
regimen_pedimento: '',
|
||||||
|
invoice_prefix: '',
|
||||||
|
invoice_initial_number: '',
|
||||||
iva_factor: invoice?.financials?.iva_factor || '',
|
iva_factor: invoice?.financials?.iva_factor || '',
|
||||||
alternate_invoice: invoice?.alternate_invoice || ''
|
alternate_invoice: invoice?.alternate_invoice || ''
|
||||||
};
|
};
|
||||||
@@ -327,6 +329,56 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<!-- Parámetros legados: NÚMERO FACTURA (prefijo + consecutivo) y datos derivados del pedimento.
|
||||||
|
Solo visibles en el formulario de parámetros/configuración. -->
|
||||||
|
{#if isSettings}
|
||||||
|
<div class="min-w-[100px] flex-1 space-y-1">
|
||||||
|
<Label for="invoice_prefix" class="text-xs">Prefijo</Label>
|
||||||
|
<Input id="invoice_prefix" bind:value={formData.invoice_prefix} class="h-8 text-sm" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="min-w-[100px] flex-1 space-y-1">
|
||||||
|
<Label for="invoice_initial_number" class="text-xs">Número Inicial</Label>
|
||||||
|
<Input
|
||||||
|
id="invoice_initial_number"
|
||||||
|
bind:value={formData.invoice_initial_number}
|
||||||
|
class="h-8 text-sm"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{#if invoiceType !== 'MEX'}
|
||||||
|
<div class="min-w-[90px] flex-1 space-y-1">
|
||||||
|
<Label for="clave_pedimento" class="text-xs">Clave</Label>
|
||||||
|
<Input id="clave_pedimento" bind:value={formData.clave_pedimento} class="h-8 text-sm" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="min-w-[90px] flex-1 space-y-1">
|
||||||
|
<Label for="regimen_pedimento" class="text-xs">Régimen</Label>
|
||||||
|
<Input id="regimen_pedimento" bind:value={formData.regimen_pedimento} class="h-8 text-sm" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="min-w-[140px] flex-[1.5] space-y-1">
|
||||||
|
<Label for="fecha_pedimento_del" class="text-xs">Rango de Fechas (Del)</Label>
|
||||||
|
<Input
|
||||||
|
id="fecha_pedimento_del"
|
||||||
|
type="date"
|
||||||
|
bind:value={formData.fecha_pedimento_del}
|
||||||
|
class="h-8 text-sm"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="min-w-[140px] flex-[1.5] space-y-1">
|
||||||
|
<Label for="fecha_pedimento_al" class="text-xs">Rango de Fechas (al)</Label>
|
||||||
|
<Input
|
||||||
|
id="fecha_pedimento_al"
|
||||||
|
type="date"
|
||||||
|
bind:value={formData.fecha_pedimento_al}
|
||||||
|
class="h-8 text-sm"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if !isSettings}
|
{#if !isSettings}
|
||||||
<div class="min-w-[140px] flex-[2] space-y-1">
|
<div class="min-w-[140px] flex-[2] space-y-1">
|
||||||
<Label for="invoice_number" class="text-xs"
|
<Label for="invoice_number" class="text-xs"
|
||||||
|
|||||||
@@ -181,6 +181,8 @@
|
|||||||
fecha_pedimento_al: '',
|
fecha_pedimento_al: '',
|
||||||
clave_pedimento: '',
|
clave_pedimento: '',
|
||||||
regimen_pedimento: '',
|
regimen_pedimento: '',
|
||||||
|
invoice_prefix: '',
|
||||||
|
invoice_initial_number: '',
|
||||||
...(systemData.InvoiceTopFieldsFormData || {})
|
...(systemData.InvoiceTopFieldsFormData || {})
|
||||||
};
|
};
|
||||||
generalFormData = {
|
generalFormData = {
|
||||||
@@ -307,7 +309,9 @@
|
|||||||
fecha_pedimento_del: '',
|
fecha_pedimento_del: '',
|
||||||
fecha_pedimento_al: '',
|
fecha_pedimento_al: '',
|
||||||
clave_pedimento: '',
|
clave_pedimento: '',
|
||||||
regimen_pedimento: ''
|
regimen_pedimento: '',
|
||||||
|
invoice_prefix: '',
|
||||||
|
invoice_initial_number: ''
|
||||||
};
|
};
|
||||||
generalFormData = {
|
generalFormData = {
|
||||||
provider_header: 'proveedor',
|
provider_header: 'proveedor',
|
||||||
|
|||||||
Reference in New Issue
Block a user