|
|
@@ -39,6 +39,7 @@ export function ConfiguracionTributariaManager() {
|
|
|
estab: '001',
|
|
|
ptoEmi: '001',
|
|
|
secuencial: '000000001',
|
|
|
+ obligadoContabilidad: 'NO',
|
|
|
activo: true,
|
|
|
})
|
|
|
|
|
|
@@ -53,6 +54,7 @@ export function ConfiguracionTributariaManager() {
|
|
|
estab: '001',
|
|
|
ptoEmi: '001',
|
|
|
secuencial: '000000001',
|
|
|
+ obligadoContabilidad: 'NO',
|
|
|
activo: true,
|
|
|
})
|
|
|
}
|
|
|
@@ -132,6 +134,7 @@ export function ConfiguracionTributariaManager() {
|
|
|
estab: config.estab,
|
|
|
ptoEmi: config.ptoEmi,
|
|
|
secuencial: config.secuencial,
|
|
|
+ obligadoContabilidad: config.obligadoContabilidad || 'NO',
|
|
|
activo: config.activo,
|
|
|
})
|
|
|
}
|
|
|
@@ -281,7 +284,11 @@ export function ConfiguracionTributariaManager() {
|
|
|
<Label className="mt-2 text-muted-foreground">Secuencial</Label>
|
|
|
<p>{config.secuencial}</p>
|
|
|
</div>
|
|
|
- <div className="col-span-2 md:col-span-4">
|
|
|
+ <div>
|
|
|
+ <Label className="mt-2 text-muted-foreground">Obligado Contabilidad</Label>
|
|
|
+ <p>{config.obligadoContabilidad || 'NO'}</p>
|
|
|
+ </div>
|
|
|
+ <div className="col-span-2 md:col-span-3">
|
|
|
<Label className="mt-2 text-muted-foreground">Dirección Matriz</Label>
|
|
|
<p>{config.dirMatriz}</p>
|
|
|
</div>
|
|
|
@@ -449,7 +456,7 @@ function ConfiguracionForm({ formData, setFormData, onSave, onCancel, isEdit = f
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
- <div className="space-y-2 md:col-span-2">
|
|
|
+ <div className="space-y-2">
|
|
|
<Label htmlFor="dirMatriz">Dirección Matriz *</Label>
|
|
|
<Input
|
|
|
id="dirMatriz"
|
|
|
@@ -458,7 +465,23 @@ function ConfiguracionForm({ formData, setFormData, onSave, onCancel, isEdit = f
|
|
|
placeholder="Av. Principal 123 y Secundaria"
|
|
|
/>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
+ <div className="space-y-2">
|
|
|
+ <Label htmlFor="obligadoContabilidad">Obligado a Llevar Contabilidad *</Label>
|
|
|
+ <Select
|
|
|
+ value={formData.obligadoContabilidad}
|
|
|
+ onValueChange={(value) => setFormData({ ...formData, obligadoContabilidad: value })}
|
|
|
+ >
|
|
|
+ <SelectTrigger>
|
|
|
+ <SelectValue />
|
|
|
+ </SelectTrigger>
|
|
|
+ <SelectContent>
|
|
|
+ <SelectItem value="SI">SI</SelectItem>
|
|
|
+ <SelectItem value="NO">NO</SelectItem>
|
|
|
+ </SelectContent>
|
|
|
+ </Select>
|
|
|
+ </div>
|
|
|
+
|
|
|
{isEdit && (
|
|
|
<div className="flex items-center space-x-2">
|
|
|
<Switch
|