From afe4aa5092610b2e9618fb669f2b7dbe50d12792 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 6 Apr 2004 16:02:28 +0000 Subject: [PATCH] Fix problem with card update (account) --- html/fiche_search.php | 4 +- include/fiche_inc.php | 101 +++++++++--- include/form_input.php | 32 +++- include/user_common.php | 15 +- sql/account_repository.sql | 71 +++++---- sql/demo.sql | 318 ++++++++++++++++++------------------ sql/mod-be.sql | 319 ++++++++++++++++++------------------- 7 files changed, 472 insertions(+), 388 deletions(-) diff --git a/html/fiche_search.php b/html/fiche_search.php index 269ecc5c2..9d4be9fc9 100644 --- a/html/fiche_search.php +++ b/html/fiche_search.php @@ -135,12 +135,12 @@ if ( isset ( $_POST['search']) ) { $class="even"; else $class="odd"; - + $text=FormatString($row['vw_name']); $r.=""; $r.=sprintf ('', $e_name, $row['f_id'] , - $row['vw_name'], + $text, $row['vw_sell'], $row['vw_buy'], $row['tva_id'], diff --git a/include/fiche_inc.php b/include/fiche_inc.php index 71178e0a5..af24dde2b 100644 --- a/include/fiche_inc.php +++ b/include/fiche_inc.php @@ -65,6 +65,7 @@ function AddFiche($p_cn,$p_type,$p_array) { // First Get the attr of the fiche $field=Get_attr_def($p_cn,$p_fd_id); + $flag=1; // Create the Fiche $Sql="insert into fiche (fd_id) values (".$p_fd_id.")"; @@ -76,8 +77,64 @@ function AddFiche($p_cn,$p_type,$p_array) { // Should we Create accounts for each cards $create=GetCreateAccount($p_cn,$p_fd_id); + // Is a account given ? + for ( $i = 0; $i < $p_inc;$i++) { + //Except for the class base + if ( ${"p_ad_id$i"} == ATTR_DEF_ACCOUNT ) { + if (strlen (trim(${"p_av_text$i"})) == 0 or + isNumber(${"p_av_text$i"}) == 0 ) + { + break; + } + // if account already exist do nothing in tmp_pcmn otherwise add it + if (CountSql($p_cn,"select pcm_val from tmp_pcmn where pcm_val=".${"p_av_text$i"}) == 0 ) + { + $len=strlen(${"p_av_text$i"})-1; + // Mother account + $p_parent=substr(${"p_av_text$i"},0,$len); + while (CountSql($p_cn,"select pcm_val from tmp_pcmn where pcm_val=$p_parent") == 0 and + $len > 0 ) { + $len--; + $p_parent=substr(${"p_av_text$i"},0,$len); + } + // If no parent found + if ( $len <= 0 ) { + echo_error ("No parent found"); + exit("No parent found for ".${"p_av_text$i"}); + + } // if $len == 0 + $lib=FormatString($p_av_text0); + $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) + values (%s,'%s',%d)", + ${"p_av_text$i"}, + $lib, + $p_parent); + + // Add if into tmp_pcmn + $Res=ExecSql($p_cn,$Sql); + } + // Add it the jnt table + // 5 is always for the account post + $Sql=sprintf("insert into jnt_fic_att_value (f_id,ad_id) values (%d,%d)", + $l_f_id,ATTR_DEF_ACCOUNT); + $Res=ExecSql($p_cn,$Sql); + + // Get the jft_id sequence (s_jnt_fic_att_value) + $l_jft_id=GetSequence($p_cn,'s_jnt_fic_att_value'); + + + // Add it the attr_value table + $Sql=sprintf("insert into attr_value(jft_id,av_text) values (%d,'%s')", + $l_jft_id,${"p_av_text$i"}); + $Res=ExecSql($p_cn,$Sql); + // If create == 0 we don't create automatically an account + $create=0; + } + + } // for $i... + echo_debug ( " create = $create "); - if ( $create == 1) { + if ( $create == 1 ) { // We create an account for each // Get The Class Base $base=GetBaseFiche($p_cn,$p_type); @@ -87,10 +144,12 @@ function AddFiche($p_cn,$p_type,$p_array) { if ( $base !=null ) { // if the class base is not null, create it in the tmp_pcmn $num=GetNextFiche($p_cn,$base); + + $lib=FormatString($p_av_text0); $sql=sprintf("insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) values (%s,'%s',%d)", $num, - $p_av_text0, + $lib, $base); echo_debug($sql); $Res=ExecSql($p_cn,$sql); @@ -127,22 +186,26 @@ function AddFiche($p_cn,$p_type,$p_array) { // test the vat rate if ( ${"p_ad_id$i"} == ATTR_DEF_TVA ) { - // is a valid rate ? - if ( CountSql($p_cn,"select * from tva_rate where tva_id='".${"p_av_text$i"}."'") == 0 ) { - // the rate doesn't exist - ${"p_av_text$i"}=1; - // warning - echo_error('invalid rate') ; - echo ''; - - } + + } + }// if a rate is given } - + $text=FormatString(${"p_av_text$i"}); // Add it the attr_value table $Sql=sprintf("insert into attr_value(jft_id,av_text) values (%d,'%s')", - $l_jft_id,${"p_av_text$i"}); + $l_jft_id,$text); $Res=ExecSql($p_cn,$Sql); } @@ -478,9 +541,9 @@ function UpdateFiche($p_cn,$p_array) { $fd_ref=GetFicheDefRef($p_cn,$fiche); // Update all the others data for ( $i =0 ; $i < $max ; $i++) { - + $text=FormatString( ${"av_text$i"}); $sql=sprintf("update attr_value set av_text='%s' where jft_id=%d", - ${"av_text$i"}, + $text, ${"jft_id$i"}); echo_debug($sql); $Res=ExecSql($p_cn,$sql); @@ -514,9 +577,8 @@ function UpdateFiche($p_cn,$p_array) { // No change if the account is already used echo_error("Not possible to change the account, already used"); } else { - if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) ==1) { - $Res=ExecSql($p_cn,"update tmp_pcmn set pcm_val=$class_old where pcm_val=$class"); - } else // we have to insert + if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=".$class) ==0) + // we have to insert { // First we must use a parent $parent=GetParent($p_cn,$class); @@ -852,7 +914,8 @@ function Remove ($p_cn, $p_fid) { return; } else { // Remove in PCMN - ExecSql($p_cn,"delete from tmp_pcmn where pcm_val=".$class); + if ( trim(strlen($class)) != 0 and isNumber($class) == 1) + ExecSql($p_cn,"delete from tmp_pcmn where pcm_val=".$class); } } diff --git a/include/form_input.php b/include/form_input.php index 247242500..22327cb4d 100644 --- a/include/form_input.php +++ b/include/form_input.php @@ -855,7 +855,33 @@ function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p $r.=$p_submit; $r.=""; $r.=""; - //TODO if view only show total + //if view only show total + if ( $view_only==true) { + $total=0; + $r.=""; + $r.=""; + $r.=""; + for ( $i = 0; $i < $p_article;$i++) { + $march=${"e_march$i"}; + if ( isNumber($march) ==1 and + isFicheOfJrn($p_cn,$p_jrn,$march,'deb')){ + $a_fiche=GetFicheAttribut($p_cn, $march); + // compute some data + $tva=(isNumber($a_fiche['tva_rate']) == 0 )?0:$a_fiche['tva_rate']; + $total_row=${"e_march$i"."_buy"}*${"e_quant$i"}+${"e_march$i"."_buy"}*${"e_quant$i"}*$tva; + + $r.=""; + $r.=""; + // $r.=""; + $r.=""; + $total+=$total_row; + + } + } + $r.=""; + $r.="
Nomtotal
".$a_fiche['vw_name']."".$a_fiche['tva_label'].""; + $r.="
Total =".$total."
"; + } return $r; @@ -894,6 +920,7 @@ function RecordAchat($p_cn,$p_array,$p_user,$p_jrn) { foreach ( $p_array as $v => $e) { + echo_debug ("Record Achat $v ==> $e"); ${"$v"}=$e; } @@ -959,8 +986,9 @@ function RecordAchat($p_cn,$p_array,$p_user,$p_jrn) } } echo_debug("echeance = $e_ech"); + echo_debug("comment = $e_comment"); if ( ($amount+$sum_vat) != 0 ){ - if ( InsertJrn($p_cn,$e_date,$e_ech,$p_jrn,"",$amount+$sum_vat,$seq,$periode) == false ) { + if ( InsertJrn($p_cn,$e_date,$e_ech,$p_jrn,$e_comment,$amount+$sum_vat,$seq,$periode) == false ) { $Rollback($p_cn);exit("error __FILE__ __LINE__"); } // Set Internal code and Comment diff --git a/include/user_common.php b/include/user_common.php index d3ea1837b..02a586ad0 100644 --- a/include/user_common.php +++ b/include/user_common.php @@ -119,7 +119,7 @@ function GetTvaPoste($p_cn,$p_tva_id,$p_cred) { -/* function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode); +/* function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode ************************************************** * Purpose : Insert into the table Jrn * @@ -149,7 +149,6 @@ function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_g $debit=($debit=='false')?'true':'false'; } - $sql=sprintf("insert into jrnx (j_date,j_montant, j_poste,j_grpt, j_jrn_def,j_debit,j_tech_user,j_tech_per) values (to_date('%s','DD.MM.YYYY'),abs(%.2f),%d,%d,%d,%s,'%s',%d)", $p_date,round($p_amount,2),$p_poste,$p_grpt,$p_jrn,$debit,$p_user,$p_periode); @@ -159,7 +158,7 @@ function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_g return GetSequence($p_cn,'s_jrn_op'); } -/* function InsertJrn($p_cn,$p_date,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode); +/* function InsertJrn($p_cn,$p_date,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode ************************************************** * Purpose : Insert into the table Jrnx * @@ -170,6 +169,7 @@ function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_g * - $p_poste the account * - $p_amount amount to insert * - $p_periode the concerned periode + * - $p_comment comment * gen : * - none * return: @@ -179,7 +179,10 @@ function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_g function InsertJrn($p_cn,$p_date,$p_echeance,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode) { echo_debug ("InsertJrn param - p_date $p_date p_poste $p_comment p_amount $p_amount p_grpt = $p_grpt p_periode = $p_periode p_echeance = $p_echeance"); + p_date $p_date p_poste $p_comment p_amount $p_amount p_grpt = $p_grpt p_periode = $p_periode p_echeance = $p_echeance +comment = $p_comment"); + $p_comment=FormatString($p_comment); + if ( $p_echeance == "" or $p_echeance==null) { $p_echeance='null'; } else { @@ -228,7 +231,7 @@ function ListJrn($p_cn,$p_jrn,$p_where="",$p_array=null) from jrn join jrn_def on jrn_def_id=jr_def_id $p_where - order by jr_date"; + order by jr_date desc"; } if ( $p_array != null ) { // Construction Query @@ -269,7 +272,7 @@ function ListJrn($p_cn,$p_jrn,$p_where="",$p_array=null) if ( $l_s_internal != null ) { $sql.=$l_and." jr_internal='$l_s_internal' "; } - $sql.=" order by jr_date"; + $sql.=" order by jr_date desc"; }// p_array != null $Res=ExecSql($p_cn,$sql); diff --git a/sql/account_repository.sql b/sql/account_repository.sql index d86f1b724..ec65e30f3 100644 --- a/sql/account_repository.sql +++ b/sql/account_repository.sql @@ -7,7 +7,7 @@ SET search_path = public, pg_catalog; -- --- TOC entry 2 (OID 30851) +-- TOC entry 2 (OID 34004) -- Name: users_id; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -20,7 +20,7 @@ CREATE SEQUENCE users_id -- --- TOC entry 12 (OID 30853) +-- TOC entry 12 (OID 34006) -- Name: ac_users; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -39,7 +39,7 @@ CREATE TABLE ac_users ( -- --- TOC entry 13 (OID 30865) +-- TOC entry 13 (OID 34016) -- Name: ac_dossier; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -52,7 +52,7 @@ CREATE TABLE ac_dossier ( -- --- TOC entry 4 (OID 30872) +-- TOC entry 4 (OID 34023) -- Name: seq_jnt_use_dos; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -65,7 +65,7 @@ CREATE SEQUENCE seq_jnt_use_dos -- --- TOC entry 14 (OID 30874) +-- TOC entry 14 (OID 34025) -- Name: jnt_use_dos; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -77,7 +77,7 @@ CREATE TABLE jnt_use_dos ( -- --- TOC entry 15 (OID 30877) +-- TOC entry 15 (OID 34028) -- Name: version; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -87,7 +87,7 @@ CREATE TABLE "version" ( -- --- TOC entry 6 (OID 30879) +-- TOC entry 6 (OID 34030) -- Name: seq_priv_user; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -100,7 +100,7 @@ CREATE SEQUENCE seq_priv_user -- --- TOC entry 16 (OID 30881) +-- TOC entry 16 (OID 34032) -- Name: priv_user; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -112,7 +112,7 @@ CREATE TABLE priv_user ( -- --- TOC entry 17 (OID 30887) +-- TOC entry 17 (OID 34038) -- Name: theme; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -124,7 +124,7 @@ CREATE TABLE theme ( -- --- TOC entry 8 (OID 30892) +-- TOC entry 8 (OID 34043) -- Name: s_modid; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -137,7 +137,7 @@ CREATE SEQUENCE s_modid -- --- TOC entry 18 (OID 30894) +-- TOC entry 18 (OID 34045) -- Name: modeledef; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -149,7 +149,7 @@ CREATE TABLE modeledef ( -- --- TOC entry 10 (OID 33814) +-- TOC entry 10 (OID 34051) -- Name: dossier_id; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -162,7 +162,7 @@ CREATE SEQUENCE dossier_id -- --- Data for TOC entry 27 (OID 30853) +-- Data for TOC entry 27 (OID 34006) -- Name: ac_users; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -171,7 +171,7 @@ INSERT INTO ac_users VALUES (1, NULL, NULL, 'phpcompta', 1, 'b1cc88e1907cde80cb2 -- --- Data for TOC entry 28 (OID 30865) +-- Data for TOC entry 28 (OID 34016) -- Name: ac_dossier; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -179,7 +179,7 @@ INSERT INTO ac_dossier VALUES (1, 'Demo', 'Base de donn -- --- Data for TOC entry 29 (OID 30874) +-- Data for TOC entry 29 (OID 34025) -- Name: jnt_use_dos; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -193,10 +193,11 @@ INSERT INTO jnt_use_dos VALUES (15, 1, 8); INSERT INTO jnt_use_dos VALUES (16, 1, 9); INSERT INTO jnt_use_dos VALUES (17, 1, 10); INSERT INTO jnt_use_dos VALUES (18, 1, 11); +INSERT INTO jnt_use_dos VALUES (19, 1, 3); -- --- Data for TOC entry 30 (OID 30877) +-- Data for TOC entry 30 (OID 34028) -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -204,7 +205,7 @@ INSERT INTO "version" VALUES (3); -- --- Data for TOC entry 31 (OID 30881) +-- Data for TOC entry 31 (OID 34032) -- Name: priv_user; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -220,7 +221,7 @@ INSERT INTO priv_user VALUES (9, 13, 'W'); -- --- Data for TOC entry 32 (OID 30887) +-- Data for TOC entry 32 (OID 34038) -- Name: theme; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -231,7 +232,7 @@ INSERT INTO theme VALUES ('Light', 'style-light.css', NULL); -- --- Data for TOC entry 33 (OID 30894) +-- Data for TOC entry 33 (OID 34045) -- Name: modeledef; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -239,7 +240,7 @@ INSERT INTO modeledef VALUES (1, '(BE) Basique', 'Comptabilit -- --- TOC entry 24 (OID 30926) +-- TOC entry 24 (OID 34081) -- Name: fk_jnt_use_dos; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -247,7 +248,7 @@ CREATE INDEX fk_jnt_use_dos ON jnt_use_dos USING btree (use_id); -- --- TOC entry 23 (OID 30927) +-- TOC entry 23 (OID 34082) -- Name: fk_jnt_dos_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -255,7 +256,7 @@ CREATE INDEX fk_jnt_dos_id ON jnt_use_dos USING btree (dos_id); -- --- TOC entry 19 (OID 30928) +-- TOC entry 19 (OID 34083) -- Name: ac_users_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -264,7 +265,7 @@ ALTER TABLE ONLY ac_users -- --- TOC entry 20 (OID 30930) +-- TOC entry 20 (OID 34085) -- Name: ac_users_use_login_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -273,7 +274,7 @@ ALTER TABLE ONLY ac_users -- --- TOC entry 22 (OID 30932) +-- TOC entry 22 (OID 34087) -- Name: ac_dossier_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -282,7 +283,7 @@ ALTER TABLE ONLY ac_dossier -- --- TOC entry 21 (OID 30934) +-- TOC entry 21 (OID 34089) -- Name: ac_dossier_dos_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -291,7 +292,7 @@ ALTER TABLE ONLY ac_dossier -- --- TOC entry 25 (OID 30936) +-- TOC entry 25 (OID 34091) -- Name: jnt_use_dos_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -300,7 +301,7 @@ ALTER TABLE ONLY jnt_use_dos -- --- TOC entry 34 (OID 30938) +-- TOC entry 34 (OID 34093) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -309,7 +310,7 @@ ALTER TABLE ONLY jnt_use_dos -- --- TOC entry 26 (OID 30942) +-- TOC entry 26 (OID 34097) -- Name: modeledef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -318,7 +319,7 @@ ALTER TABLE ONLY modeledef -- --- TOC entry 3 (OID 30851) +-- TOC entry 3 (OID 34004) -- Name: users_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -326,15 +327,15 @@ SELECT pg_catalog.setval ('users_id', 4, true); -- --- TOC entry 5 (OID 30872) +-- TOC entry 5 (OID 34023) -- Name: seq_jnt_use_dos; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('seq_jnt_use_dos', 18, true); +SELECT pg_catalog.setval ('seq_jnt_use_dos', 19, true); -- --- TOC entry 7 (OID 30879) +-- TOC entry 7 (OID 34030) -- Name: seq_priv_user; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -342,7 +343,7 @@ SELECT pg_catalog.setval ('seq_priv_user', 9, true); -- --- TOC entry 9 (OID 30892) +-- TOC entry 9 (OID 34043) -- Name: s_modid; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -350,10 +351,10 @@ SELECT pg_catalog.setval ('s_modid', 1, false); -- --- TOC entry 11 (OID 33814) +-- TOC entry 11 (OID 34051) -- Name: dossier_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('dossier_id', 3, false); +SELECT pg_catalog.setval ('dossier_id', 3, true); diff --git a/sql/demo.sql b/sql/demo.sql index ce7ad5c04..60e533789 100644 --- a/sql/demo.sql +++ b/sql/demo.sql @@ -7,7 +7,7 @@ SET search_path = public, pg_catalog; -- --- TOC entry 44 (OID 32289) +-- TOC entry 44 (OID 35473) -- Name: tmp_pcmn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -20,7 +20,7 @@ CREATE TABLE tmp_pcmn ( -- --- TOC entry 45 (OID 32296) +-- TOC entry 45 (OID 35480) -- Name: version; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -30,7 +30,7 @@ CREATE TABLE "version" ( -- --- TOC entry 2 (OID 32298) +-- TOC entry 2 (OID 35482) -- Name: s_periode; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -43,7 +43,7 @@ CREATE SEQUENCE s_periode -- --- TOC entry 4 (OID 32300) +-- TOC entry 4 (OID 35484) -- Name: s_currency; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -56,7 +56,7 @@ CREATE SEQUENCE s_currency -- --- TOC entry 46 (OID 32302) +-- TOC entry 46 (OID 35486) -- Name: parm_money; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -68,7 +68,7 @@ CREATE TABLE parm_money ( -- --- TOC entry 47 (OID 32305) +-- TOC entry 47 (OID 35489) -- Name: parm_periode; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -82,7 +82,7 @@ CREATE TABLE parm_periode ( -- --- TOC entry 6 (OID 32313) +-- TOC entry 6 (OID 35497) -- Name: s_jrn_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -95,7 +95,7 @@ CREATE SEQUENCE s_jrn_def -- --- TOC entry 8 (OID 32315) +-- TOC entry 8 (OID 35499) -- Name: s_grpt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -108,7 +108,7 @@ CREATE SEQUENCE s_grpt -- --- TOC entry 10 (OID 32317) +-- TOC entry 10 (OID 35501) -- Name: s_jrn_op; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -121,7 +121,7 @@ CREATE SEQUENCE s_jrn_op -- --- TOC entry 12 (OID 32319) +-- TOC entry 12 (OID 35503) -- Name: s_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -134,7 +134,7 @@ CREATE SEQUENCE s_jrn -- --- TOC entry 48 (OID 32321) +-- TOC entry 48 (OID 35505) -- Name: jrn_type; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -145,7 +145,7 @@ CREATE TABLE jrn_type ( -- --- TOC entry 49 (OID 32326) +-- TOC entry 49 (OID 35510) -- Name: jrn_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -166,7 +166,7 @@ CREATE TABLE jrn_def ( -- --- TOC entry 14 (OID 32335) +-- TOC entry 14 (OID 35519) -- Name: s_jrnx; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -179,7 +179,7 @@ CREATE SEQUENCE s_jrnx -- --- TOC entry 50 (OID 32337) +-- TOC entry 50 (OID 35521) -- Name: jrnx; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -202,7 +202,7 @@ CREATE TABLE jrnx ( -- --- TOC entry 51 (OID 32348) +-- TOC entry 51 (OID 35532) -- Name: user_pref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -213,7 +213,7 @@ CREATE TABLE user_pref ( -- --- TOC entry 16 (OID 32353) +-- TOC entry 16 (OID 35537) -- Name: s_formdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -226,7 +226,7 @@ CREATE SEQUENCE s_formdef -- --- TOC entry 18 (OID 32355) +-- TOC entry 18 (OID 35539) -- Name: s_form; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -239,7 +239,7 @@ CREATE SEQUENCE s_form -- --- TOC entry 52 (OID 32357) +-- TOC entry 52 (OID 35541) -- Name: formdef; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -250,7 +250,7 @@ CREATE TABLE formdef ( -- --- TOC entry 53 (OID 32363) +-- TOC entry 53 (OID 35547) -- Name: form; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -264,7 +264,7 @@ CREATE TABLE form ( -- --- TOC entry 20 (OID 32369) +-- TOC entry 20 (OID 35553) -- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -277,7 +277,7 @@ CREATE SEQUENCE s_idef -- --- TOC entry 22 (OID 32371) +-- TOC entry 22 (OID 35555) -- Name: s_centralized; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -290,7 +290,7 @@ CREATE SEQUENCE s_centralized -- --- TOC entry 54 (OID 32373) +-- TOC entry 54 (OID 35557) -- Name: centralized; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -312,7 +312,7 @@ CREATE TABLE centralized ( -- --- TOC entry 24 (OID 32380) +-- TOC entry 24 (OID 35564) -- Name: s_user_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -325,7 +325,7 @@ CREATE SEQUENCE s_user_jrn -- --- TOC entry 26 (OID 32382) +-- TOC entry 26 (OID 35566) -- Name: s_user_act; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -338,7 +338,7 @@ CREATE SEQUENCE s_user_act -- --- TOC entry 55 (OID 32384) +-- TOC entry 55 (OID 35568) -- Name: user_sec_jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -351,7 +351,7 @@ CREATE TABLE user_sec_jrn ( -- --- TOC entry 56 (OID 32390) +-- TOC entry 56 (OID 35574) -- Name: action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -362,7 +362,7 @@ CREATE TABLE "action" ( -- --- TOC entry 57 (OID 32395) +-- TOC entry 57 (OID 35579) -- Name: user_sec_act; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -374,7 +374,7 @@ CREATE TABLE user_sec_act ( -- --- TOC entry 28 (OID 32401) +-- TOC entry 28 (OID 35585) -- Name: s_jrnaction; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -387,7 +387,7 @@ CREATE SEQUENCE s_jrnaction -- --- TOC entry 58 (OID 32403) +-- TOC entry 58 (OID 35587) -- Name: jrn_action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -403,7 +403,7 @@ CREATE TABLE jrn_action ( -- --- TOC entry 59 (OID 32410) +-- TOC entry 59 (OID 35594) -- Name: tva_rate; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -417,7 +417,7 @@ CREATE TABLE tva_rate ( -- --- TOC entry 30 (OID 32416) +-- TOC entry 30 (OID 35600) -- Name: s_fiche; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -430,7 +430,7 @@ CREATE SEQUENCE s_fiche -- --- TOC entry 32 (OID 32418) +-- TOC entry 32 (OID 35602) -- Name: s_fiche_def_ref; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -443,7 +443,7 @@ CREATE SEQUENCE s_fiche_def_ref -- --- TOC entry 34 (OID 32420) +-- TOC entry 34 (OID 35604) -- Name: s_fdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -456,7 +456,7 @@ CREATE SEQUENCE s_fdef -- --- TOC entry 36 (OID 32422) +-- TOC entry 36 (OID 35606) -- Name: s_attr_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -469,7 +469,7 @@ CREATE SEQUENCE s_attr_def -- --- TOC entry 38 (OID 32424) +-- TOC entry 38 (OID 35608) -- Name: s_jnt_fic_att_value; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -482,7 +482,7 @@ CREATE SEQUENCE s_jnt_fic_att_value -- --- TOC entry 60 (OID 32426) +-- TOC entry 60 (OID 35610) -- Name: fiche_def_ref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -494,7 +494,7 @@ CREATE TABLE fiche_def_ref ( -- --- TOC entry 61 (OID 32432) +-- TOC entry 61 (OID 35616) -- Name: fiche_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -508,7 +508,7 @@ CREATE TABLE fiche_def ( -- --- TOC entry 62 (OID 32439) +-- TOC entry 62 (OID 35623) -- Name: attr_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -519,7 +519,7 @@ CREATE TABLE attr_def ( -- --- TOC entry 63 (OID 32447) +-- TOC entry 63 (OID 35629) -- Name: fiche; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -530,7 +530,7 @@ CREATE TABLE fiche ( -- --- TOC entry 64 (OID 32450) +-- TOC entry 64 (OID 35632) -- Name: jnt_fic_att_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -542,7 +542,7 @@ CREATE TABLE jnt_fic_att_value ( -- --- TOC entry 65 (OID 32453) +-- TOC entry 65 (OID 35635) -- Name: attr_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -553,7 +553,7 @@ CREATE TABLE attr_value ( -- --- TOC entry 66 (OID 32458) +-- TOC entry 66 (OID 35640) -- Name: jnt_fic_attr; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -564,7 +564,7 @@ CREATE TABLE jnt_fic_attr ( -- --- TOC entry 40 (OID 32460) +-- TOC entry 40 (OID 35642) -- Name: s_jrn_rapt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -577,7 +577,7 @@ CREATE SEQUENCE s_jrn_rapt -- --- TOC entry 67 (OID 32462) +-- TOC entry 67 (OID 35644) -- Name: jrn_rapt; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -589,7 +589,7 @@ CREATE TABLE jrn_rapt ( -- --- TOC entry 68 (OID 32467) +-- TOC entry 68 (OID 35649) -- Name: vw_fiche_attr; Type: VIEW; Schema: public; Owner: phpcompta -- @@ -598,7 +598,7 @@ CREATE VIEW vw_fiche_attr AS -- --- TOC entry 42 (OID 32469) +-- TOC entry 42 (OID 35651) -- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -611,7 +611,7 @@ CREATE SEQUENCE s_stock_goods -- --- TOC entry 69 (OID 32471) +-- TOC entry 69 (OID 35653) -- Name: jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -633,7 +633,7 @@ CREATE TABLE jrn ( -- --- TOC entry 70 (OID 32479) +-- TOC entry 70 (OID 35661) -- Name: stock_goods; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -652,7 +652,7 @@ CREATE TABLE stock_goods ( -- --- TOC entry 71 (OID 33917) +-- TOC entry 71 (OID 35671) -- Name: attr_min; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -663,7 +663,7 @@ CREATE TABLE attr_min ( -- --- Data for TOC entry 112 (OID 32289) +-- Data for TOC entry 112 (OID 35473) -- Name: tmp_pcmn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1173,7 +1173,7 @@ INSERT INTO tmp_pcmn VALUES (6040001, 'Marchandise A', 604, 'BE'); -- --- Data for TOC entry 113 (OID 32296) +-- Data for TOC entry 113 (OID 35480) -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1181,7 +1181,7 @@ INSERT INTO "version" VALUES (3); -- --- Data for TOC entry 114 (OID 32302) +-- Data for TOC entry 114 (OID 35486) -- Name: parm_money; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1189,7 +1189,7 @@ INSERT INTO parm_money VALUES (1, 'EUR', 1); -- --- Data for TOC entry 115 (OID 32305) +-- Data for TOC entry 115 (OID 35489) -- Name: parm_periode; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1222,7 +1222,7 @@ INSERT INTO parm_periode VALUES (39, '2004-12-31', NULL, '2004', false); -- --- Data for TOC entry 116 (OID 32321) +-- Data for TOC entry 116 (OID 35505) -- Name: jrn_type; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1233,7 +1233,7 @@ INSERT INTO jrn_type VALUES ('OD ', 'Op -- --- Data for TOC entry 117 (OID 32326) +-- Data for TOC entry 117 (OID 35510) -- Name: jrn_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1244,14 +1244,14 @@ INSERT INTO jrn_def VALUES (1, 'Financier', '5* ', '5*', '1,2,4,9', '1,2,4,9', 5 -- --- Data for TOC entry 118 (OID 32337) +-- Data for TOC entry 118 (OID 35521) -- Name: jrnx; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 119 (OID 32348) +-- Data for TOC entry 119 (OID 35532) -- Name: user_pref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1261,28 +1261,28 @@ INSERT INTO user_pref VALUES ('phpcompta', 1); -- --- Data for TOC entry 120 (OID 32357) +-- Data for TOC entry 120 (OID 35541) -- Name: formdef; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 121 (OID 32363) +-- Data for TOC entry 121 (OID 35547) -- Name: form; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 122 (OID 32373) +-- Data for TOC entry 122 (OID 35557) -- Name: centralized; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 123 (OID 32384) +-- Data for TOC entry 123 (OID 35568) -- Name: user_sec_jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1301,7 +1301,7 @@ INSERT INTO user_sec_jrn VALUES (12, 'france', 3, 'R'); -- --- Data for TOC entry 124 (OID 32390) +-- Data for TOC entry 124 (OID 35574) -- Name: action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1319,7 +1319,7 @@ INSERT INTO "action" VALUES (14, 'Fiche -- --- Data for TOC entry 125 (OID 32395) +-- Data for TOC entry 125 (OID 35579) -- Name: user_sec_act; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1339,7 +1339,7 @@ INSERT INTO user_sec_act VALUES (13, 'demo', 8); -- --- Data for TOC entry 126 (OID 32403) +-- Data for TOC entry 126 (OID 35587) -- Name: jrn_action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1364,7 +1364,7 @@ INSERT INTO jrn_action VALUES (34, 'Impression', 'Impression du journal', 'impre -- --- Data for TOC entry 127 (OID 32410) +-- Data for TOC entry 127 (OID 35594) -- Name: tva_rate; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1375,7 +1375,7 @@ INSERT INTO tva_rate VALUES (4, '0%', 0, 'Tva applicable lors de vente/achat int -- --- Data for TOC entry 128 (OID 32426) +-- Data for TOC entry 128 (OID 35610) -- Name: fiche_def_ref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1393,10 +1393,11 @@ INSERT INTO fiche_def_ref VALUES (12, 'Salaire Employ INSERT INTO fiche_def_ref VALUES (13, 'Dépenses non admises', 674); INSERT INTO fiche_def_ref VALUES (7, 'Matériel à amortir', 24); INSERT INTO fiche_def_ref VALUES (14, 'Administration des Finances', NULL); +INSERT INTO fiche_def_ref VALUES (15, 'Autres fiches', NULL); -- --- Data for TOC entry 129 (OID 32432) +-- Data for TOC entry 129 (OID 35616) -- Name: fiche_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1412,7 +1413,7 @@ INSERT INTO fiche_def VALUES (8, 700, 'March Cat b', false, 1); -- --- Data for TOC entry 130 (OID 32439) +-- Data for TOC entry 130 (OID 35623) -- Name: attr_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1438,7 +1439,7 @@ INSERT INTO attr_def VALUES (19, 'Gestion stock'); -- --- Data for TOC entry 131 (OID 32447) +-- Data for TOC entry 131 (OID 35629) -- Name: fiche; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1466,7 +1467,7 @@ INSERT INTO fiche VALUES (21, 6); -- --- Data for TOC entry 132 (OID 32450) +-- Data for TOC entry 132 (OID 35632) -- Name: jnt_fic_att_value; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1621,7 +1622,7 @@ INSERT INTO jnt_fic_att_value VALUES (148, 21, 19); -- --- Data for TOC entry 133 (OID 32453) +-- Data for TOC entry 133 (OID 35635) -- Name: attr_value; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1776,7 +1777,7 @@ INSERT INTO attr_value VALUES (148, '1'); -- --- Data for TOC entry 134 (OID 32458) +-- Data for TOC entry 134 (OID 35640) -- Name: jnt_fic_attr; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1849,28 +1850,28 @@ INSERT INTO jnt_fic_attr VALUES (9, 16); -- --- Data for TOC entry 135 (OID 32462) +-- Data for TOC entry 135 (OID 35644) -- Name: jrn_rapt; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 136 (OID 32471) +-- Data for TOC entry 136 (OID 35653) -- Name: jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 137 (OID 32479) +-- Data for TOC entry 137 (OID 35661) -- Name: stock_goods; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 138 (OID 33917) +-- Data for TOC entry 138 (OID 35671) -- Name: attr_min; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1902,7 +1903,6 @@ INSERT INTO attr_min VALUES (9, 1); INSERT INTO attr_min VALUES (9, 12); INSERT INTO attr_min VALUES (9, 13); INSERT INTO attr_min VALUES (9, 14); -INSERT INTO attr_min VALUES (9, 15); INSERT INTO attr_min VALUES (9, 16); INSERT INTO attr_min VALUES (9, 17); INSERT INTO attr_min VALUES (9, 18); @@ -1943,10 +1943,14 @@ INSERT INTO attr_min VALUES (7, 10); INSERT INTO attr_min VALUES (13, 5); INSERT INTO attr_min VALUES (5, 11); INSERT INTO attr_min VALUES (6, 11); +INSERT INTO attr_min VALUES (1, 15); +INSERT INTO attr_min VALUES (9, 15); +INSERT INTO attr_min VALUES (15, 1); +INSERT INTO attr_min VALUES (15, 9); -- --- TOC entry 93 (OID 33554) +-- TOC entry 93 (OID 36767) -- Name: x_act; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1954,7 +1958,7 @@ CREATE UNIQUE INDEX x_act ON "action" USING btree (ac_description); -- --- TOC entry 91 (OID 33555) +-- TOC entry 91 (OID 36768) -- Name: x_usr_jrn; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1962,7 +1966,7 @@ CREATE UNIQUE INDEX x_usr_jrn ON user_sec_jrn USING btree (uj_login, uj_jrn_id); -- --- TOC entry 87 (OID 33556) +-- TOC entry 87 (OID 36769) -- Name: fk_centralized_c_jrn_def; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1970,7 +1974,7 @@ CREATE INDEX fk_centralized_c_jrn_def ON centralized USING btree (c_jrn_def); -- --- TOC entry 88 (OID 33557) +-- TOC entry 88 (OID 36770) -- Name: fk_centralized_c_poste; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1978,7 +1982,7 @@ CREATE INDEX fk_centralized_c_poste ON centralized USING btree (c_poste); -- --- TOC entry 100 (OID 33558) +-- TOC entry 100 (OID 36771) -- Name: fk_fiche_def_frd_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1986,7 +1990,7 @@ CREATE INDEX fk_fiche_def_frd_id ON fiche_def USING btree (frd_id); -- --- TOC entry 105 (OID 33559) +-- TOC entry 105 (OID 36772) -- Name: fk_attr_value_jft_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1994,7 +1998,7 @@ CREATE INDEX fk_attr_value_jft_id ON attr_value USING btree (jft_id); -- --- TOC entry 103 (OID 33562) +-- TOC entry 103 (OID 36773) -- Name: fk_fiche_fd_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2002,7 +2006,7 @@ CREATE INDEX fk_fiche_fd_id ON fiche USING btree (fd_id); -- --- TOC entry 84 (OID 33563) +-- TOC entry 84 (OID 36774) -- Name: fk_form_fo_fr_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2010,7 +2014,7 @@ CREATE INDEX fk_form_fo_fr_id ON form USING btree (fo_fr_id); -- --- TOC entry 80 (OID 33564) +-- TOC entry 80 (OID 36775) -- Name: fk_jrnx_j_poste; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2018,7 +2022,7 @@ CREATE INDEX fk_jrnx_j_poste ON jrnx USING btree (j_poste); -- --- TOC entry 79 (OID 33565) +-- TOC entry 79 (OID 36776) -- Name: fk_jrn_def; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2026,7 +2030,7 @@ CREATE INDEX fk_jrn_def ON jrnx USING btree (j_jrn_def); -- --- TOC entry 96 (OID 33566) +-- TOC entry 96 (OID 36777) -- Name: fk_jrn_action_ja_jrn_type; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2034,7 +2038,7 @@ CREATE INDEX fk_jrn_action_ja_jrn_type ON jrn_action USING btree (ja_jrn_type); -- --- TOC entry 89 (OID 33567) +-- TOC entry 89 (OID 36778) -- Name: fk_user_sec_jrn; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2042,7 +2046,7 @@ CREATE INDEX fk_user_sec_jrn ON user_sec_jrn USING btree (uj_jrn_id); -- --- TOC entry 94 (OID 33568) +-- TOC entry 94 (OID 36779) -- Name: fk_user_sec_act; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2050,7 +2054,7 @@ CREATE INDEX fk_user_sec_act ON user_sec_act USING btree (ua_act_id); -- --- TOC entry 108 (OID 33569) +-- TOC entry 108 (OID 36780) -- Name: x_jrn_jr_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2058,7 +2062,7 @@ CREATE UNIQUE INDEX x_jrn_jr_id ON jrn USING btree (jr_id); -- --- TOC entry 110 (OID 33570) +-- TOC entry 110 (OID 36781) -- Name: fk_stock_goods_j_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2066,7 +2070,7 @@ CREATE INDEX fk_stock_goods_j_id ON stock_goods USING btree (j_id); -- --- TOC entry 109 (OID 33571) +-- TOC entry 109 (OID 36782) -- Name: fk_stock_goods_f_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -2074,7 +2078,7 @@ CREATE INDEX fk_stock_goods_f_id ON stock_goods USING btree (f_id); -- --- TOC entry 72 (OID 33572) +-- TOC entry 72 (OID 36783) -- Name: tmp_pcmn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2083,7 +2087,7 @@ ALTER TABLE ONLY tmp_pcmn -- --- TOC entry 73 (OID 33574) +-- TOC entry 73 (OID 36785) -- Name: parm_money_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2092,7 +2096,7 @@ ALTER TABLE ONLY parm_money -- --- TOC entry 75 (OID 33576) +-- TOC entry 75 (OID 36787) -- Name: parm_periode_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2101,7 +2105,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 74 (OID 33578) +-- TOC entry 74 (OID 36789) -- Name: parm_periode_p_start_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2110,7 +2114,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 76 (OID 33580) +-- TOC entry 76 (OID 36791) -- Name: jrn_type_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2119,7 +2123,7 @@ ALTER TABLE ONLY jrn_type -- --- TOC entry 78 (OID 33582) +-- TOC entry 78 (OID 36793) -- Name: jrn_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2128,7 +2132,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 77 (OID 33584) +-- TOC entry 77 (OID 36795) -- Name: jrn_def_jrn_def_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2137,7 +2141,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 139 (OID 33586) +-- TOC entry 139 (OID 36797) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2146,7 +2150,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 81 (OID 33590) +-- TOC entry 81 (OID 36801) -- Name: jrnx_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2155,7 +2159,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 140 (OID 33592) +-- TOC entry 140 (OID 36803) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2164,7 +2168,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 141 (OID 33596) +-- TOC entry 141 (OID 36807) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2173,7 +2177,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 82 (OID 33600) +-- TOC entry 82 (OID 36811) -- Name: user_pref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2182,7 +2186,7 @@ ALTER TABLE ONLY user_pref -- --- TOC entry 83 (OID 33602) +-- TOC entry 83 (OID 36813) -- Name: formdef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2191,7 +2195,7 @@ ALTER TABLE ONLY formdef -- --- TOC entry 85 (OID 33604) +-- TOC entry 85 (OID 36815) -- Name: form_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2200,7 +2204,7 @@ ALTER TABLE ONLY form -- --- TOC entry 142 (OID 33606) +-- TOC entry 142 (OID 36817) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2209,7 +2213,7 @@ ALTER TABLE ONLY form -- --- TOC entry 86 (OID 33610) +-- TOC entry 86 (OID 36821) -- Name: centralized_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2218,7 +2222,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 143 (OID 33612) +-- TOC entry 143 (OID 36823) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2227,7 +2231,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 144 (OID 33616) +-- TOC entry 144 (OID 36827) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2236,7 +2240,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 90 (OID 33620) +-- TOC entry 90 (OID 36831) -- Name: user_sec_jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2245,7 +2249,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 145 (OID 33622) +-- TOC entry 145 (OID 36833) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2254,7 +2258,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 92 (OID 33626) +-- TOC entry 92 (OID 36837) -- Name: action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2263,7 +2267,7 @@ ALTER TABLE ONLY "action" -- --- TOC entry 95 (OID 33628) +-- TOC entry 95 (OID 36839) -- Name: user_sec_act_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2272,7 +2276,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 146 (OID 33630) +-- TOC entry 146 (OID 36841) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2281,7 +2285,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 97 (OID 33634) +-- TOC entry 97 (OID 36845) -- Name: jrn_action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2290,7 +2294,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 147 (OID 33636) +-- TOC entry 147 (OID 36847) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2299,7 +2303,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 98 (OID 33640) +-- TOC entry 98 (OID 36851) -- Name: fiche_def_ref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2308,7 +2312,7 @@ ALTER TABLE ONLY fiche_def_ref -- --- TOC entry 99 (OID 33642) +-- TOC entry 99 (OID 36853) -- Name: fiche_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2317,7 +2321,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 148 (OID 33644) +-- TOC entry 148 (OID 36855) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2326,7 +2330,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 101 (OID 33648) +-- TOC entry 101 (OID 36859) -- Name: attr_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2335,7 +2339,7 @@ ALTER TABLE ONLY attr_def -- --- TOC entry 102 (OID 33658) +-- TOC entry 102 (OID 36861) -- Name: fiche_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2344,7 +2348,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 149 (OID 33660) +-- TOC entry 149 (OID 36863) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2353,7 +2357,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 104 (OID 33664) +-- TOC entry 104 (OID 36867) -- Name: jnt_fic_att_value_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2362,7 +2366,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 150 (OID 33666) +-- TOC entry 150 (OID 36869) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2371,7 +2375,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 151 (OID 33670) +-- TOC entry 151 (OID 36873) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2380,7 +2384,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 152 (OID 33674) +-- TOC entry 152 (OID 36877) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2389,7 +2393,7 @@ ALTER TABLE ONLY attr_value -- --- TOC entry 153 (OID 33678) +-- TOC entry 153 (OID 36881) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2398,7 +2402,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 154 (OID 33682) +-- TOC entry 154 (OID 36885) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2407,7 +2411,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 106 (OID 33686) +-- TOC entry 106 (OID 36889) -- Name: jrn_rapt_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2416,7 +2420,7 @@ ALTER TABLE ONLY jrn_rapt -- --- TOC entry 155 (OID 33688) +-- TOC entry 155 (OID 36891) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2425,7 +2429,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 107 (OID 33692) +-- TOC entry 107 (OID 36895) -- Name: jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2434,7 +2438,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 111 (OID 33694) +-- TOC entry 111 (OID 36897) -- Name: stock_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2443,7 +2447,7 @@ ALTER TABLE ONLY stock_goods -- --- TOC entry 156 (OID 33988) +-- TOC entry 156 (OID 36899) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2452,7 +2456,7 @@ ALTER TABLE ONLY attr_min -- --- TOC entry 157 (OID 33992) +-- TOC entry 157 (OID 36903) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2461,7 +2465,7 @@ ALTER TABLE ONLY attr_min -- --- TOC entry 3 (OID 32298) +-- TOC entry 3 (OID 35482) -- Name: s_periode; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2469,7 +2473,7 @@ SELECT pg_catalog.setval ('s_periode', 39, true); -- --- TOC entry 5 (OID 32300) +-- TOC entry 5 (OID 35484) -- Name: s_currency; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2477,7 +2481,7 @@ SELECT pg_catalog.setval ('s_currency', 1, true); -- --- TOC entry 7 (OID 32313) +-- TOC entry 7 (OID 35497) -- Name: s_jrn_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2485,7 +2489,7 @@ SELECT pg_catalog.setval ('s_jrn_def', 5, false); -- --- TOC entry 9 (OID 32315) +-- TOC entry 9 (OID 35499) -- Name: s_grpt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2493,7 +2497,7 @@ SELECT pg_catalog.setval ('s_grpt', 1, false); -- --- TOC entry 11 (OID 32317) +-- TOC entry 11 (OID 35501) -- Name: s_jrn_op; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2501,7 +2505,7 @@ SELECT pg_catalog.setval ('s_jrn_op', 461, true); -- --- TOC entry 13 (OID 32319) +-- TOC entry 13 (OID 35503) -- Name: s_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2509,7 +2513,7 @@ SELECT pg_catalog.setval ('s_jrn', 139, true); -- --- TOC entry 15 (OID 32335) +-- TOC entry 15 (OID 35519) -- Name: s_jrnx; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2517,7 +2521,7 @@ SELECT pg_catalog.setval ('s_jrnx', 1, false); -- --- TOC entry 17 (OID 32353) +-- TOC entry 17 (OID 35537) -- Name: s_formdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2525,7 +2529,7 @@ SELECT pg_catalog.setval ('s_formdef', 1, false); -- --- TOC entry 19 (OID 32355) +-- TOC entry 19 (OID 35539) -- Name: s_form; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2533,7 +2537,7 @@ SELECT pg_catalog.setval ('s_form', 1, false); -- --- TOC entry 21 (OID 32369) +-- TOC entry 21 (OID 35553) -- Name: s_idef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2541,7 +2545,7 @@ SELECT pg_catalog.setval ('s_idef', 2, true); -- --- TOC entry 23 (OID 32371) +-- TOC entry 23 (OID 35555) -- Name: s_centralized; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2549,7 +2553,7 @@ SELECT pg_catalog.setval ('s_centralized', 1, false); -- --- TOC entry 25 (OID 32380) +-- TOC entry 25 (OID 35564) -- Name: s_user_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2557,7 +2561,7 @@ SELECT pg_catalog.setval ('s_user_jrn', 12, true); -- --- TOC entry 27 (OID 32382) +-- TOC entry 27 (OID 35566) -- Name: s_user_act; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2565,7 +2569,7 @@ SELECT pg_catalog.setval ('s_user_act', 13, true); -- --- TOC entry 29 (OID 32401) +-- TOC entry 29 (OID 35585) -- Name: s_jrnaction; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2573,7 +2577,7 @@ SELECT pg_catalog.setval ('s_jrnaction', 7, true); -- --- TOC entry 31 (OID 32416) +-- TOC entry 31 (OID 35600) -- Name: s_fiche; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2581,7 +2585,7 @@ SELECT pg_catalog.setval ('s_fiche', 21, true); -- --- TOC entry 33 (OID 32418) +-- TOC entry 33 (OID 35602) -- Name: s_fiche_def_ref; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2589,7 +2593,7 @@ SELECT pg_catalog.setval ('s_fiche_def_ref', 14, true); -- --- TOC entry 35 (OID 32420) +-- TOC entry 35 (OID 35604) -- Name: s_fdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2597,7 +2601,7 @@ SELECT pg_catalog.setval ('s_fdef', 10, true); -- --- TOC entry 37 (OID 32422) +-- TOC entry 37 (OID 35606) -- Name: s_attr_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2605,7 +2609,7 @@ SELECT pg_catalog.setval ('s_attr_def', 19, true); -- --- TOC entry 39 (OID 32424) +-- TOC entry 39 (OID 35608) -- Name: s_jnt_fic_att_value; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2613,7 +2617,7 @@ SELECT pg_catalog.setval ('s_jnt_fic_att_value', 148, true); -- --- TOC entry 41 (OID 32460) +-- TOC entry 41 (OID 35642) -- Name: s_jrn_rapt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2621,7 +2625,7 @@ SELECT pg_catalog.setval ('s_jrn_rapt', 13, true); -- --- TOC entry 43 (OID 32469) +-- TOC entry 43 (OID 35651) -- Name: s_stock_goods; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- diff --git a/sql/mod-be.sql b/sql/mod-be.sql index 1b24fa2b9..551f969aa 100644 --- a/sql/mod-be.sql +++ b/sql/mod-be.sql @@ -7,7 +7,7 @@ SET search_path = public, pg_catalog; -- --- TOC entry 46 (OID 30945) +-- TOC entry 46 (OID 34100) -- Name: tmp_pcmn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -20,7 +20,7 @@ CREATE TABLE tmp_pcmn ( -- --- TOC entry 47 (OID 30952) +-- TOC entry 47 (OID 34107) -- Name: version; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -30,7 +30,7 @@ CREATE TABLE "version" ( -- --- TOC entry 2 (OID 30954) +-- TOC entry 2 (OID 34109) -- Name: s_periode; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -43,7 +43,7 @@ CREATE SEQUENCE s_periode -- --- TOC entry 4 (OID 30956) +-- TOC entry 4 (OID 34111) -- Name: s_currency; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -56,7 +56,7 @@ CREATE SEQUENCE s_currency -- --- TOC entry 48 (OID 30958) +-- TOC entry 48 (OID 34113) -- Name: parm_money; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -68,7 +68,7 @@ CREATE TABLE parm_money ( -- --- TOC entry 49 (OID 30961) +-- TOC entry 49 (OID 34116) -- Name: parm_periode; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -82,7 +82,7 @@ CREATE TABLE parm_periode ( -- --- TOC entry 6 (OID 30969) +-- TOC entry 6 (OID 34124) -- Name: s_jrn_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -95,7 +95,7 @@ CREATE SEQUENCE s_jrn_def -- --- TOC entry 8 (OID 30971) +-- TOC entry 8 (OID 34126) -- Name: s_grpt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -108,7 +108,7 @@ CREATE SEQUENCE s_grpt -- --- TOC entry 10 (OID 30973) +-- TOC entry 10 (OID 34128) -- Name: s_jrn_op; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -121,7 +121,7 @@ CREATE SEQUENCE s_jrn_op -- --- TOC entry 12 (OID 30975) +-- TOC entry 12 (OID 34130) -- Name: s_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -134,7 +134,7 @@ CREATE SEQUENCE s_jrn -- --- TOC entry 50 (OID 30977) +-- TOC entry 50 (OID 34132) -- Name: jrn_type; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -145,7 +145,7 @@ CREATE TABLE jrn_type ( -- --- TOC entry 51 (OID 30982) +-- TOC entry 51 (OID 34137) -- Name: jrn_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -166,7 +166,7 @@ CREATE TABLE jrn_def ( -- --- TOC entry 14 (OID 30991) +-- TOC entry 14 (OID 34146) -- Name: s_jrnx; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -179,7 +179,7 @@ CREATE SEQUENCE s_jrnx -- --- TOC entry 52 (OID 30993) +-- TOC entry 52 (OID 34148) -- Name: jrnx; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -202,7 +202,7 @@ CREATE TABLE jrnx ( -- --- TOC entry 53 (OID 31004) +-- TOC entry 53 (OID 34159) -- Name: user_pref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -213,7 +213,7 @@ CREATE TABLE user_pref ( -- --- TOC entry 16 (OID 31009) +-- TOC entry 16 (OID 34164) -- Name: s_formdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -226,7 +226,7 @@ CREATE SEQUENCE s_formdef -- --- TOC entry 18 (OID 31011) +-- TOC entry 18 (OID 34166) -- Name: s_form; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -239,7 +239,7 @@ CREATE SEQUENCE s_form -- --- TOC entry 54 (OID 31013) +-- TOC entry 54 (OID 34168) -- Name: formdef; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -250,7 +250,7 @@ CREATE TABLE formdef ( -- --- TOC entry 55 (OID 31019) +-- TOC entry 55 (OID 34174) -- Name: form; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -264,7 +264,7 @@ CREATE TABLE form ( -- --- TOC entry 20 (OID 31025) +-- TOC entry 20 (OID 34180) -- Name: s_isup; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -277,7 +277,7 @@ CREATE SEQUENCE s_isup -- --- TOC entry 22 (OID 31027) +-- TOC entry 22 (OID 34182) -- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -290,7 +290,7 @@ CREATE SEQUENCE s_idef -- --- TOC entry 24 (OID 31029) +-- TOC entry 24 (OID 34184) -- Name: s_centralized; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -303,7 +303,7 @@ CREATE SEQUENCE s_centralized -- --- TOC entry 56 (OID 31031) +-- TOC entry 56 (OID 34186) -- Name: centralized; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -325,7 +325,7 @@ CREATE TABLE centralized ( -- --- TOC entry 26 (OID 31038) +-- TOC entry 26 (OID 34193) -- Name: s_user_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -338,7 +338,7 @@ CREATE SEQUENCE s_user_jrn -- --- TOC entry 28 (OID 31040) +-- TOC entry 28 (OID 34195) -- Name: s_user_act; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -351,7 +351,7 @@ CREATE SEQUENCE s_user_act -- --- TOC entry 57 (OID 31042) +-- TOC entry 57 (OID 34197) -- Name: user_sec_jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -364,7 +364,7 @@ CREATE TABLE user_sec_jrn ( -- --- TOC entry 58 (OID 31048) +-- TOC entry 58 (OID 34203) -- Name: action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -375,7 +375,7 @@ CREATE TABLE "action" ( -- --- TOC entry 59 (OID 31053) +-- TOC entry 59 (OID 34208) -- Name: user_sec_act; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -387,7 +387,7 @@ CREATE TABLE user_sec_act ( -- --- TOC entry 30 (OID 31059) +-- TOC entry 30 (OID 34214) -- Name: s_jrnaction; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -400,7 +400,7 @@ CREATE SEQUENCE s_jrnaction -- --- TOC entry 60 (OID 31061) +-- TOC entry 60 (OID 34216) -- Name: jrn_action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -416,19 +416,7 @@ CREATE TABLE jrn_action ( -- --- TOC entry 61 (OID 31068) --- Name: attr_valeur; Type: TABLE; Schema: public; Owner: phpcompta --- - -CREATE TABLE attr_valeur ( - f_id integer, - ad_id integer, - av_text text -); - - --- --- TOC entry 62 (OID 31073) +-- TOC entry 61 (OID 34228) -- Name: tva_rate; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -442,7 +430,7 @@ CREATE TABLE tva_rate ( -- --- TOC entry 32 (OID 31079) +-- TOC entry 32 (OID 34234) -- Name: s_fiche; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -455,7 +443,7 @@ CREATE SEQUENCE s_fiche -- --- TOC entry 34 (OID 31081) +-- TOC entry 34 (OID 34236) -- Name: s_fiche_def_ref; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -468,7 +456,7 @@ CREATE SEQUENCE s_fiche_def_ref -- --- TOC entry 36 (OID 31083) +-- TOC entry 36 (OID 34238) -- Name: s_fdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -481,7 +469,7 @@ CREATE SEQUENCE s_fdef -- --- TOC entry 38 (OID 31085) +-- TOC entry 38 (OID 34240) -- Name: s_attr_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -494,7 +482,7 @@ CREATE SEQUENCE s_attr_def -- --- TOC entry 40 (OID 31087) +-- TOC entry 40 (OID 34242) -- Name: s_jnt_fic_att_value; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -507,7 +495,7 @@ CREATE SEQUENCE s_jnt_fic_att_value -- --- TOC entry 63 (OID 31089) +-- TOC entry 62 (OID 34244) -- Name: fiche_def_ref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -519,7 +507,7 @@ CREATE TABLE fiche_def_ref ( -- --- TOC entry 64 (OID 31095) +-- TOC entry 63 (OID 34250) -- Name: fiche_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -533,7 +521,7 @@ CREATE TABLE fiche_def ( -- --- TOC entry 65 (OID 31102) +-- TOC entry 64 (OID 34257) -- Name: attr_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -544,7 +532,7 @@ CREATE TABLE attr_def ( -- --- TOC entry 66 (OID 31108) +-- TOC entry 65 (OID 34263) -- Name: attr_min; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -555,7 +543,7 @@ CREATE TABLE attr_min ( -- --- TOC entry 67 (OID 31110) +-- TOC entry 66 (OID 34265) -- Name: fiche; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -566,7 +554,7 @@ CREATE TABLE fiche ( -- --- TOC entry 68 (OID 31113) +-- TOC entry 67 (OID 34268) -- Name: jnt_fic_att_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -578,7 +566,7 @@ CREATE TABLE jnt_fic_att_value ( -- --- TOC entry 69 (OID 31116) +-- TOC entry 68 (OID 34271) -- Name: attr_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -589,7 +577,7 @@ CREATE TABLE attr_value ( -- --- TOC entry 70 (OID 31121) +-- TOC entry 69 (OID 34276) -- Name: jnt_fic_attr; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -600,7 +588,7 @@ CREATE TABLE jnt_fic_attr ( -- --- TOC entry 71 (OID 31125) +-- TOC entry 70 (OID 34280) -- Name: vw_fiche_attr; Type: VIEW; Schema: public; Owner: phpcompta -- @@ -609,7 +597,7 @@ CREATE VIEW vw_fiche_attr AS -- --- TOC entry 42 (OID 31127) +-- TOC entry 42 (OID 34282) -- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -622,7 +610,7 @@ CREATE SEQUENCE s_stock_goods -- --- TOC entry 44 (OID 31129) +-- TOC entry 44 (OID 34284) -- Name: s_jrn_rapt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -635,7 +623,7 @@ CREATE SEQUENCE s_jrn_rapt -- --- TOC entry 72 (OID 31131) +-- TOC entry 71 (OID 34286) -- Name: jrn_rapt; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -647,7 +635,7 @@ CREATE TABLE jrn_rapt ( -- --- TOC entry 73 (OID 31134) +-- TOC entry 72 (OID 34289) -- Name: jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -669,7 +657,7 @@ CREATE TABLE jrn ( -- --- TOC entry 74 (OID 31142) +-- TOC entry 73 (OID 34297) -- Name: stock_goods; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -688,7 +676,7 @@ CREATE TABLE stock_goods ( -- --- Data for TOC entry 104 (OID 30945) +-- Data for TOC entry 103 (OID 34100) -- Name: tmp_pcmn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1198,7 +1186,7 @@ INSERT INTO tmp_pcmn VALUES (101, 'Capital non appel -- --- Data for TOC entry 105 (OID 30952) +-- Data for TOC entry 104 (OID 34107) -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1206,7 +1194,7 @@ INSERT INTO "version" VALUES (3); -- --- Data for TOC entry 106 (OID 30958) +-- Data for TOC entry 105 (OID 34113) -- Name: parm_money; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1214,7 +1202,7 @@ INSERT INTO parm_money VALUES (1, 'EUR', 1); -- --- Data for TOC entry 107 (OID 30961) +-- Data for TOC entry 106 (OID 34116) -- Name: parm_periode; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1247,7 +1235,7 @@ INSERT INTO parm_periode VALUES (52, '2004-12-31', NULL, '2004', false); -- --- Data for TOC entry 108 (OID 30977) +-- Data for TOC entry 107 (OID 34132) -- Name: jrn_type; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1258,7 +1246,7 @@ INSERT INTO jrn_type VALUES ('OD ', 'Op -- --- Data for TOC entry 109 (OID 30982) +-- Data for TOC entry 108 (OID 34137) -- Name: jrn_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1269,14 +1257,14 @@ INSERT INTO jrn_def VALUES (2, 'Vente', '4*', '7*', '2', '6', 2, 1, true, ' -- --- Data for TOC entry 110 (OID 30993) +-- Data for TOC entry 109 (OID 34148) -- Name: jrnx; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 111 (OID 31004) +-- Data for TOC entry 110 (OID 34159) -- Name: user_pref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1284,35 +1272,35 @@ INSERT INTO user_pref VALUES ('dany', 30); -- --- Data for TOC entry 112 (OID 31013) +-- Data for TOC entry 111 (OID 34168) -- Name: formdef; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 113 (OID 31019) +-- Data for TOC entry 112 (OID 34174) -- Name: form; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 114 (OID 31031) +-- Data for TOC entry 113 (OID 34186) -- Name: centralized; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 115 (OID 31042) +-- Data for TOC entry 114 (OID 34197) -- Name: user_sec_jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 116 (OID 31048) +-- Data for TOC entry 115 (OID 34203) -- Name: action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1330,14 +1318,14 @@ INSERT INTO "action" VALUES (14, 'Fiche -- --- Data for TOC entry 117 (OID 31053) +-- Data for TOC entry 116 (OID 34208) -- Name: user_sec_act; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 118 (OID 31061) +-- Data for TOC entry 117 (OID 34216) -- Name: jrn_action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1362,14 +1350,7 @@ INSERT INTO jrn_action VALUES (34, 'Impression', 'Impression du journal', 'impre -- --- Data for TOC entry 119 (OID 31068) --- Name: attr_valeur; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - - - --- --- Data for TOC entry 120 (OID 31073) +-- Data for TOC entry 118 (OID 34228) -- Name: tva_rate; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1380,7 +1361,7 @@ INSERT INTO tva_rate VALUES (4, '0%', 0, 'Tva applicable lors de vente/achat int -- --- Data for TOC entry 121 (OID 31089) +-- Data for TOC entry 119 (OID 34244) -- Name: fiche_def_ref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1398,10 +1379,11 @@ INSERT INTO fiche_def_ref VALUES (12, 'Salaire Employ INSERT INTO fiche_def_ref VALUES (13, 'Dépenses non admises', 674); INSERT INTO fiche_def_ref VALUES (7, 'Matériel à amortir', 24); INSERT INTO fiche_def_ref VALUES (14, 'Administration des Finances', NULL); +INSERT INTO fiche_def_ref VALUES (15, 'Autres fiches', NULL); -- --- Data for TOC entry 122 (OID 31095) +-- Data for TOC entry 120 (OID 34250) -- Name: fiche_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1414,7 +1396,7 @@ INSERT INTO fiche_def VALUES (6, 700, 'Vente', true, 1); -- --- Data for TOC entry 123 (OID 31102) +-- Data for TOC entry 121 (OID 34257) -- Name: attr_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1440,7 +1422,7 @@ INSERT INTO attr_def VALUES (19, 'Gestion stock'); -- --- Data for TOC entry 124 (OID 31108) +-- Data for TOC entry 122 (OID 34263) -- Name: attr_min; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1472,7 +1454,6 @@ INSERT INTO attr_min VALUES (9, 1); INSERT INTO attr_min VALUES (9, 12); INSERT INTO attr_min VALUES (9, 13); INSERT INTO attr_min VALUES (9, 14); -INSERT INTO attr_min VALUES (9, 15); INSERT INTO attr_min VALUES (9, 16); INSERT INTO attr_min VALUES (9, 17); INSERT INTO attr_min VALUES (9, 18); @@ -1513,10 +1494,14 @@ INSERT INTO attr_min VALUES (7, 10); INSERT INTO attr_min VALUES (13, 5); INSERT INTO attr_min VALUES (5, 11); INSERT INTO attr_min VALUES (6, 11); +INSERT INTO attr_min VALUES (1, 15); +INSERT INTO attr_min VALUES (9, 15); +INSERT INTO attr_min VALUES (15, 1); +INSERT INTO attr_min VALUES (15, 9); -- --- Data for TOC entry 125 (OID 31110) +-- Data for TOC entry 123 (OID 34265) -- Name: fiche; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1543,7 +1528,7 @@ INSERT INTO fiche VALUES (20, 6); -- --- Data for TOC entry 126 (OID 31113) +-- Data for TOC entry 124 (OID 34268) -- Name: jnt_fic_att_value; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1695,7 +1680,7 @@ INSERT INTO jnt_fic_att_value VALUES (145, 20, 19); -- --- Data for TOC entry 127 (OID 31116) +-- Data for TOC entry 125 (OID 34271) -- Name: attr_value; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1847,7 +1832,7 @@ INSERT INTO attr_value VALUES (145, ''); -- --- Data for TOC entry 128 (OID 31121) +-- Data for TOC entry 126 (OID 34276) -- Name: jnt_fic_attr; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -1899,28 +1884,28 @@ INSERT INTO jnt_fic_attr VALUES (6, 19); -- --- Data for TOC entry 129 (OID 31131) +-- Data for TOC entry 127 (OID 34286) -- Name: jrn_rapt; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 130 (OID 31134) +-- Data for TOC entry 128 (OID 34289) -- Name: jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 131 (OID 31142) +-- Data for TOC entry 129 (OID 34297) -- Name: stock_goods; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- TOC entry 90 (OID 32159) +-- TOC entry 89 (OID 35343) -- Name: x_act; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1928,7 +1913,7 @@ CREATE UNIQUE INDEX x_act ON "action" USING btree (ac_description); -- --- TOC entry 88 (OID 32160) +-- TOC entry 87 (OID 35344) -- Name: x_usr_jrn; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1936,7 +1921,7 @@ CREATE UNIQUE INDEX x_usr_jrn ON user_sec_jrn USING btree (uj_login, uj_jrn_id); -- --- TOC entry 100 (OID 32161) +-- TOC entry 99 (OID 35345) -- Name: x_jrn_jr_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1944,7 +1929,7 @@ CREATE UNIQUE INDEX x_jrn_jr_id ON jrn USING btree (jr_id); -- --- TOC entry 102 (OID 32162) +-- TOC entry 101 (OID 35346) -- Name: fk_stock_goods_j_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1952,7 +1937,7 @@ CREATE INDEX fk_stock_goods_j_id ON stock_goods USING btree (j_id); -- --- TOC entry 101 (OID 32163) +-- TOC entry 100 (OID 35347) -- Name: fk_stock_goods_f_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -1960,7 +1945,7 @@ CREATE INDEX fk_stock_goods_f_id ON stock_goods USING btree (f_id); -- --- TOC entry 75 (OID 32164) +-- TOC entry 74 (OID 35348) -- Name: tmp_pcmn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1969,7 +1954,7 @@ ALTER TABLE ONLY tmp_pcmn -- --- TOC entry 76 (OID 32166) +-- TOC entry 75 (OID 35350) -- Name: parm_money_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1978,7 +1963,7 @@ ALTER TABLE ONLY parm_money -- --- TOC entry 78 (OID 32168) +-- TOC entry 77 (OID 35352) -- Name: parm_periode_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1987,7 +1972,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 77 (OID 32170) +-- TOC entry 76 (OID 35354) -- Name: parm_periode_p_start_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1996,7 +1981,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 79 (OID 32172) +-- TOC entry 78 (OID 35356) -- Name: jrn_type_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2005,7 +1990,7 @@ ALTER TABLE ONLY jrn_type -- --- TOC entry 81 (OID 32174) +-- TOC entry 80 (OID 35358) -- Name: jrn_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2014,7 +1999,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 80 (OID 32176) +-- TOC entry 79 (OID 35360) -- Name: jrn_def_jrn_def_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2023,7 +2008,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 132 (OID 32178) +-- TOC entry 130 (OID 35362) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2032,7 +2017,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 82 (OID 32182) +-- TOC entry 81 (OID 35366) -- Name: jrnx_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2041,7 +2026,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 133 (OID 32184) +-- TOC entry 131 (OID 35368) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2050,7 +2035,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 134 (OID 32188) +-- TOC entry 132 (OID 35372) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2059,7 +2044,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 83 (OID 32192) +-- TOC entry 82 (OID 35376) -- Name: user_pref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2068,7 +2053,7 @@ ALTER TABLE ONLY user_pref -- --- TOC entry 84 (OID 32194) +-- TOC entry 83 (OID 35378) -- Name: formdef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2077,7 +2062,7 @@ ALTER TABLE ONLY formdef -- --- TOC entry 85 (OID 32196) +-- TOC entry 84 (OID 35380) -- Name: form_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2086,7 +2071,7 @@ ALTER TABLE ONLY form -- --- TOC entry 135 (OID 32198) +-- TOC entry 133 (OID 35382) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2095,7 +2080,7 @@ ALTER TABLE ONLY form -- --- TOC entry 86 (OID 32202) +-- TOC entry 85 (OID 35386) -- Name: centralized_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2104,7 +2089,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 136 (OID 32204) +-- TOC entry 134 (OID 35388) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2113,7 +2098,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 137 (OID 32208) +-- TOC entry 135 (OID 35392) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2122,7 +2107,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 87 (OID 32212) +-- TOC entry 86 (OID 35396) -- Name: user_sec_jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2131,7 +2116,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 138 (OID 32214) +-- TOC entry 136 (OID 35398) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2140,7 +2125,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 89 (OID 32218) +-- TOC entry 88 (OID 35402) -- Name: action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2149,7 +2134,7 @@ ALTER TABLE ONLY "action" -- --- TOC entry 91 (OID 32220) +-- TOC entry 90 (OID 35404) -- Name: user_sec_act_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2158,7 +2143,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 139 (OID 32222) +-- TOC entry 137 (OID 35406) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2167,7 +2152,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 92 (OID 32226) +-- TOC entry 91 (OID 35410) -- Name: jrn_action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2176,7 +2161,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 140 (OID 32228) +-- TOC entry 138 (OID 35412) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2185,7 +2170,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 93 (OID 32232) +-- TOC entry 92 (OID 35416) -- Name: fiche_def_ref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2194,7 +2179,7 @@ ALTER TABLE ONLY fiche_def_ref -- --- TOC entry 94 (OID 32234) +-- TOC entry 93 (OID 35418) -- Name: fiche_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2203,7 +2188,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 141 (OID 32236) +-- TOC entry 139 (OID 35420) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2212,7 +2197,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 95 (OID 32240) +-- TOC entry 94 (OID 35424) -- Name: attr_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2221,7 +2206,7 @@ ALTER TABLE ONLY attr_def -- --- TOC entry 142 (OID 32242) +-- TOC entry 140 (OID 35426) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2230,7 +2215,7 @@ ALTER TABLE ONLY attr_min -- --- TOC entry 143 (OID 32246) +-- TOC entry 141 (OID 35430) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2239,7 +2224,7 @@ ALTER TABLE ONLY attr_min -- --- TOC entry 96 (OID 32250) +-- TOC entry 95 (OID 35434) -- Name: fiche_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2248,7 +2233,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 144 (OID 32252) +-- TOC entry 142 (OID 35436) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2257,7 +2242,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 97 (OID 32256) +-- TOC entry 96 (OID 35440) -- Name: jnt_fic_att_value_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2266,7 +2251,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 145 (OID 32258) +-- TOC entry 143 (OID 35442) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2275,7 +2260,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 146 (OID 32262) +-- TOC entry 144 (OID 35446) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2284,7 +2269,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 147 (OID 32266) +-- TOC entry 145 (OID 35450) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2293,7 +2278,7 @@ ALTER TABLE ONLY attr_value -- --- TOC entry 148 (OID 32270) +-- TOC entry 146 (OID 35454) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2302,7 +2287,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 149 (OID 32274) +-- TOC entry 147 (OID 35458) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2311,7 +2296,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 98 (OID 32278) +-- TOC entry 97 (OID 35462) -- Name: jrn_rapt_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2320,7 +2305,7 @@ ALTER TABLE ONLY jrn_rapt -- --- TOC entry 150 (OID 32280) +-- TOC entry 148 (OID 35464) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2329,7 +2314,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 99 (OID 32284) +-- TOC entry 98 (OID 35468) -- Name: jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2338,7 +2323,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 103 (OID 32286) +-- TOC entry 102 (OID 35470) -- Name: stock_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -2347,7 +2332,7 @@ ALTER TABLE ONLY stock_goods -- --- TOC entry 3 (OID 30954) +-- TOC entry 3 (OID 34109) -- Name: s_periode; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2355,7 +2340,7 @@ SELECT pg_catalog.setval ('s_periode', 52, true); -- --- TOC entry 5 (OID 30956) +-- TOC entry 5 (OID 34111) -- Name: s_currency; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2363,7 +2348,7 @@ SELECT pg_catalog.setval ('s_currency', 1, true); -- --- TOC entry 7 (OID 30969) +-- TOC entry 7 (OID 34124) -- Name: s_jrn_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2371,7 +2356,7 @@ SELECT pg_catalog.setval ('s_jrn_def', 5, false); -- --- TOC entry 9 (OID 30971) +-- TOC entry 9 (OID 34126) -- Name: s_grpt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2379,7 +2364,7 @@ SELECT pg_catalog.setval ('s_grpt', 1, false); -- --- TOC entry 11 (OID 30973) +-- TOC entry 11 (OID 34128) -- Name: s_jrn_op; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2387,7 +2372,7 @@ SELECT pg_catalog.setval ('s_jrn_op', 1, false); -- --- TOC entry 13 (OID 30975) +-- TOC entry 13 (OID 34130) -- Name: s_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2395,7 +2380,7 @@ SELECT pg_catalog.setval ('s_jrn', 1, false); -- --- TOC entry 15 (OID 30991) +-- TOC entry 15 (OID 34146) -- Name: s_jrnx; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2403,7 +2388,7 @@ SELECT pg_catalog.setval ('s_jrnx', 1, false); -- --- TOC entry 17 (OID 31009) +-- TOC entry 17 (OID 34164) -- Name: s_formdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2411,7 +2396,7 @@ SELECT pg_catalog.setval ('s_formdef', 1, false); -- --- TOC entry 19 (OID 31011) +-- TOC entry 19 (OID 34166) -- Name: s_form; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2419,7 +2404,7 @@ SELECT pg_catalog.setval ('s_form', 1, false); -- --- TOC entry 21 (OID 31025) +-- TOC entry 21 (OID 34180) -- Name: s_isup; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2427,7 +2412,7 @@ SELECT pg_catalog.setval ('s_isup', 1, false); -- --- TOC entry 23 (OID 31027) +-- TOC entry 23 (OID 34182) -- Name: s_idef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2435,7 +2420,7 @@ SELECT pg_catalog.setval ('s_idef', 1, false); -- --- TOC entry 25 (OID 31029) +-- TOC entry 25 (OID 34184) -- Name: s_centralized; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2443,7 +2428,7 @@ SELECT pg_catalog.setval ('s_centralized', 1, false); -- --- TOC entry 27 (OID 31038) +-- TOC entry 27 (OID 34193) -- Name: s_user_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2451,7 +2436,7 @@ SELECT pg_catalog.setval ('s_user_jrn', 1, false); -- --- TOC entry 29 (OID 31040) +-- TOC entry 29 (OID 34195) -- Name: s_user_act; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2459,7 +2444,7 @@ SELECT pg_catalog.setval ('s_user_act', 1, false); -- --- TOC entry 31 (OID 31059) +-- TOC entry 31 (OID 34214) -- Name: s_jrnaction; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2467,7 +2452,7 @@ SELECT pg_catalog.setval ('s_jrnaction', 5, true); -- --- TOC entry 33 (OID 31079) +-- TOC entry 33 (OID 34234) -- Name: s_fiche; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2475,7 +2460,7 @@ SELECT pg_catalog.setval ('s_fiche', 20, true); -- --- TOC entry 35 (OID 31081) +-- TOC entry 35 (OID 34236) -- Name: s_fiche_def_ref; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2483,7 +2468,7 @@ SELECT pg_catalog.setval ('s_fiche_def_ref', 1, false); -- --- TOC entry 37 (OID 31083) +-- TOC entry 37 (OID 34238) -- Name: s_fdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2491,7 +2476,7 @@ SELECT pg_catalog.setval ('s_fdef', 6, true); -- --- TOC entry 39 (OID 31085) +-- TOC entry 39 (OID 34240) -- Name: s_attr_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2499,7 +2484,7 @@ SELECT pg_catalog.setval ('s_attr_def', 1, false); -- --- TOC entry 41 (OID 31087) +-- TOC entry 41 (OID 34242) -- Name: s_jnt_fic_att_value; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2507,7 +2492,7 @@ SELECT pg_catalog.setval ('s_jnt_fic_att_value', 145, true); -- --- TOC entry 43 (OID 31127) +-- TOC entry 43 (OID 34282) -- Name: s_stock_goods; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -2515,7 +2500,7 @@ SELECT pg_catalog.setval ('s_stock_goods', 1, false); -- --- TOC entry 45 (OID 31129) +-- TOC entry 45 (OID 34284) -- Name: s_jrn_rapt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta --