Commit 164cd94af9de1f59779e4af5db2a7b3e110ec184

Authored by Yarik
1 parent b3a3a952

Order print

Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
views/order/print.php
... ... @@ -36,9 +36,9 @@ use yii\widgets\DetailView;
36 36 'id',
37 37 'created_at:date',
38 38 [
39   - 'attribute' => 'user.username',
  39 + 'attribute' => 'name',
40 40 'label' => \Yii::t('app', 'Client Username'),
41   - 'value' => $order->user?$order->user->username:$order->name,
  41 + 'value' => $order->name?:null,
42 42 ],
43 43 [
44 44 'attribute' => 'email',
... ... @@ -178,7 +178,7 @@ echo DetailView::widget([
178 178 'id',
179 179 'created_at:date',
180 180 [
181   - 'attribute' => 'user.username',
  181 + 'attribute' => 'name',
182 182 'label' => \Yii::t('app', 'Client Username'),
183 183 ],
184 184 [
... ... @@ -202,6 +202,10 @@ echo DetailView::widget([
202 202 'value' => $order->stock?:null,
203 203 ],
204 204 [
  205 + 'attribute' => 'consignment',
  206 + 'value' => $order->consignment?:null,
  207 + ],
  208 + [
205 209 'attribute' => 'insurance',
206 210 'value' => $order->insurance?:null,
207 211 ],
... ...