phpcompta-contrib
[Top][All Lists]
Advanced

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

Re: [Phpcompta-contrib] Re: [iso-8859-15] Problème avec impression compt


From: Alain Vaugham
Subject: Re: [Phpcompta-contrib] Re: [iso-8859-15] Problème avec impression compte de résultat
Date: Mon, 29 Oct 2007 10:42:16 +0100
User-agent: KMail/1.7.2

Le Dimanche 28 Octobre 2007 14:33, Dany De Bontridder a écrit :
| On Sunday 28 October 2007 10:37:36 Alain Vaugham wrote:
| > Le voici modifié en conséquence :
| > http://www.vaugham.eu/fr_plan_abrege_perso_cr1000.form
| >
| > Je pense que pour le bilan tu as du aussi avoir le même problème de
| > variables non déclarées.
| > Je vais donc le regarder et le modifier si nécesssaire.
| > Puis je vais installer la version 3.0 pour pouvoir tester le compte de
| > résultat et le bilan.
|
| Ok le fichier fonctionne c'est parfait, pour le bilan, il fonctionne aussi
| maintenant que j'ai réarrangé l'ordre des déclarations et les
| commentaires ;-)
Il y avait ce post aussi, tu en a tenu compte?
http://lists.gnu.org/archive/html/phpcompta-contrib/2007-10/msg00034.html

| Donc dès que j'ai ton feu vert, la version 3.0 sera publié,

J'ai toujours des messages d'erreur pour installer la version 3.0.

Dans un  courrier précédent tu as conseillé ceci :
| tu n'as qu'à changer dans setenv.sh le domain et faire
| pareille dans phpcompta/include/constant.php.

Dans setenv.sh j'ai ça :
export DOMAIN=testing
Je met quoi à la place?

dans phpcompta/include/constant.php j'ai :
define ("domaine","");
Je met quoi à la place?

Voici les messages d'erreurs avec la 3.0rc1.
Il y est dit que j'utilise un domaine mais je ne vois pas le nom du domaine.

Info
Vous utilisez le domaine
Php setting
magic_quotes_gpc: Ok
magic_quotes_runtime: Ok
include_path : ok (.:../include:addon)

php.ini est bien configuré
Database version
string(5) "8.1.9"
Database Setting

La base de données est bien configurée
Connect to database success
Congratulation : Test successfull
Patching databases
Patching vafac
Patching vafac from the version 31 to 32 begin ;

CREATE or replace FUNCTION insert_quant_sold(
found a function p_internal text,
p_jid numeric,
p_fiche character varying,
p_quant numeric,
p_price numeric,
p_vat numeric,
p_vat_code integer,
p_client character varying)
RETURNS void
AS $$
declare
fid_client integer;
fid_good integer;
begin

select f_id into fid_client from
attr_value join jnt_fic_att_value using (jft_id) where ad_id=23 and 
av_text=upper(p_client);
select f_id into fid_good from
attr_value join jnt_fic_att_value using (jft_id) where ad_id=23 and 
av_text=upper(p_fiche);
insert into quant_sold
(qs_internal,j_id,qs_fiche,qs_quantite,qs_price,qs_vat,qs_vat_code,qs_client,qs_valid)
values
(p_internal,p_jid,fid_good,p_quant,p_price,p_vat,p_vat_code,fid_client,'Y');
return;
end;
$$
LANGUAGE plpgsql;



CREATE or REPLACE FUNCTION account_update(p_f_id integer, p_account 
poste_comptable) RETURNS integer
found a function AS $$
declare
nMax fiche.f_id%type;
nCount integer;
nParent tmp_pcmn.pcm_val_parent%type;
sName varchar;
nJft_id attr_value.jft_id%type;
begin

if length(trim(p_account)) != 0 then
select count(*) into nCount from tmp_pcmn where pcm_val=p_account;
if nCount = 0 then
select av_text into sName from
attr_value join jnt_fic_att_value using (jft_id)
where
ad_id=1 and f_id=p_f_id;
nParent:=account_parent(p_account);
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values 
(p_account,sName,nParent);
end if;
end if;
select jft_id into njft_id from jnt_fic_att_value where f_id=p_f_id and 
ad_id=5;
update attr_value set av_text=p_account where jft_id=njft_id;

return njft_id;
end;
$$
LANGUAGE plpgsql;



CREATE TABLE quant_purchase (
qp_id integer DEFAULT nextval(('s_quantity'::text)::regclass) NOT NULL,
qp_internal text NOT NULL,
j_id integer not null,
qp_fiche integer NOT NULL,
qp_quantite numeric(20,4) NOT NULL,
qp_price numeric(20,4),
qp_vat numeric(20,4) default 0.0,
qp_vat_code integer,
qp_nd_amount numeric(20,4) default 0.0,
qp_nd_tva numeric(20,4) default 0.0,
qp_nd_tva_recup numeric(20,4) default 0.0,
qp_supplier integer NOT NULL,
qp_valid char(1) default 'Y' not null
);
ALTER TABLE ONLY quant_purchase
ADD CONSTRAINT qp_id_pk PRIMARY KEY (qp_id);

ALTER TABLE ONLY quant_purchase
ADD CONSTRAINT quant_purchase_j_id_fkey FOREIGN KEY (j_id) REFERENCES 
jrnx(j_id) ON UPDATE CASCADE ON DELETE CASCADE;

Warning: pg_query() [function.pg-query]: Query failed: ERREUR: il n'existe 
aucune contrainte correspondant aux clés données pour la table référencée 
«jrnx» in /var/www/phpcompta/include/postgres.php on line 136

Fatal error: Uncaught exception 'Exception' with message 'SQL ERROR ::: ALTER 
TABLE ONLY quant_purchase ADD CONSTRAINT quant_purchase_j_id_fkey FOREIGN KEY 
(j_id) REFERENCES jrnx(j_id) ON UPDATE CASCADE ON DELETE CASCADE ' 
in /var/www/phpcompta/include/postgres.php:138 Stack trace: 
#0 /var/www/phpcompta/html/admin/setup.php(147): ExecSql(Resource id #19, 
'?ALTER TABLE ON...', false) #1 /var/www/phpcompta/html/admin/setup.php(176): 
ExecuteScript(Resource id #19, 'sql/patch/upgra...') 
#2 /var/www/phpcompta/html/admin/setup.php(463): apply_patch(Resource id #19, 
'vafac') #3 {main} thrown in /var/www/phpcompta/include/postgres.php on line 
138

Attachment: pgpOltKEaIaKP.pgp
Description: PGP signature


reply via email to

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