Checkpoint: Ajout complet du champ "Destinataire" (recipientName) dans toute l'application : schéma DB (invoices.recipientName + userSettings.recipientKeywords), extraction IA (prompt LLM + interface), services d'import (email, dossier, upload manuel), interface utilisateur (liste des factures, détail, paramètres mots-clés), règles d'automatisme et configuration des champs LLM obligatoires.
This commit is contained in:
@@ -28,6 +28,7 @@ export default function InvoiceDetail() {
|
||||
deliveryNoteNumber: "",
|
||||
orderNumber: "",
|
||||
totalAmount: "",
|
||||
recipientName: "",
|
||||
serviceConcerne: "",
|
||||
typeAchat: "",
|
||||
ventilationComptable: "",
|
||||
@@ -45,6 +46,7 @@ export default function InvoiceDetail() {
|
||||
deliveryNoteNumber: invoice.deliveryNoteNumber || "",
|
||||
orderNumber: invoice.orderNumber || "",
|
||||
totalAmount: invoice.totalAmount ? invoice.totalAmount.toString() : "",
|
||||
recipientName: (invoice as any).recipientName || "",
|
||||
serviceConcerne: invoice.serviceConcerne || "",
|
||||
typeAchat: invoice.typeAchat || "",
|
||||
ventilationComptable: invoice.ventilationComptable || "",
|
||||
@@ -87,6 +89,7 @@ export default function InvoiceDetail() {
|
||||
deliveryNoteNumber: formData.deliveryNoteNumber || undefined,
|
||||
orderNumber: formData.orderNumber || undefined,
|
||||
totalAmount: formData.totalAmount ? formData.totalAmount : undefined,
|
||||
recipientName: formData.recipientName || undefined,
|
||||
serviceConcerne: formData.serviceConcerne || undefined,
|
||||
typeAchat: (formData.typeAchat as "CAPEX" | "OPEX" | "") || undefined,
|
||||
ventilationComptable: formData.ventilationComptable || undefined,
|
||||
@@ -330,6 +333,20 @@ export default function InvoiceDetail() {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Label htmlFor="recipientName">Destinataire</Label>
|
||||
{isEditing ? (
|
||||
<Input
|
||||
id="recipientName"
|
||||
value={formData.recipientName}
|
||||
onChange={(e) => setFormData({ ...formData, recipientName: e.target.value })}
|
||||
placeholder="Nom du destinataire"
|
||||
/>
|
||||
) : (
|
||||
<div className="text-sm mt-1">{(invoice as any).recipientName || "-"}</div>
|
||||
)}
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user