From 19decf9964094ea8d13217a6f6745e4589db1ca2 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 13 Aug 2013 02:00:29 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20#0000873:=20Si=20achat=20utilisant=20le?= =?UTF-8?q?=20poste=20comptable=20dans=20DEP=5FPRIV=20alors=20le=20mettre?= =?UTF-8?q?=20en=20d=C3=A9pense=20privee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/upgrade.sql | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sql/upgrade.sql b/sql/upgrade.sql index d951bd7fb..a7acc7e90 100644 --- a/sql/upgrade.sql +++ b/sql/upgrade.sql @@ -22,10 +22,10 @@ begin fiche_detail where ad_id=23 and ad_value=upper(trim(p_fiche)); select ad_value into fid_good_account from fiche_detail where ad_id=5 and f_id=fid_good; - if account_priv = fid_good_account then + if strpos( fid_good_account , account_priv ) = 1 then p_dep_priv=p_price; end if; - + insert into quant_purchase (qp_internal, j_id, @@ -59,6 +59,7 @@ end; $BODY$ LANGUAGE plpgsql; +-- ajout code manquant dans parm_code create or replace function add_parm_code() returns void as $fct$ declare @@ -75,3 +76,10 @@ begin end; $fct$ language plpgsql; + +select add_parm_code(); + +drop function add_parm_code(); + +update parm_code set p_value='67' where p_value='6740' and p_code='DNA'; +