mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-13 18:26:54 +02:00
Display the precise date and time in sales history for better tracking
Updates SalesHistory component to show date and time and includes timestamp in CSV export. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/f6a714a9-67f2-4f1f-a39d-6d27dc316a57.jpg
This commit is contained in:
1 parent
fee34d6c4f
commit
f78ee9409a
2 files changed
+14
-15
No files matched your search
@@ -356,7 +356,7 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
<table className="modern-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Date et Heure</th>
|
||||
<th>Vendeur</th>
|
||||
<th>Client</th>
|
||||
<th>Article</th>
|
||||
@@ -377,7 +377,8 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
filteredSales.map((sale) => (
|
||||
<tr key={sale.id}>
|
||||
<td className="font-mono text-sm">
|
||||
{new Date(sale.timestamp).toLocaleDateString('fr-FR')}
|
||||
<div>{new Date(sale.timestamp).toLocaleDateString('fr-FR')}</div>
|
||||
<div className="text-xs text-gray-500">{new Date(sale.timestamp).toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' })}</div>
|
||||
</td>
|
||||
<td className="font-medium">{sale.vendeur}</td>
|
||||
<td>
|
||||
@@ -411,8 +412,8 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
|
||||
<div className="space-y-4">
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="text-sm font-medium text-gray-600">Date de vente</label>
|
||||
<p className="font-mono">{new Date(sale.timestamp).toLocaleDateString('fr-FR')}</p>
|
||||
<label className="text-sm font-medium text-gray-600">Date et heure de vente</label>
|
||||
<p className="font-mono">{new Date(sale.timestamp).toLocaleString('fr-FR')}</p>
|
||||
</div>
|
||||
<div>
|
||||
<label className="text-sm font-medium text-gray-600">Vendeur</label>
|
||||
|
||||
Reference in new issue
Block a user