<?php
require_once 'api/config/database.php';
require_once 'api/helpers/Response.php';
require_once 'api/helpers/Validator.php';
require_once 'api/helpers/UUID.php';
require_once 'api/services/AccountingService.php';
require_once 'api/helpers/AuditLogger.php';
require_once 'api/controllers/PurchaseController.php';

try {
    \ = (new Database())->connect();
    \ = (object)['id' => 1];
    \ = new PurchaseController(\, \);
    \->reverse(4);
    echo 'SUCCESS';
} catch (Throwable \) {
    echo 'ERROR: ' . \->getMessage();
}
