public function actionLoad_report_month_all() { $order_model = new \app\models\OrdersTransportAffiliated(); $year = \Yii::$app->request->post('year'); $month = \Yii::$app->request->post('month'); $report = new Report(); $result = $report->report_month_all($year, $month); //รายได้จากการจ้างบริษัทรถร่วมวิ่ง $order_out = $order_model->find()->where(['YEAR(create_date)' => $year, 'SUBSTR(create_date,6,2)' => $month])->all(); //$truck_no_map = $report->get_truck_nomap($year, $month);//ค่าใช้จ่ายของรถในเดือนนี้ที่ยังไม่ได้ต่อรถ return $this->renderPartial('load_report_month_all', ['year' => $year, 'month' => $month, 'result' => $result, 'order_out' => $order_out]); }