mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-14 02:38:58 +02:00
Update invoice verification to use specific NocoDB table IDs
Refactor invoice verification service to correctly utilize `nocodbTableId` for NocoDB API calls, defaulting to 'mrr733dfb8wtt9b' if not provided. Updates column names for invoice and delivery slip searches to 'RefFacture' and 'Numero_BL' respectively. Also, corrects NocoDB configuration URLs and project IDs for production environments. 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/t34W525
This commit is contained in:
1 parent
d7241e857e
commit
87c111741b
6 files changed
+356
-13
No files matched your search
+7
-5
@@ -1165,6 +1165,7 @@ export class MemStorage implements IStorage {
|
||||
color: '#3B82F6',
|
||||
nocodbConfigId: 1, // Référence vers la config NocoDB de test
|
||||
nocodbTableName: 'invoices',
|
||||
nocodbTableId: 'mrr733dfb8wtt9b', // ID réel de la table NocoDB
|
||||
invoiceColumnName: 'invoice_reference',
|
||||
nocodbBlColumnName: 'bl_number',
|
||||
nocodbAmountColumnName: 'amount',
|
||||
@@ -1284,6 +1285,7 @@ export class MemStorage implements IStorage {
|
||||
color: groupData.color || null,
|
||||
nocodbConfigId: groupData.nocodbConfigId || null,
|
||||
nocodbTableName: groupData.nocodbTableName || null,
|
||||
nocodbTableId: groupData.nocodbTableId || null,
|
||||
invoiceColumnName: groupData.invoiceColumnName || null,
|
||||
nocodbBlColumnName: groupData.nocodbBlColumnName || null,
|
||||
nocodbAmountColumnName: groupData.nocodbAmountColumnName || null,
|
||||
@@ -1353,14 +1355,14 @@ export class MemStorage implements IStorage {
|
||||
}
|
||||
|
||||
async getActiveNocodbConfig(): Promise<NocodbConfig | undefined> {
|
||||
// En développement, créer une config de test réaliste
|
||||
// Configuration corrigée pour votre serveur NocoDB
|
||||
const testConfig: NocodbConfig = {
|
||||
id: 1,
|
||||
name: 'Configuration Production NocoDB',
|
||||
baseUrl: 'https://nocodb.lafoirfouille.com', // URL réaliste
|
||||
projectId: 'p_invoice_management',
|
||||
name: 'Configuration Production NocoDB FFNancy',
|
||||
baseUrl: 'https://nocodb.ffnancy.fr', // URL corrigée
|
||||
projectId: 'pcg4uw79ukvycxc', // Project ID de vos logs
|
||||
apiToken: 'xc-token-production-invoice-system',
|
||||
description: 'Configuration de production pour vérification des factures',
|
||||
description: 'Configuration de production pour vérification des factures FFNancy',
|
||||
isActive: true,
|
||||
createdBy: 'admin',
|
||||
createdAt: new Date(),
|
||||
|
||||
Reference in new issue
Block a user