/[phpcompta]/phpcompta/include/impress_inc.php
ViewVC logotype

Diff of /phpcompta/include/impress_inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by stanpinte, Thu Apr 21 17:03:27 2005 UTC revision 1.16 by sparkyx, Wed Jun 22 20:28:07 2005 UTC
# Line 744  function ParseFormula($p_cn,$p_label,$p_ Line 744  function ParseFormula($p_cn,$p_label,$p_
744    
745    if ( $l_credit==$l_debit) {    if ( $l_credit==$l_debit) {
746      $aret=array('desc' => $p_label,      $aret=array('desc' => $p_label,
747                  'montant' => '0');                  'montant' => '0',
748                    'cmontant'=>0);
749    }    }
750    if ( $l_credit < $l_debit) {    if ( $l_credit < $l_debit) {
751      $l2=sprintf("% .2f",$l_debit-$l_credit);      $l2=sprintf("% .2f",$l_debit-$l_credit);
752      $aret=array('desc' => $p_label,      $aret=array('desc' => $p_label,
753                  'montant' => $l2);                  'montant' => $l2,
754                    'cmontant'=>$l2);
755    }    }
756    if ( $l_credit>$l_debit) {    if ( $l_credit>$l_debit) {
757      $l2=sprintf("(% .2f)",$l_credit-$l_debit);      $l2=sprintf("(% .2f)",$l_credit-$l_debit);
758      $aret=array('desc' => $p_label,      $aret=array('desc' => $p_label,
759                  'montant' => $l2);                  'montant' => $l2,
760                    'cmontant'=> $l_debit-$l_credit);
761    
762    }    }
763    return $aret;    return $aret;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26