|
|
@@ -41,31 +41,33 @@ |
|
|
|
<th>Prix unitaire HT</th> |
|
|
|
<th>Quantité</th> |
|
|
|
<th>Unité</th> |
|
|
|
<th>TVA</th> |
|
|
|
<th>Prix HT</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<?php foreach($document->orders as $order): ?> |
|
|
|
<?php foreach($order->productOrder as $productOrder): ?> |
|
|
|
<?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-center"><?= Price::format($productOrder->product->getPrice()) ?></td> |
|
|
|
<td class="align-center"><?= $productOrder->quantity ?></td> |
|
|
|
<td class="align-center"><?= Product::strUnit($productOrder->unit, 'wording') ?></td> |
|
|
|
<td class="align-center"><?= $productOrder->product->taxRate->value * 100 ?> %</td> |
|
|
|
<td class="align-center"><?= Price::format($productOrder->product->getPrice() * $productOrder->quantity) ?></td> |
|
|
|
</tr> |
|
|
|
<?php endforeach; ?> |
|
|
|
<?php endforeach; ?> |
|
|
|
<tr> |
|
|
|
<td class="align-right" colspan="4"><strong>Total HT</strong></td> |
|
|
|
<td class="align-right" colspan="5"><strong>Total HT</strong></td> |
|
|
|
<td class="align-center"><?= Price::format($document->getAmount()) ?></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="align-right" colspan="4"><strong>TVA</strong></td> |
|
|
|
<td class="align-right" colspan="5"><strong>TVA</strong></td> |
|
|
|
<td class="align-center"><?= Price::format($document->getAmountWithTax() - $document->getAmount()) ?></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="align-right" colspan="4"><strong>Total TTC</strong></td> |
|
|
|
<td class="align-right" colspan="5"><strong>Total TTC</strong></td> |
|
|
|
<td class="align-center"><?= Price::format($document->getAmountWithTax()) ?></td> |
|
|
|
</tr> |
|
|
|
</tbody> |