Change 'Rack' to 'Bin'
This commit is contained in:
@@ -6,16 +6,16 @@
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->assertFeatureAccessible('reports');
|
||||
require_once '../../../assets/utils/classes/ReportManager.php';
|
||||
|
||||
$rack_id = (int)($data['rack_id'] ?? 0);
|
||||
$bin_id = (int)($data['bin_id'] ?? 0);
|
||||
|
||||
if (!$rack_id) {
|
||||
if (!$bin_id) {
|
||||
$answer['output'] = [];
|
||||
$answer['success'] = 1;
|
||||
exit(json_encode($answer));
|
||||
}
|
||||
|
||||
$report = new ReportManager($pdo2, $company_id, $db_database);
|
||||
$answer['output'] = $report->getRackLog($rack_id);
|
||||
$answer['output'] = $report->getBinLog($bin_id);
|
||||
$answer['success'] = 1;
|
||||
exit(json_encode($answer));
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user