diff --git a/app/ac_dashboard/api/engine/by_source.php b/app/ac_dashboard/api/engine/by_source.php
index 0de7653..b721ba3 100644
--- a/app/ac_dashboard/api/engine/by_source.php
+++ b/app/ac_dashboard/api/engine/by_source.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('dashboard');
- require '../../../assets/utils/classes_ac/FinancialReports.php';
+ require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$reports = new FinancialReports($pdo2, $company_id);
diff --git a/app/ac_dashboard/api/engine/journals.php b/app/ac_dashboard/api/engine/journals.php
index 144a4d7..74d2b8b 100644
--- a/app/ac_dashboard/api/engine/journals.php
+++ b/app/ac_dashboard/api/engine/journals.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('dashboard');
- require '../../../assets/utils/classes_ac/FinancialReports.php';
+ require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$reports = new FinancialReports($pdo2, $company_id);
diff --git a/app/ac_dashboard/api/engine/pl.php b/app/ac_dashboard/api/engine/pl.php
index 7d631c7..eedfb66 100644
--- a/app/ac_dashboard/api/engine/pl.php
+++ b/app/ac_dashboard/api/engine/pl.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('dashboard');
- require '../../../assets/utils/classes_ac/FinancialReports.php';
+ require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$reports = new FinancialReports($pdo2, $company_id);
diff --git a/app/ac_dashboard/api/engine/posting_window.php b/app/ac_dashboard/api/engine/posting_window.php
index 664b768..4f1b05c 100644
--- a/app/ac_dashboard/api/engine/posting_window.php
+++ b/app/ac_dashboard/api/engine/posting_window.php
@@ -1,6 +1,6 @@
assertFeatureAccessible('dashboard');
- require '../../../assets/utils/classes_ac/FinancialReports.php';
+ require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$limit = max(1, min(50, (int)($data['limit'] ?? 10)));
$reports = new FinancialReports($pdo2, $company_id);
diff --git a/app/ac_dashboard/api/engine/trend.php b/app/ac_dashboard/api/engine/trend.php
index 8a063b8..cc08acb 100644
--- a/app/ac_dashboard/api/engine/trend.php
+++ b/app/ac_dashboard/api/engine/trend.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('dashboard');
- require '../../../assets/utils/classes_ac/FinancialReports.php';
+ require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$months = max(1, min(24, (int)($data['months'] ?? 6)));
$reports = new FinancialReports($pdo2, $company_id);
diff --git a/app/accounting/api/engine/account.php b/app/accounting/api/engine/account.php
index 1a3bed4..dc93c73 100644
--- a/app/accounting/api/engine/account.php
+++ b/app/accounting/api/engine/account.php
@@ -1,7 +1,7 @@
getAll();
diff --git a/app/accounting/api/engine/account_formula.php b/app/accounting/api/engine/account_formula.php
index bb25a9f..e593300 100644
--- a/app/accounting/api/engine/account_formula.php
+++ b/app/accounting/api/engine/account_formula.php
@@ -1,8 +1,8 @@
getStats();
diff --git a/app/accounting/api/engine/acquire_op_lock.php b/app/accounting/api/engine/acquire_op_lock.php
index ee0a1f3..9d756ff 100644
--- a/app/accounting/api/engine/acquire_op_lock.php
+++ b/app/accounting/api/engine/acquire_op_lock.php
@@ -1,7 +1,7 @@
getAll();
diff --git a/app/accounting/api/engine/department_stats.php b/app/accounting/api/engine/department_stats.php
index 69d0148..d2b421a 100644
--- a/app/accounting/api/engine/department_stats.php
+++ b/app/accounting/api/engine/department_stats.php
@@ -1,7 +1,7 @@
getStats();
diff --git a/app/accounting/api/engine/get_balance_sheet.php b/app/accounting/api/engine/get_balance_sheet.php
index a2dfa83..20fea7c 100644
--- a/app/accounting/api/engine/get_balance_sheet.php
+++ b/app/accounting/api/engine/get_balance_sheet.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('reports');
-require '../../../assets/utils/classes_ac/FinancialReports.php';
+require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$as_of_date = trim((string)($data['as_of_date'] ?? ($data['as_of_period'] ?? date('Y-m-d'))));
$dept_id = (int)($data['department_id'] ?? 0);
diff --git a/app/accounting/api/engine/get_gl_by_source.php b/app/accounting/api/engine/get_gl_by_source.php
index b116304..6a07ee5 100644
--- a/app/accounting/api/engine/get_gl_by_source.php
+++ b/app/accounting/api/engine/get_gl_by_source.php
@@ -1,6 +1,6 @@
assertFeatureAccessible('reports');
-require '../../../assets/utils/classes_ac/FinancialReports.php';
+require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$account_code = trim((string)($data['account_code'] ?? ''));
$from_date = trim((string)($data['from_date'] ?? ($data['from_period'] ?? date('Y-m-d'))));
diff --git a/app/accounting/api/engine/get_journal_detail.php b/app/accounting/api/engine/get_journal_detail.php
index 90fb3b6..e2e310c 100644
--- a/app/accounting/api/engine/get_journal_detail.php
+++ b/app/accounting/api/engine/get_journal_detail.php
@@ -1,7 +1,7 @@
assertFeatureAccessible('reports');
-require '../../../assets/utils/classes_ac/FinancialReports.php';
+require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$from_date = trim((string)($data['from_date'] ?? ($data['from_period'] ?? date('Y-m-d'))));
$to_date = trim((string)($data['to_date'] ?? ($data['to_period'] ?? $from_date)));
diff --git a/app/accounting/api/engine/get_trial_balance.php b/app/accounting/api/engine/get_trial_balance.php
index 4a18c8d..e2e029f 100644
--- a/app/accounting/api/engine/get_trial_balance.php
+++ b/app/accounting/api/engine/get_trial_balance.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('reports');
-require '../../../assets/utils/classes_ac/FinancialReports.php';
+require_once '../../../assets/utils/classes_ac/FinancialReports.php';
$from_date = trim((string)($data['from_date'] ?? ($data['from_period'] ?? date('Y-m-d'))));
$to_date = trim((string)($data['to_date'] ?? ($data['to_period'] ?? $from_date)));
diff --git a/app/accounting/api/engine/get_vat_report.php b/app/accounting/api/engine/get_vat_report.php
index cc0250b..49c3612 100644
--- a/app/accounting/api/engine/get_vat_report.php
+++ b/app/accounting/api/engine/get_vat_report.php
@@ -1,10 +1,10 @@
assertFeatureAccessible('reports');
-require '../../../assets/utils/classes_ac/TaxReportManager.php';
+require_once '../../../assets/utils/classes_ac/TaxReportManager.php';
$from_date = trim((string)($data['from_date'] ?? ($data['from_period'] ?? date('Y-m-d'))));
$to_date = trim((string)($data['to_date'] ?? ($data['to_period'] ?? $from_date)));
diff --git a/app/accounting/api/engine/log_batch_action.php b/app/accounting/api/engine/log_batch_action.php
index 5dcd4bb..da121ba 100644
--- a/app/accounting/api/engine/log_batch_action.php
+++ b/app/accounting/api/engine/log_batch_action.php
@@ -1,7 +1,7 @@
getContactList();
diff --git a/app/contact/api/engine/contact_stats.php b/app/contact/api/engine/contact_stats.php
index 2149893..a08477e 100644
--- a/app/contact/api/engine/contact_stats.php
+++ b/app/contact/api/engine/contact_stats.php
@@ -1,8 +1,8 @@
getContactTypeList();
diff --git a/app/contact/api/engine/manage_contact.php b/app/contact/api/engine/manage_contact.php
index bd5573f..dfd55a9 100644
--- a/app/contact/api/engine/manage_contact.php
+++ b/app/contact/api/engine/manage_contact.php
@@ -1,8 +1,8 @@
getContactTypeById((int)$data['id']);
diff --git a/app/dashboard/api/engine_report/low_stock.php b/app/dashboard/api/engine_report/low_stock.php
index 06df6b9..2026e19 100644
--- a/app/dashboard/api/engine_report/low_stock.php
+++ b/app/dashboard/api/engine_report/low_stock.php
@@ -1,8 +1,8 @@
assertFeatureAccessible('dashboard');
diff --git a/app/expense/api/engine/convert_purchase_request.php b/app/expense/api/engine/convert_purchase_request.php
index 323aca0..8ba4d99 100644
--- a/app/expense/api/engine/convert_purchase_request.php
+++ b/app/expense/api/engine/convert_purchase_request.php
@@ -1,8 +1,8 @@
Save
+
+
Create Supplier Credit Note
@@ -136,6 +140,10 @@
Void
+
+
@@ -147,6 +155,9 @@