mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Add ability to manually set due dates for tasks within the platform
Update ReconciliationModal to include a date input for due dates, allowing manual entry and proper formatting. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: baf07a83-19d3-42bf-89b1-71e1469a5b03 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/y5yWvCQ
This commit is contained in:
1 parent
13a7357d21
commit
c4eca6e60f
1 file changed
+14
@@ -34,6 +34,7 @@ export default function ReconciliationModal({
|
||||
blAmount: "",
|
||||
invoiceReference: "",
|
||||
invoiceAmount: "",
|
||||
dueDate: "",
|
||||
reconciled: false,
|
||||
});
|
||||
|
||||
@@ -45,6 +46,7 @@ export default function ReconciliationModal({
|
||||
blAmount: delivery.blAmount || "",
|
||||
invoiceReference: delivery.invoiceReference || "",
|
||||
invoiceAmount: delivery.invoiceAmount || "",
|
||||
dueDate: delivery.dueDate ? safeFormat(delivery.dueDate, 'yyyy-MM-dd') : "",
|
||||
reconciled: delivery.reconciled || false,
|
||||
});
|
||||
}
|
||||
@@ -85,6 +87,7 @@ export default function ReconciliationModal({
|
||||
blAmount: formData.blAmount ? formData.blAmount.toString() : null,
|
||||
invoiceReference: formData.invoiceReference.trim() || null,
|
||||
invoiceAmount: formData.invoiceAmount ? formData.invoiceAmount.toString() : null,
|
||||
dueDate: formData.dueDate || null,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -209,6 +212,17 @@ export default function ReconciliationModal({
|
||||
placeholder="0.00"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Label htmlFor="dueDate">Date d'Échéance</Label>
|
||||
<Input
|
||||
id="dueDate"
|
||||
type="date"
|
||||
value={formData.dueDate}
|
||||
onChange={(e) => setFormData(prev => ({ ...prev, dueDate: e.target.value }))}
|
||||
placeholder="jj/mm/aaaa"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user