altocompta/include/template/form_ledger_detail.php
Dany De Bontridder 82a1bf9bb8 Merged revisions 2868-2880 via svnmerge from
file:///home/developper/svn/phpcompta/branches/rel500

........
  r2869 | danydb | 2010-01-14 14:41:25 +0100 (Thu, 14 Jan 2010) | 1 line
  
  Bug :  fiche_attribut_synchro is really low, solution is to create 2 indexes
........
  r2874 | danydb | 2010-01-15 15:52:38 +0100 (Fri, 15 Jan 2010) | 3 lines
  
  The extra info are now available for ledger purchase, opportunity to clean
  code
........
  r2875 | danydb | 2010-01-15 19:51:33 +0100 (Fri, 15 Jan 2010) | 2 lines
  
  Fix bug : in rapport, the from doesn't work, the result is always 0
........
  r2876 | danydb | 2010-01-16 17:17:50 +0100 (Sat, 16 Jan 2010) | 1 line
  
  For Comptabilité->ACH and Comptabilité->VEN add shortcut to printing and customer/supplier
........
  r2877 | danydb | 2010-01-16 17:30:56 +0100 (Sat, 16 Jan 2010) | 2 lines
  
  Action : add search by type of documents
........
  r2878 | danydb | 2010-01-17 00:31:03 +0100 (Sun, 17 Jan 2010) | 1 line
  
  Fix bug : cannot choose a tva rate
........
  r2879 | danydb | 2010-01-20 22:37:11 +0100 (Wed, 20 Jan 2010) | 6 lines
  
  Action
  ======
  add a button for adding a card there is no filter on the category
  You can add whatever you want
........
  r2880 | danydb | 2010-01-21 16:10:57 +0100 (Thu, 21 Jan 2010) | 1 line
  
  Correct stylesheet : todo list 
........
2010-01-21 15:13:17 +00:00

90 lines
2.1 KiB
PHP

<?php
echo JS_INFOBULLE;
echo JS_LEDGER;
echo JS_SHOW_TVA;
echo JS_TVA;
echo JS_AJAX_FICHE;
?>
<fieldset>
<legend><?=$f_legend ?>
</legend>
<?=_('Date').':'?> <?=$f_date ?> <?=_('Echeance')?> : <?=$f_echeance?>
<?=$f_periode?><br>
<?=_('Journal')?> <?=$f_jrn?><br><hr>
<?=$f_type?><?=$f_client_qcode?><?=$f_client_bt?> <?=$f_client?><br>
<?=_('Description')?> <?=$f_desc?>
<?=_('Num Pj')?> <?=$f_pj?><br>
<?=$str_add_button?>
</fieldset>
<fieldset>
<legend><?=$f_legend_detail?></legend>
<table id="sold_item" width="100%" border="0">
<tr>
<th colspan="2">Code <?=HtmlInput::infobulle(0)?></th>
<th><?=_('Dénomination')?></th>
<th><?=_('prix/unité htva')?><?=HtmlInput::infobulle(6)?></th>
<th><?=_('quantité')?></th>
<th><?=_('Total HTVA')?></th>
<? if ($flag_tva =='Y') : ?>
<th><?=_('tva')?></th>
<th><?=_('tot.tva')?></th>
<th><?=_('tvac')?></th>
<? endif;?>
</tr>
<? foreach ($array as $item) {
echo '<tr>';
echo '<td>'.$item['bt'].'</td>';
echo $item['quick_code'];
?>
<td style="border-bottom: 1px dotted grey; width: 75%;"><?=$item['denom'] ?></td>
<?
echo td($item['pu']);
echo td($item['quantity' ]);
echo td($item['htva']);
if ($flag_tva=='Y') {
echo td($item['tva']);
echo td($item['amount_tva'].$item['hidden']);
}
echo td($item['tvac']);
echo '</tr>';
}
?>
</table>
<div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
<?=HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"'); ?>
</div>
<div style="position:float;float:right;text-align:left;font-size:1.2em;font-weight:bold;color:blue" id="sum">
<br><span id="htva">0.0</span>
<?php
if ( $flag_tva=='Y' ) : ?>
<br><span id="tva">0.0</span>
<br><span id="tvac">0.0</span>
<?php endif; ?>
</div>
<div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
<?php
if ( $flag_tva =='Y') :
?>
<br><?=_('Total HTVA')?>
<br><?=_('Total TVA')?>
<br><?=_('Total TVAC')?>
<?php else: ?>
<br><?=_('Total')?>
<?php endif; ?>
</div>
</fieldset>