Integrate NocoDB configuration directly into store settings for invoice verification

Refactor invoice verification to use group-specific NocoDB configuration, removing the global `nocodbConfig` table and cache, and updating UI to reflect these changes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/ehBF9El
This commit is contained in:
michaelschal committed 2025-08-13 11:14:47 +00:00
1 parent 19ed96e48c
commit 7ebd84e0e1
5 files changed
+35 -155

No files matched your search

+4 -2
View File
@@ -137,10 +137,12 @@ export default function BLReconciliation() {
group: delivery.group,
webhookUrl: delivery.group?.webhookUrl,
nocodbTableName: delivery.group?.nocodbTableName,
invoiceColumnName: delivery.group?.invoiceColumnName,
nocodbConfigId: delivery.group?.nocodbConfigId,
supplier: delivery.supplier
});
if (!delivery.group?.nocodbTableName && !delivery.group?.webhookUrl) {
if (!delivery.group?.nocodbTableName && !delivery.group?.nocodbConfigId) {
toast({
title: "Vérification non disponible",
description: "Ce magasin n'a pas de configuration NocoDB",
@@ -639,7 +641,7 @@ export default function BLReconciliation() {
</div>
{/* Icône de vérification de facture */}
{(delivery.group?.webhookUrl || delivery.group?.nocodbTableName) && (
{(delivery.group?.nocodbTableName || delivery.group?.nocodbConfigId) && (
<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..." />