1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/include/template/form_ledger_detail.php

133 lines
3.2 KiB
PHP
Raw Normal View History

2015-09-27 00:35:53 +02:00
<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
?>
<div id="jrn_name_div">
<h2 id="jrn_name"> <?php echo $this->get_name()?></h2>
</div>
<table>
<tr>
<td>
<?php echo _('Journal')?> <?php echo $f_jrn?>
</td>
</tr>
<tr>
<td> <?php echo _('Modèle opération') ?></td>
<td>
<?php echo $str_op_template;?>
</td>
</tr>
2015-09-27 00:35:53 +02:00
<tr>
<td>
<?php echo _('Date')?>
</td>
<td>
<?php echo $f_date ?>
</td>
</tr>
<tr>
<td>
<?php echo _('Echeance')?>
</td>
<td>
<?php echo $f_echeance?>
</td>
</tr>
<tr>
<td><?php echo $f_type?></td>
<td>
<?php echo $f_client_qcode?><?php echo $f_client_bt?><?php echo $str_add_button_tiers;?> <?php echo $f_client?></td>
2015-09-27 00:35:53 +02:00
</td>
</tr>
<tr>
<?php echo $f_periode?>
</tr>
<tr>
<td>
<?php echo _('Numéro Pièce')?>
</td>
<td>
<?php echo $f_pj?>
</td>
</tr>
<tr>
<td>
<?php echo _('Libellé')?>
<?php echo $label ; ?>
</td>
<td>
<?php echo $f_desc?>
</td>
</tr>
</table>
<br>
<h2><?php echo $f_legend_detail?></h2>
<table id="sold_item" >
2015-09-27 00:35:53 +02:00
<tr>
<th style="width:auto"colspan="2">Code <?php echo Icon_Action::infobulle(0)?></th>
<th class="visible_gt800 visible_gt1155"><?php echo _('Dénomination')?></th>
2015-09-27 00:35:53 +02:00
<?php if ($flag_tva =='Y') : ?>
<th><?php echo _('prix/unité htva')?><?php echo Icon_Action::infobulle(6)?></th>
2015-09-27 00:35:53 +02:00
<th><?php echo _('quantité')?></th>
<th class="visible_gt800" ><?php echo _('Total HTVA')?></th>
2015-09-27 00:35:53 +02:00
<th><?php echo _('tva')?></th>
<th class="visible_gt800"><?php echo _('tot.tva')?></th>
2015-09-27 00:35:53 +02:00
<th><?php echo _('tvac')?></th>
<?php else: ?>
<th><?php echo _('prix/unité ')?><?php echo Icon_Action::infobulle(6)?></th>
2015-09-27 00:35:53 +02:00
<th><?php echo _('quantité')?></th>
<th><?php echo _('Total ')?></th>
<?php endif;?>
</tr>
<?php foreach ($array as $item) {
echo '<tr>';
// echo "<td>";
2015-09-27 00:35:53 +02:00
echo $item['quick_code'];
// echo "</td>";
echo '<td>'.$item['bt'].$item['card_add'].'</td>';
2015-09-27 00:35:53 +02:00
?>
<td class="visible_gt800 visible_gt1155"><?php echo $item['denom'] ?></td>
2015-09-27 00:35:53 +02:00
<?php
echo td($item['pu']);
echo td($item['quantity' ]);
echo td($item['htva'],' class="visible_gt800" ');
2015-09-27 00:35:53 +02:00
if ($flag_tva=='Y') {
echo td($item['tva']);
echo td($item['amount_tva'].$item['hidden'],' class="visible_gt800" ');
2015-09-27 00:35:53 +02:00
}
echo td($item['tvac']);
echo '</tr>';
}
?>
<tfoot id="sum">
<tr class="highlight">
<td> <?php echo _("Total")?> </td>
<td> </td>
<td class="visible_gt800 visible_gt1155"> </td>
<td> </td>
<td> </td>
<td class="num visible_gt800"> <span id="htva">0.0</span></td>
<td> </td>
<?php if ( $flag_tva=='Y' ) : ?>
<td class="num visible_gt800"> <span id="tva">0.0</span> </td>
<td class="num"> <span id="tvac" >0.0</span> </td>
<?php endif; ?>
</tr>
</tfoot>
2015-09-27 00:35:53 +02:00
</table>
<?php echo HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"'); ?>
2015-09-27 00:35:53 +02:00
2015-09-27 00:35:53 +02:00