Improve NocoDB invoice verification and error handling

Enhance NocoDB invoice verification logic in the client and server to handle missing configurations and provide better debugging information. Update schema definitions to reflect changes in NocoDB configuration handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
michaelschal committed 2025-08-13 11:02:33 +00:00
1 parent 955f3d3b3d
commit 19ed96e48c
4 files changed
+50 -26

No files matched your search

+10 -2
View File
@@ -132,7 +132,15 @@ export default function BLReconciliation() {
// Fonction pour déclencher la vérification
const handleVerifyInvoice = (delivery: any) => {
if (!delivery.group?.webhookUrl) {
console.log('🔍 Debug vérification:', {
delivery: delivery,
group: delivery.group,
webhookUrl: delivery.group?.webhookUrl,
nocodbTableName: delivery.group?.nocodbTableName,
supplier: delivery.supplier
});
if (!delivery.group?.nocodbTableName && !delivery.group?.webhookUrl) {
toast({
title: "Vérification non disponible",
description: "Ce magasin n'a pas de configuration NocoDB",
@@ -631,7 +639,7 @@ export default function BLReconciliation() {
</div>
{/* Icône de vérification de facture */}
{delivery.group?.webhookUrl && (
{(delivery.group?.webhookUrl || delivery.group?.nocodbTableName) && (
<div className="flex items-center">
{verifyingDeliveries.has(delivery.id) ? (
<Clock className="h-4 w-4 text-blue-500 animate-spin" title="Vérification en cours..." />