diff --git a/views/order/print.php b/views/order/print.php index de6fa4b..6dc88cb 100755 --- a/views/order/print.php +++ b/views/order/print.php @@ -36,9 +36,9 @@ use yii\widgets\DetailView; 'id', 'created_at:date', [ - 'attribute' => 'user.username', + 'attribute' => 'name', 'label' => \Yii::t('app', 'Client Username'), - 'value' => $order->user?$order->user->username:$order->name, + 'value' => $order->name?:null, ], [ 'attribute' => 'email', @@ -178,7 +178,7 @@ echo DetailView::widget([ 'id', 'created_at:date', [ - 'attribute' => 'user.username', + 'attribute' => 'name', 'label' => \Yii::t('app', 'Client Username'), ], [ @@ -202,6 +202,10 @@ echo DetailView::widget([ 'value' => $order->stock?:null, ], [ + 'attribute' => 'consignment', + 'value' => $order->consignment?:null, + ], + [ 'attribute' => 'insurance', 'value' => $order->insurance?:null, ], -- libgit2 0.21.4