ok for all calculation, next add output

This commit is contained in:
JBthePenguin 2021-06-08 00:23:17 +02:00
parent 71775c0f67
commit 54858e2d18
14 changed files with 259 additions and 39 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace Garradin;
use Garradin\Plugin\Materiels\Equipment;
use Garradin\Plugin\Materiels\Output;
require_once __DIR__ . '/../_inc.php';
$eqmt = new Equipment;
$output = new Output;
$outputs = $output->listAll();
foreach ($outputs as $key => $value) {
$outputs[$key]->equipment = $eqmt->get($value->equipment_id);
}
$tpl->assign(compact('outputs'));
$tpl->display(PLUGIN_ROOT . '/templates/sorties/index.tpl');