Improve comment icon updates for reconciliation entries

Add console logging for delivery comments in development to aid debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/awJgdDR
This commit is contained in:
michaelschal committed 2025-09-23 13:55:57 +00:00
1 parent 56adffbf97
commit b8d3b01ce1
1 file changed
+9
+9
View File
@@ -1132,6 +1132,15 @@ export default function BLReconciliation() {
((parseFloat(delivery.invoiceAmount) - parseFloat(delivery.blAmount)) / parseFloat(delivery.blAmount) * 100).toFixed(1) :
null;
// Log pour déboguer le problème des commentaires
if (import.meta.env.DEV && delivery.reconciliationCommentsCount) {
console.log('🔍 Validated delivery comments:', {
deliveryId: delivery.id,
commentsCount: delivery.reconciliationCommentsCount,
hasComments: delivery.reconciliationCommentsCount > 0
});
}
return (
<tr key={delivery.id} className="hover:bg-gray-50 bg-green-50">
<td className="px-6 py-4 whitespace-nowrap">