public function actionCancel($id)
 {
     $billOrder = BillOrder::findOne($id);
     $billOrder->status = 'cancel';
     $billOrder->send_date = null;
     $billOrder->pay_date = null;
     $billOrder->save();
     return $this->redirect(['index']);
 }
 public function getBillOrder()
 {
     return $this->hasOne(BillOrder::className(), ['id' => 'bill_order_id']);
 }
 public function actionHistory()
 {
     $session = new Session();
     $session->open();
     $billOrders = BillOrder::find()->where(['member_id' => $session->get('member_id')])->orderBy('id DESC')->all();
     return $this->render('//Frontend/History', ['billOrders' => $billOrders, 'n' => 1, 'sumQty' => 0, 'sumPrice' => 0]);
 }