Skip to content

Instantly share code, notes, and snippets.

@makamo
Created December 17, 2019 21:38
Show Gist options
  • Save makamo/b120344073ed4bc5239b6651dce5b4d2 to your computer and use it in GitHub Desktop.
Save makamo/b120344073ed4bc5239b6651dce5b4d2 to your computer and use it in GitHub Desktop.
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Facture $facture
*/
?>
<table>
<thead>
<tr>
<th><?= __('Date') ?></th>
<th><?= __('Shift') ?></th>
<th><?= __('Hole') ?></th>
<th><?= __('Size') ?></th>
<th><?= __('Operation') ?></th>
<th><?= __('Description') ?></th>
<th><?= __('Quantity') ?></th>
<th><?= __('Units') ?></th>
<th><?= __('Cost') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($facture->factures_metragesfacturables as $metrage) : ?>
<tr>
<td><?= $metrage->date ?></td>
<td><?= $metrage->shift_name ?></td>
<td><?= $metrage->hole_name ?></td>
<td><?= $metrage->calibre_name ?></td>
<td><?= $metrage->operation_name ?></td>
<td><?= $metrage->description ?></td>
<td>
<?= $this->Number->precision($metrage->quantity, 2) ?>
</td>
<td><?= $metrage->unit_name ?></td>
<td>
<?= $this->Number->precision($metrage->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_stabilisationsfacturables as $stabilisation) : ?>
<tr>
<td><?= $stabilisation->date ?></td>
<td><?= $stabilisation->shift_name ?></td>
<td><?= $stabilisation->hole_name ?></td>
<td><?= $stabilisation->calibre_name ?></td>
<td><?= $stabilisation->operation_name ?></td>
<td><?= $stabilisation->description ?></td>
<td>
<?= $this->Number->precision($stabilisation->quantity, 2) ?>
</td>
<td><?= $stabilisation->unit_name ?></td>
<td>
<?= $this->Number->precision($stabilisation->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_testsfacturables as $test) : ?>
<tr>
<td><?= $test->date ?></td>
<td><?= $test->shift_name ?></td>
<td><?= $test->hole_name ?></td>
<td><?= $test->calibre_name ?></td>
<td><?= $test->operation_name ?></td>
<td><?= $test->description ?></td>
<td>
<?= $this->Number->precision($test->quantity, 2) ?>
</td>
<td><?= $test->unit_name ?></td>
<td>
<?= $this->Number->precision($test->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_heureshommesfacturables as $heurehomme) : ?>
<tr>
<td><?= $heurehomme->date ?></td>
<td><?= $heurehomme->shift_name ?></td>
<td><?= $heurehomme->hole_name ?></td>
<td><?= $heurehomme->calibre_name ?></td>
<td><?= $heurehomme->operation_name ?></td>
<td><?= $heurehomme->description ?></td>
<td>
<?= $this->Number->precision($heurehomme->quantity, 2) ?>
</td>
<td><?= $heurehomme->unit_name ?></td>
<td>
<?= $this->Number->precision($heurehomme->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_heuresmachinesfacturables as $heuremachine) : ?>
<tr>
<td><?= $heuremachine->date ?></td>
<td><?= $heuremachine->shift_name ?></td>
<td><?= $heuremachine->hole_name ?></td>
<td><?= $heuremachine->calibre_name ?></td>
<td><?= $heuremachine->operation_name ?></td>
<td><?= $heuremachine->description ?></td>
<td>
<?= $this->Number->precision($heuremachine->quantity, 2) ?>
</td>
<td><?= $heuremachine->unit_name ?></td>
<td>
<?= $this->Number->precision($heuremachine->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_fournituresfacturables as $fourniture) : ?>
<tr>
<td><?= $fourniture->date ?></td>
<td><?= $fourniture->shift_name ?></td>
<td><?= $fourniture->hole_name ?></td>
<td><?= $fourniture->calibre_name ?></td>
<td><?= $fourniture->operation_name ?></td>
<td><?= $fourniture->description ?></td>
<td>
<?= $this->Number->precision($fourniture->quantity, 2) ?>
</td>
<td><?= $fourniture->unit_name ?></td>
<td>
<?= $this->Number->precision($fourniture->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
<?php foreach ($facture->factures_ajustementsfacturables as $ajustement) : ?>
<tr>
<td><?= $ajustement->date ?></td>
<td><?= $ajustement->shift_name ?></td>
<td><?= $ajustement->hole_name ?></td>
<td><?= $ajustement->calibre_name ?></td>
<td><?= $ajustement->operation_name ?></td>
<td><?= $ajustement->description ?></td>
<td>
<?= $this->Number->precision($ajustement->quantity, 2) ?>
</td>
<td><?= $ajustement->unit_name ?></td>
<td>
<?= $this->Number->precision($ajustement->total, 2) ?>$
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment