#!/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: 404
Response:
404 Not Found
Not Found
The requested URL was not found on this server.
Apache/2.4.62 (Ubuntu) Server at localhost Port 80
Step 4: Checking database again...
Fatal error: Uncaught Error: Call to undefined method Core\QueryBuilder::count() in /var/www/FijiTraders/test_inventory_process.php:96
Stack trace:
#0 {main}
thrown in /var/www/FijiTraders/test_inventory_process.php on line 96