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

Diff of /phpcompta/include/poste.php

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

revision 1.6 by sparkyx, Wed May 4 21:18:20 2005 UTC revision 1.7 by sparkyx, Thu Jun 30 19:25:44 2005 UTC
# Line 108  function PosteForm($p_cn) { Line 108  function PosteForm($p_cn) {
108   * parm :   * parm :
109   *      -  connection   *      -  connection
110   *      - account   *      - account
111     *      - cond
112   * gen :   * gen :
113   *      - none   *      - none
114   * return:   * return:
115   *      - balance of the account   *      - balance of the account
116   *   *
117   */   */
118  function GetSolde($p_cn,$p_account) {  function GetSolde($p_cn,$p_account,$p_cond="") {
119    $Res=ExecSql($p_cn,"select j_poste,sum(deb) as sum_deb, sum(cred) as sum_cred from    $Res=ExecSql($p_cn,"select j_poste,sum(deb) as sum_deb, sum(cred) as sum_cred from
120            ( select j_poste,            ( select j_poste,
121               case when j_debit='t' then j_montant else 0 end as deb,               case when j_debit='t' then j_montant else 0 end as deb,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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