Commit 164cd94af9de1f59779e4af5db2a7b3e110ec184
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,9 +36,9 @@ use yii\widgets\DetailView; | ||
| 36 | 'id', | 36 | 'id', |
| 37 | 'created_at:date', | 37 | 'created_at:date', |
| 38 | [ | 38 | [ |
| 39 | - 'attribute' => 'user.username', | 39 | + 'attribute' => 'name', |
| 40 | 'label' => \Yii::t('app', 'Client Username'), | 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 | 'attribute' => 'email', | 44 | 'attribute' => 'email', |
| @@ -178,7 +178,7 @@ echo DetailView::widget([ | @@ -178,7 +178,7 @@ echo DetailView::widget([ | ||
| 178 | 'id', | 178 | 'id', |
| 179 | 'created_at:date', | 179 | 'created_at:date', |
| 180 | [ | 180 | [ |
| 181 | - 'attribute' => 'user.username', | 181 | + 'attribute' => 'name', |
| 182 | 'label' => \Yii::t('app', 'Client Username'), | 182 | 'label' => \Yii::t('app', 'Client Username'), |
| 183 | ], | 183 | ], |
| 184 | [ | 184 | [ |
| @@ -202,6 +202,10 @@ echo DetailView::widget([ | @@ -202,6 +202,10 @@ echo DetailView::widget([ | ||
| 202 | 'value' => $order->stock?:null, | 202 | 'value' => $order->stock?:null, |
| 203 | ], | 203 | ], |
| 204 | [ | 204 | [ |
| 205 | + 'attribute' => 'consignment', | ||
| 206 | + 'value' => $order->consignment?:null, | ||
| 207 | + ], | ||
| 208 | + [ | ||
| 205 | 'attribute' => 'insurance', | 209 | 'attribute' => 'insurance', |
| 206 | 'value' => $order->insurance?:null, | 210 | 'value' => $order->insurance?:null, |
| 207 | ], | 211 | ], |