From 47aa10773b7b8e7a94138ee792d02cb509e6e540 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 28 Apr 2010 21:25:29 +0000 Subject: [PATCH] lettering : add saldo of accounting / card --- include/template/letter_all.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 : +