diff --git a/include/template/letter_all.php b/include/template/letter_all.php index 7c471b184..d8fe411b6 100644 --- a/include/template/letter_all.php +++ b/include/template/letter_all.php @@ -1,7 +1,7 @@ ".$operation->get_internal()." [ $l_amount € ]"; }//for }// if ( $a != null ) { +// compute amount +$amount_deb+=($this->content[$i]['j_debit']=='t')?$this->content[$i]['j_montant']:0; +$amount_cred+=($this->content[$i]['j_debit']=='f')?$this->content[$i]['j_montant']:0; ?> @@ -86,3 +89,12 @@ $r=sprintf(' Solde débit : +

Solde crédit : + 0 ) : +?> +

Solde débiteur : + +

Solde créditeur : +