|
|
@@ -51,28 +51,42 @@ export function InfoFacturaForm({ infoFactura, onChange }: InfoFacturaFormProps)
|
|
|
</div>
|
|
|
|
|
|
<div className="space-y-2">
|
|
|
- <Label htmlFor="tipoIdentificacionComprador">Tipo Identificación Comprador</Label>
|
|
|
- <Select value={infoFactura.tipoIdentificacionComprador} onValueChange={(value) => onChange('tipoIdentificacionComprador', value)}>
|
|
|
- <SelectTrigger>
|
|
|
- <SelectValue />
|
|
|
- </SelectTrigger>
|
|
|
- <SelectContent>
|
|
|
- <SelectItem value="04">04 - RUC</SelectItem>
|
|
|
- <SelectItem value="05">05 - Cédula</SelectItem>
|
|
|
- <SelectItem value="06">06 - Pasaporte</SelectItem>
|
|
|
- <SelectItem value="07">07 - Consumidor Final</SelectItem>
|
|
|
- </SelectContent>
|
|
|
- </Select>
|
|
|
+ <Label htmlFor="emailComprador">Email Comprador</Label>
|
|
|
+ <Input
|
|
|
+ id="emailComprador"
|
|
|
+ type="email"
|
|
|
+ value={infoFactura.emailComprador}
|
|
|
+ onChange={(e) => onChange('emailComprador', e.target.value)}
|
|
|
+ placeholder="email@ejemplo.com"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- <div className="space-y-2">
|
|
|
- <Label htmlFor="identificacionComprador">Identificación Comprador *</Label>
|
|
|
- <Input
|
|
|
- id="identificacionComprador"
|
|
|
- value={infoFactura.identificacionComprador}
|
|
|
- onChange={(e) => onChange('identificacionComprador', e.target.value)}
|
|
|
- placeholder="Según tipo seleccionado"
|
|
|
- />
|
|
|
+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
|
|
+ <div className="space-y-2">
|
|
|
+ <Label htmlFor="tipoIdentificacionComprador">Tipo Identificación Comprador</Label>
|
|
|
+ <Select value={infoFactura.tipoIdentificacionComprador} onValueChange={(value) => onChange('tipoIdentificacionComprador', value)}>
|
|
|
+ <SelectTrigger>
|
|
|
+ <SelectValue />
|
|
|
+ </SelectTrigger>
|
|
|
+ <SelectContent>
|
|
|
+ <SelectItem value="04">04 - RUC</SelectItem>
|
|
|
+ <SelectItem value="05">05 - Cédula</SelectItem>
|
|
|
+ <SelectItem value="06">06 - Pasaporte</SelectItem>
|
|
|
+ <SelectItem value="07">07 - Consumidor Final</SelectItem>
|
|
|
+ </SelectContent>
|
|
|
+ </Select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className="space-y-2">
|
|
|
+ <Label htmlFor="identificacionComprador">Identificación Comprador *</Label>
|
|
|
+ <Input
|
|
|
+ id="identificacionComprador"
|
|
|
+ value={infoFactura.identificacionComprador}
|
|
|
+ onChange={(e) => onChange('identificacionComprador', e.target.value)}
|
|
|
+ placeholder="Según tipo seleccionado"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div className="space-y-2">
|
|
|
@@ -94,34 +108,6 @@ export function InfoFacturaForm({ infoFactura, onChange }: InfoFacturaFormProps)
|
|
|
placeholder="Dirección del comprador"
|
|
|
/>
|
|
|
</div>
|
|
|
-
|
|
|
- <div className="space-y-2">
|
|
|
- <Label htmlFor="formaPago">Forma de Pago</Label>
|
|
|
- <Select value={infoFactura.formaPago} onValueChange={(value) => onChange('formaPago', value)}>
|
|
|
- <SelectTrigger>
|
|
|
- <SelectValue />
|
|
|
- </SelectTrigger>
|
|
|
- <SelectContent>
|
|
|
- <SelectItem value="01">01 - Efectivo</SelectItem>
|
|
|
- <SelectItem value="15">15 - Transferencia</SelectItem>
|
|
|
- <SelectItem value="16">16 - Tarjeta Crédito</SelectItem>
|
|
|
- <SelectItem value="17">17 - Tarjeta Débito</SelectItem>
|
|
|
- <SelectItem value="20">20 - Otros</SelectItem>
|
|
|
- </SelectContent>
|
|
|
- </Select>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div className="space-y-2">
|
|
|
- <Label htmlFor="emailComprador">Email Comprador</Label>
|
|
|
- <Input
|
|
|
- id="emailComprador"
|
|
|
- type="email"
|
|
|
- value={infoFactura.emailComprador}
|
|
|
- onChange={(e) => onChange('emailComprador', e.target.value)}
|
|
|
- placeholder="email@ejemplo.com"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</CardContent>
|
|
|
</Card>
|