[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-support] Export PDF
From: |
Olivier DZWONIARKIEWICZ [Talessa] |
Subject: |
[Phpcompta-support] Export PDF |
Date: |
Wed, 5 Oct 2005 17:56:19 +0200 |
User-agent: |
KMail/1.8.90 |
Bonjour,
J'ai installé PHPCompta et j'en suis très content. J'ai d'ailleurs entrepris
de développer des modules d'import CSV que je soumettrai prochainement à la
liste contrib.
Cependant, ce soir en essayant de générer un export PDF, j'ai remarqué une
erreur. Je me suis plongé dans le code pendant 2 heures sans parvenir à voir
l'erreur... Je vois bien où elle se trouve, mais je n'arrive pas à comprendre
comment elle peut se produire. La variable est vide, alors qu'elle ne devrait
pas l'être.
J'ai été tester sur le site http://www.phpcompta.org, j'ai fait exactement les
mêmes opérations, mais avec d'autres données, et j'ai eu la même erreur.
Soit il y a une erreur dans le code, soit je m'y prends mal pour générer les
PDF :)
Voici comment je procède :
Impression -> Poste
Choisissez le poste -> Fournisseur A
Depuis -> 01-01-2005
jusqu'à 31-01-2005
je clique sur Impression
Je clique sur Export PDF
J'obtiens un fichier pdf, qui, quand je l'édite avec mon éditeur favori
contient ca :
<br />
<b>Warning</b>: pg_exec(): Query failed: ERROR: syntax error at end of input
at character 44 in <b>/v
ar/www/phpcompta.1.2.1/include/class_poste.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>: pg_numrows(): supplied argument is not a valid PostgreSQL
result resource in <b>/var/w
ww/phpcompta.1.2.1/include/class_poste.php</b> on line <b>78</b><br />
<br />
<b>Warning</b>: pg_query(): Query failed: ERROR: syntax error at or near
"and" at character
403 in <b>/var/www/phpcompta.1.2.1/include/postgres.php</b> on line
<b>104</b><br />
Operation cancelled due to error : select to_char(j_date,'DD.MM.YYYY') as
j_date,case when j_debit='t'
then to_char(j_montant,'999999999.99') else ' ' end as deb_montant,case when
j_debit='f' then to_char(
j_montant,'999999999.99') else ' ' end as cred_montant, jr_comment as
description,jrn_def_name as jrn_n
ame,j_debit, jr_internal from jrnx left join jrn_def on jrn_def_id=j_jrn_def
left join jrn on jr_grpt
_id=j_grpt where j_poste= and jr_tech_per = order by j_date::date
Une idée ? :)
--
Olivier Dzwoniarkiewicz
Administrateur système et réseaux
- [Phpcompta-support] Export PDF,
Olivier DZWONIARKIEWICZ [Talessa] <=