diff --git a/html/admin/sql/dossier1/schema.sql b/html/admin/sql/dossier1/schema.sql
index 80aa47d5a..e973683c1 100644
--- a/html/admin/sql/dossier1/schema.sql
+++ b/html/admin/sql/dossier1/schema.sql
@@ -78,7 +78,7 @@ begin
nParent:=account_parent(p_account);
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent)
values (p_account,sName,nParent);
- attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
+ perform attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
end if;
else
@@ -175,7 +175,7 @@ end;
$$
LANGUAGE plpgsql;
ALTER FUNCTION public.attribut_insert(p_f_id integer, p_ad_id integer, p_value character varying) OWNER TO phpcompta;
-CREATE FUNCTION card_class_base(p_f_id integer) RETURNS poste_comptable
+CREATE FUNCTION card_class_base(p_f_id integer) RETURNS fiche_def.fd_class_base%type
AS $$
declare
n_poste fiche_def.fd_class_base%type;
@@ -185,7 +185,7 @@ begin
if not FOUND then
raise exception 'Invalid fiche card_class_base(%)',p_f_id;
end if;
-return;
+return nposte;
end;
$$
LANGUAGE plpgsql;
diff --git a/html/admin/sql/mod1/schema.sql b/html/admin/sql/mod1/schema.sql
index 9fe4e362f..65fac8a61 100644
--- a/html/admin/sql/mod1/schema.sql
+++ b/html/admin/sql/mod1/schema.sql
@@ -122,7 +122,7 @@ begin
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent)
values (p_account,sName,nParent);
-- insert as card's attribute
- attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
+ perform attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
end if;
else
@@ -265,7 +265,7 @@ $$
-- Name: card_class_base(integer); Type: FUNCTION; Schema: public; Owner: phpcompta
--
-CREATE FUNCTION card_class_base(p_f_id integer) RETURNS poste_comptable
+CREATE FUNCTION card_class_base(p_f_id integer) RETURNS fiche_def.fd_class_base%type
AS $$
declare
@@ -277,7 +277,7 @@ begin
if not FOUND then
raise exception 'Invalid fiche card_class_base(%)',p_f_id;
end if;
-return;
+return nposte;
end;
$$
LANGUAGE plpgsql;