|
|
|
|
|
|
|
|
<?php foreach($document->getProductsOrders() as $product): ?> |
|
|
<?php foreach($document->getProductsOrders() as $product): ?> |
|
|
<?php foreach($product as $productOrder): ?> |
|
|
<?php foreach($product as $productOrder): ?> |
|
|
<tr> |
|
|
<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'): ?> |
|
|
<?php if(Yii::$app->controller->getClass() != 'DeliveryNote'): ?> |
|
|
<td class="align-center"><?= Price::format($productOrder->getPrice()) ?></td> |
|
|
<td class="align-center"><?= Price::format($productOrder->getPrice()) ?></td> |
|
|
<?php endif; ?> |
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
<?php endif; ?> |
|
|
<td class="align-center"><?= Price::format($productOrder->getPrice() * $productOrder->quantity) ?></td> |
|
|
<td class="align-center"><?= Price::format($productOrder->getPrice() * $productOrder->quantity) ?></td> |
|
|
<?php endif; ?> |
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
<?php endforeach; ?> |
|
|
<?php endforeach; ?> |
|
|
<?php endforeach; ?> |
|
|
<?php endforeach; ?> |