Seal transaction limit coverage gaps

This commit is contained in:
Thanakorn S
2026-05-26 13:10:54 +07:00
parent b4b1f5cbec
commit d93abb0b81
27 changed files with 1397 additions and 5 deletions
@@ -3,6 +3,7 @@
require_once '../../../assets/utils/db_auth.php';
require_role($user_role, ['owner', 'admin', 'staff']);
require_once '../../../assets/utils/classes/PaymentBillingManager.php';
require_once '../../../assets/utils/classes/UsageGuard.php';
try {
$mgr = new PaymentBillingManager($pdo2, $company_id);
@@ -49,6 +50,7 @@
$answer['success'] = 1;
$answer['new_id'] = $new_id;
$answer['message'] = 'Payment billing created.';
(new UsageGuard($pdo1, $company_id, $packages))->increment();
exit(json_encode($answer));
}