
      
🔍 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: undefined,

  withBL: undefined,

  userRole: 'admin'

}

Admin filtering deliveries with groupIds: undefined

Fetching all deliveries

Deliveries returned: 80 items

GET /api/deliveries 304 in 44ms

🔍 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 /[object%20Object]

🔍 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 /[object%20Object]

🔍 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 /[object%20Object]

🔍 getUserWithGroups called 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

🔍 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

🔍 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

🔍 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

🔍 Found 0 group assignments for user admin_local

🔍 Raw query result: []

✅ Processed 0 groups for user admin_local

Orders API called with: {

  startDate: '2025-08-01',

  endDate: '2025-08-31',

  storeId: '1',

  userRole: 'admin'

}

Admin filtering with groupIds: [ 1 ]

Fetching orders by date range: 2025-08-01 to 2025-08-31

🔍 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: '2025-08-01',

  endDate: '2025-08-31',

  storeId: '1',

  withBL: undefined,

  userRole: 'admin'

}

Admin filtering deliveries with groupIds: [ 1 ]

Fetching deliveries by date range: 2025-08-01 to 2025-08-31

Orders returned: 9 items

GET /api/orders 304 in 23ms

Deliveries returned: 20 items

GET /api/deliveries 304 in 36ms

