phpcompta-contrib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpcompta-contrib] léger problème


From: Stan Pinte
Subject: Re: [Phpcompta-contrib] léger problème
Date: Sat, 03 Dec 2005 15:44:53 +0100
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stan Pinte wrote:

> après une entrée dans le journal des achats, j'ai ceci:
>
> *Notice*: Undefined offset: 1 in *c:\program
> files\easyphp1-7\www\phpcompta\include\user_common.php* on line
> *126*

le problème est ici:

function GetTvaPoste($p_cn,$p_tva_id,$p_cred) {
    $Res=ExecSql($p_cn,"select tva_poste from tva_rate where
tva_id=$p_tva_id");
    if ( pg_NumRows($Res) == 0 ) return null;
    $a=pg_fetch_array($Res,0);
 -->    list ($deb,$cred)=split(",",$a['tva_poste']);

je suppose que je dois rajouter des postes de TVA suppl. dans ma table
des taux de tva...en fait cela arrive quand j'entre des achats ou la
TVA est non-récupérable (je mets alors 0%).

Stan.

    if ( $p_cred=='c' ) return $cred;
    if ($p_cred=='d') return $deb;
    echo_error ("Invalid $p_cred in GetTvaRate");
    return null;
}

>
>
> Recorded
>
> Date : 19.10.2005


_______________________________________________
Phpcompta-contrib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/phpcompta-contrib


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDka9l/PmuubxPWAIRAlW/AJ4stFiin5bl9pOkowo8sSARsH9KWACcDbBZ
4sTgFo01F8qALkpQeMDFzGY=
=rlc3
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]