|
@@ -2,6 +2,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/com
|
|
|
import { Input } from "@/components/ui/input"
|
|
import { Input } from "@/components/ui/input"
|
|
|
import { Label } from "@/components/ui/label"
|
|
import { Label } from "@/components/ui/label"
|
|
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
|
|
|
|
+import { Separator } from "@/components/ui/separator"
|
|
|
import { ClienteSelector } from "@/components/factura/ClienteSelector"
|
|
import { ClienteSelector } from "@/components/factura/ClienteSelector"
|
|
|
import type { InfoFactura } from "@/types/factura"
|
|
import type { InfoFactura } from "@/types/factura"
|
|
|
|
|
|
|
@@ -19,19 +20,16 @@ export function InfoFacturaForm({ infoFactura, onChange }: InfoFacturaFormProps)
|
|
|
</CardHeader>
|
|
</CardHeader>
|
|
|
<CardContent>
|
|
<CardContent>
|
|
|
<div className="space-y-6">
|
|
<div className="space-y-6">
|
|
|
- {/* Selector de Cliente */}
|
|
|
|
|
- <div className="lg:col-span-3">
|
|
|
|
|
|
|
+ {/* Sección de Selección de Cliente */}
|
|
|
|
|
+ <div className="space-y-4">
|
|
|
<ClienteSelector infoFactura={infoFactura} onChange={onChange} />
|
|
<ClienteSelector infoFactura={infoFactura} onChange={onChange} />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
{/* Separador visual */}
|
|
{/* Separador visual */}
|
|
|
- <div className="border-t pt-4">
|
|
|
|
|
- <p className="text-sm text-muted-foreground mb-4">
|
|
|
|
|
- Información de la factura y datos del comprador (puedes editar manualmente si es necesario)
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <Separator />
|
|
|
|
|
|
|
|
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
|
|
|
|
|
+ {/* Grid responsivo optimizado */}
|
|
|
|
|
+ <div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4">
|
|
|
<div className="space-y-2">
|
|
<div className="space-y-2">
|
|
|
<Label htmlFor="fechaEmision">Fecha Emisión *</Label>
|
|
<Label htmlFor="fechaEmision">Fecha Emisión *</Label>
|
|
|
<Input
|
|
<Input
|