public function actionIndex()
 {
     $account = $this->findAccount();
     $paymentSearch = Yii::createObject(PaymentSearch::className());
     $paymentDp = $paymentSearch->search(Yii::$app->request->get());
     $paymentDp->sort = false;
     $billingAccount = BillingAccount::findOne(['account_id' => $account->id]);
     return $this->render('index', ['account' => $account, 'paymentSearch' => $paymentSearch, 'paymentDp' => $paymentDp, 'billingAccount' => $billingAccount]);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBillingaccount()
 {
     return $this->hasOne(BillingAccount::className(), ['id' => 'billing_account_id']);
 }
 public function run($id)
 {
     $account = $this->findAccount($id);
     $billingAccount = BillingAccount::findOne(['account_id' => $account->id]);
     return $this->controller->render('@wartron/yii2account/billing/backend/views/account-billing', ['account' => $account, 'billingAccount' => $billingAccount]);
 }