Complete Rack→Bin rename and fix ReportManager property bug
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once '../../../assets/utils/db_auth.php';
|
||||
require_once '../../../assets/utils/classes/UsageGuard.php';
|
||||
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->assertFeatureAccessible('reports');
|
||||
require_once '../../../assets/utils/classes/ReportManager.php';
|
||||
|
||||
$bin_id = (int)($data['bin_id'] ?? 0);
|
||||
|
||||
if (!$bin_id) {
|
||||
$answer['output'] = [];
|
||||
$answer['success'] = 1;
|
||||
exit(json_encode($answer));
|
||||
}
|
||||
|
||||
$report = new ReportManager($pdo2, $company_id, $db_database);
|
||||
$answer['output'] = $report->getBinLog($bin_id);
|
||||
$answer['success'] = 1;
|
||||
exit(json_encode($answer));
|
||||
?>
|
||||
Reference in New Issue
Block a user