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); |