From 0b43e0d328e4c6d5f20da0ee4555950b0e2dd22b Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Jan 2017 19:03:12 +0200 Subject: [PATCH] -Credit information in order view --- views/order/view.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/views/order/view.php b/views/order/view.php index 4889a05..09c051a 100755 --- a/views/order/view.php +++ b/views/order/view.php @@ -32,10 +32,20 @@ [ 'class' => 'table table-bordered' ] ) . Html::tag( 'tr', - Html::tag('td', $model->getAttributeLabel('credit_sum')) . Html::tag('td', $model->credit_sum) + Html::tag('td', $model->getAttributeLabel('credit_sum')) . Html::tag( + 'td', + CreditHelper::checkSum( + $model->credit_sum + ) + ) ) . Html::tag( 'tr', - Html::tag('td', $model->getAttributeLabel('credit_month')) . Html::tag('td', $model->credit_month) + Html::tag('td', $model->getAttributeLabel('credit_month')) . Html::tag( + 'td', + CreditHelper::checkMonth( + $model->credit_month + ) + ) ) . Html::tag( 'tr', Html::tag('td', 'Кредит') . Html::tag('td', $model->total - $model->credit_sum) -- libgit2 0.21.4