improve translation
Show sum
This commit is contained in:
parent
593e7e0c7d
commit
69b6bd780c
2 changed files with 11 additions and 7 deletions
|
|
@ -440,7 +440,9 @@ class Follow_Up
|
|||
$aCard=array();
|
||||
/* create aArticle for the detail section */
|
||||
$article_count=(count($this->aAction_detail)==0)?MAX_ARTICLE:count($this->aAction_detail);
|
||||
|
||||
/* Compute total */
|
||||
$tot_item=0;
|
||||
$tot_vat=0;
|
||||
for ($i=0; $i<$article_count; $i++)
|
||||
{
|
||||
/* fid = Icard */
|
||||
|
|
@ -514,12 +516,14 @@ class Follow_Up
|
|||
$num->javascript=" onchange=\"compute_ledger('".$i." ')\"";
|
||||
$num->size=8;
|
||||
$aArticle[$i]['tva']=$num->input();
|
||||
$tot_vat=bcadd($tot_vat,$num->value);
|
||||
|
||||
$num->name="tvac_march".$i;
|
||||
$num->id="tvac_march".$i;
|
||||
$num->value=($tmp_ad)?$tmp_ad->get_parameter('total'):0;
|
||||
$num->size=8;
|
||||
$aArticle[$i]['tvac']=$num->input();
|
||||
$tot_item=bcadd($tot_item,$num->value);
|
||||
|
||||
$aArticle[$i]['hidden_htva']=HtmlInput::hidden('htva_march'.$i, 0);
|
||||
$aArticle[$i]['hidden_tva']=HtmlInput::hidden('tva_march'.$i, 0);
|
||||
|
|
|
|||
|
|
@ -302,8 +302,8 @@ echo '</span>';
|
|||
</div>
|
||||
</div>
|
||||
<?php if ( $p_view !='READ' ) :?>
|
||||
<input type='button' class="button" class="noprint" value='Montrer articles' id="toggleButton" onclick='toggleShowDetail()'>
|
||||
<input type='button' class="button" class="noprint" value='Générer' id="toggleButtonGenerate" onclick="$('div_generate_document').show()">
|
||||
<input type='button' class="button" class="noprint" value="<?php echo _('Montrer articles');?>" id="toggleButton" onclick='toggleShowDetail()'>
|
||||
<input type='button' class="button" class="noprint" value="<?php echo _('Générer')?>" id="toggleButtonGenerate" onclick="$('div_generate_document').show()">
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
/**
|
||||
|
|
@ -378,10 +378,10 @@ function toggleShowDetail() {
|
|||
<?php if ( $show_row != 0 ): ?>
|
||||
<div>
|
||||
|
||||
<div style=" float:right;margin-right: 2px"" id="sum">
|
||||
<br><span style="text-align: right;" class="highlight" id="htva">0.0</span>
|
||||
<br><span style="text-align: right" class="highlight" id="tva">0.0</span>
|
||||
<br><span style="text-align: right" class="highlight" id="tvac">0.0</span>
|
||||
<div style=" float:right;margin-right: 2px" id="sum">
|
||||
<br><span style="text-align: right;" class="highlight" id="htva"><?php echo $tot_item?></span>
|
||||
<br><span style="text-align: right" class="highlight" id="tva"><?php echo $tot_vat?></span>
|
||||
<br><span style="text-align: right" class="highlight" id="tvac"><?php echo bcadd($tot_vat,$tot_item)?></span>
|
||||
</div>
|
||||
|
||||
<div style="float:right;margin-right: 230px" >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue