phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5346 - phpcompta/trunk/sql


From: phpcompta-dev
Subject: [Phpcompta-dev] r5346 - phpcompta/trunk/sql
Date: Tue, 13 Aug 2013 03:34:46 +0200 (CEST)

Author: danydb
Date: 2013-08-13 03:34:46 +0200 (Tue, 13 Aug 2013)
New Revision: 5346

Modified:
   phpcompta/trunk/sql/upgrade.sql
Log:
Mise ?\195?\160 jour mod1 : parm_code manquant par rapport ?\195?\160 la 
Belgique

Modified: phpcompta/trunk/sql/upgrade.sql
===================================================================
--- phpcompta/trunk/sql/upgrade.sql     2013-08-13 01:14:15 UTC (rev 5345)
+++ phpcompta/trunk/sql/upgrade.sql     2013-08-13 01:34:46 UTC (rev 5346)
@@ -59,5 +59,19 @@
  $BODY$
   LANGUAGE plpgsql;
 
-
-
+create or replace function add_parm_code() returns void as
+$fct$
+declare
+    country_code text;
+begin 
+    select pr_value into country_code from parameter where pr_id='MY_COUNTRY';
+    if country_code='FR' then
+        insert into parm_code (p_code,p_comment,p_value) values 
('DNA','Dépense non déductible','67');
+        insert into parm_code  (p_code,p_comment,p_value) values 
('TVA_DNA','TVA non déductible','');
+        insert into parm_code  (p_code,p_comment,p_value) values 
('TVA_DED_IMPOT','TVA déductible à l''impôt','');
+        insert into parm_code  (p_code,p_comment,p_value) values 
('COMPTE_COURANT','Poste comptable pour le compte courant','');
+        insert into parm_code  (p_code,p_comment,p_value) values 
('COMPTE_TVA','TVA à payer ou à recevoir','');
+     end if;
+end;
+$fct$
+language plpgsql;



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

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