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>
|
2018-04-13 18:58:28 +02:00
|
|
|
<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>
|
2018-04-13 18:58:28 +02:00
|
|
|
<?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>
|
2018-04-13 18:58:28 +02:00
|
|
|
<table id="sold_item" >
|
2015-09-27 00:35:53 +02:00
|
|
|
<tr>
|
2018-04-13 18:58:28 +02:00
|
|
|
<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') : ?>
|
2018-04-13 18:58:28 +02:00
|
|
|
<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>
|
2018-04-13 18:58:28 +02:00
|
|
|
<th class="visible_gt800" ><?php echo _('Total HTVA')?></th>
|
2015-09-27 00:35:53 +02:00
|
|
|
<th><?php echo _('tva')?></th>
|
2018-04-13 18:58:28 +02:00
|
|
|
<th class="visible_gt800"><?php echo _('tot.tva')?></th>
|
2015-09-27 00:35:53 +02:00
|
|
|
<th><?php echo _('tvac')?></th>
|
|
|
|
<?php else: ?>
|
2018-04-13 18:58:28 +02:00
|
|
|
<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>';
|
2018-04-13 18:58:28 +02:00
|
|
|
// echo "<td>";
|
2015-09-27 00:35:53 +02:00
|
|
|
echo $item['quick_code'];
|
2018-04-13 18:58:28 +02:00
|
|
|
// echo "</td>";
|
|
|
|
echo '<td>'.$item['bt'].$item['card_add'].'</td>';
|
2015-09-27 00:35:53 +02:00
|
|
|
?>
|
2018-04-13 18:58:28 +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' ]);
|
2018-04-13 18:58:28 +02:00
|
|
|
echo td($item['htva'],' class="visible_gt800" ');
|
2015-09-27 00:35:53 +02:00
|
|
|
if ($flag_tva=='Y') {
|
|
|
|
echo td($item['tva']);
|
2018-04-13 18:58:28 +02:00
|
|
|
echo td($item['amount_tva'].$item['hidden'],' class="visible_gt800" ');
|
2015-09-27 00:35:53 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
echo td($item['tvac']);
|
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2018-04-13 18:58:28 +02:00
|
|
|
<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>
|
|
|
|
|
2018-04-13 18:58:28 +02:00
|
|
|
<?php echo HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"'); ?>
|
2015-09-27 00:35:53 +02:00
|
|
|
|
2018-04-13 18:58:28 +02:00
|
|
|
|
2015-09-27 00:35:53 +02:00
|
|
|
|
|
|
|
|