diff --git a/attached_assets/Pasted--getUserWithGroups-called-for-user-admin-local-Querying-user-groups-for-user-adm-1755002698355_1755002698355.txt b/attached_assets/Pasted--getUserWithGroups-called-for-user-admin-local-Querying-user-groups-for-user-adm-1755002698355_1755002698355.txt new file mode 100644 index 0000000..773a876 --- /dev/null +++ b/attached_assets/Pasted--getUserWithGroups-called-for-user-admin-local-Querying-user-groups-for-user-adm-1755002698355_1755002698355.txt @@ -0,0 +1,199 @@ + + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ“„ SPA: Serving index.html for /bl-reconciliation + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/user 304 in 7ms + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/user 304 in 8ms + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/suppliers 304 in 31ms + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/user 304 in 5ms + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/user 304 in 9ms + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +Deliveries API called with: { + + startDate: undefined, + + endDate: undefined, + + storeId: '1', + + withBL: undefined, + + userRole: 'admin' + +} + +Admin filtering deliveries with groupIds: [ 1 ] + +Fetching all deliveries + +Deliveries returned: 44 items + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +GET /api/deliveries 304 in 67ms + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +πŸ” getUserWithGroups called for user: admin_local + +πŸ” Querying user_groups for user: admin_local + +πŸ” Found 0 group assignments for user admin_local + +πŸ” Raw query result: [] + +βœ… Processed 0 groups for user admin_local + +GET /api/groups 304 in 26ms + +HEAD /api/health 200 in 0ms \ No newline at end of file diff --git a/attached_assets/{770C1358-C0B0-4F25-9E82-6BB1092546C6}_1755002679357.png b/attached_assets/{770C1358-C0B0-4F25-9E82-6BB1092546C6}_1755002679357.png new file mode 100644 index 0000000..4a0a3a3 Binary files /dev/null and b/attached_assets/{770C1358-C0B0-4F25-9E82-6BB1092546C6}_1755002679357.png differ diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index cffe257..319e9c8 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -78,19 +78,6 @@ export default function BLReconciliation() { enabled: !!user }); - // Debug: vΓ©rifier les donnΓ©es des fournisseurs - console.log('πŸ” Debug Filtrage RΓ©conciliation:', { - totalDeliveries: deliveriesWithBL.length, - totalSuppliers: suppliers.length, - deliveriesWithSuppliers: deliveriesWithBL.map(d => ({ - id: d.id, - supplierId: d.supplierId, - supplier: suppliers.find(s => s.id === d.supplierId), - supplierAuto: suppliers.find(s => s.id === d.supplierId)?.isAutoReconciliation - })), - suppliersAuto: suppliers.filter(s => s.isAutoReconciliation === true) - }); - // SΓ©parer les livraisons par mode de rapprochement const manualReconciliationDeliveries = deliveriesWithBL.filter((delivery: any) => { const supplier = suppliers.find(s => s.id === delivery.supplierId); @@ -444,7 +431,7 @@ export default function BLReconciliation() { } - + {(() => { const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0; const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0;