Update: 2026-05-12 01:40:41

This commit is contained in:
Hamza-Ayed
2026-05-12 01:40:41 +03:00
parent e8a9b59a46
commit 30da101415
3 changed files with 33 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ final class QuotaMiddleware
$used = (int)$sub['invoices_used_this_month'];
$limit = (int)$sub['max_invoices_per_month'];
if ($used >= $limit && false) { // BYPASS QUOTA FOR TESTING
if ($used >= $limit) {
json_error('لقد وصلت للحد الأقصى من الفواتير المسموحة هذا الشهر (' . $limit . ' فاتورة). يرجى ترقية باقتك.', 429, [
'quota_type' => 'invoices',
'used' => $used,

View File

@@ -73,7 +73,7 @@ final class QuotaMiddleware
$used = (int)$sub['invoices_used_this_month'];
$limit = (int)$sub['max_invoices_per_month'];
if ($used >= $limit && false) { // BYPASS QUOTA FOR TESTING
if ($used >= $limit) {
json_error('لقد وصلت للحد الأقصى من الفواتير المسموحة هذا الشهر (' . $limit . ' فاتورة). يرجى ترقية باقتك.', 429, [
'quota_type' => 'invoices',
'used' => $used,