Преглед на файлове

[backend] Documents : poids et description dans le PDF

refactoring
Guillaume преди 4 години
родител
ревизия
28ce09f4d0
променени са 1 файла, в които са добавени 9 реда и са изтрити 2 реда
  1. +9
    -2
      backend/views/document/download.php

+ 9
- 2
backend/views/document/download.php Целия файл

@@ -64,7 +64,15 @@
<?php foreach($document->getProductsOrders() as $product): ?>
<?php foreach($product as $productOrder): ?>
<tr>
<td class="align-left"><?= Html::encode($productOrder->product->name) ?></td>
<td class="align-left">
<?= Html::encode($productOrder->product->name) ?>
<?php if($productOrder->unit == 'piece' && isset($productOrder->product->weight) && $productOrder->product->weight): ?>
<span class="weight"> / <?= $productOrder->product->weight ?> g</span>
<?php endif; ?>
<?php if(strlen($productOrder->product->description)): ?>
<br /><small><?= Html::encode($productOrder->product->description) ?></small>
<?php endif; ?>
</td>
<?php if(Yii::$app->controller->getClass() != 'DeliveryNote'): ?>
<td class="align-center"><?= Price::format($productOrder->getPrice()) ?></td>
<?php endif; ?>
@@ -76,7 +84,6 @@
<?php endif; ?>
<td class="align-center"><?= Price::format($productOrder->getPrice() * $productOrder->quantity) ?></td>
<?php endif; ?>

</tr>
<?php endforeach; ?>
<?php endforeach; ?>

Loading…
Отказ
Запис