#!/usr/bin/env php
=== Inventory Processing Test Script ===
Step 1: Checking database for unprocessed transactions...
Found: 0 unprocessed transactions
Step 2: Calling API endpoint...
URL: http://localhost/api/inventory/processTransactions
Step 3: API Response
HTTP Code: 200
Response:
=== INVENTORY PROCESS TRANSACTIONS START ===
Request Method: POST
Request URI: /api/inventory/processTransactions
Creating InventoryService instance
Querying unprocessed transactions count (WITHOUT tenant filters)
Found 0 unprocessed transactions
No transactions to process - returning early
=== JSON RESPONSE ===
{
"success": true,
"message": "No transactions to process",
"unprocessed_count": 0,
"processed_count": 0,
"logs": [
"=== INVENTORY PROCESS TRANSACTIONS START ===",
"Request Method: POST",
"Request URI: \/api\/inventory\/processTransactions",
"Creating InventoryService instance",
"Querying unprocessed transactions count (WITHOUT tenant filters)",
"Found 0 unprocessed transactions",
"No transactions to process - returning early",
""
],
"debug": {
"method": "POST",
"timestamp": "2026-08-30 12:11:04"
}
}
Step 4: Checking database again...
Fatal error: Uncaught Error: Call to undefined method Core\QueryBuilder::count() in /var/www/BAFTA/test_inventory_process.php:96
Stack trace:
#0 {main}
thrown in /var/www/BAFTA/test_inventory_process.php on line 96