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

Diff of /phpcompta/include/user_common.php

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

revision 1.33 by stanpinte, Sun Mar 6 14:05:04 2005 UTC revision 1.34 by sparkyx, Sun Mar 6 16:00:28 2005 UTC
# Line 37  include_once("postgres.php"); Line 37  include_once("postgres.php");
37    
38  function GetTvaRate($p_cn,$p_tva_id) {  function GetTvaRate($p_cn,$p_tva_id) {
39    if (strlen(trim($p_tva_id))==0) return 0;    if (strlen(trim($p_tva_id))==0) return 0;
40  $Res=pg_exec($p_cn,"select tva_id,tva_rate,tva_label from tva_rate where tva_id=".$p_tva_id);  $Res=ExecSql($p_cn,"select tva_id,tva_rate,tva_label from tva_rate where tva_id=".$p_tva_id);
41  if (pg_NumRows($Res) == 0 ) return null;  if (pg_NumRows($Res) == 0 ) return null;
42    
43  $r=pg_fetch_array($Res,0);  $r=pg_fetch_array($Res,0);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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