$to_month) [$from_month, $to_month] = [$to_month, $from_month]; $report = new ReportManager($pdo2, $company_id); $answer['output'] = $report->getStockMovementSummary($warehouse_id, $from_month, $to_month); $answer['success'] = 1; exit(json_encode($answer)); ?>