From 29c0a870bc5e47dd9980b5d36040d58e0db4dd5d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 3 Oct 2004 16:48:51 +0000 Subject: [PATCH] UNSTABLE do not use it !! --- Changelog | 36 ++ INSTALL-fr.txt | 164 +++-- html/admin_repo.php | 4 +- html/annulation.php | 4 +- html/compta.php | 6 +- html/compta_login.php | 4 +- html/dossier_prefs.php | 2 +- html/enc_jrn.php | 22 +- html/fiche_new.php | 4 +- html/fiche_search.php | 2 +- html/impress.php | 4 +- html/index.php | 6 +- html/jrn_add.php | 2 +- html/jrn_detail.php | 2 +- html/jrn_op_detail.php | 2 +- html/jrn_search.php | 4 +- html/login.php | 4 +- html/modify_op.php | 4 +- html/pcmn_update.php | 14 +- html/poste_search.php | 6 +- html/print_balance.php | 4 +- html/print_invoice.php | 10 +- html/priv_user.php | 20 +- html/rate_chg.php | 2 +- html/send.php | 2 +- html/send_jrn_pdf.php | 14 +- html/send_poste_pdf.php | 2 +- html/user_advanced.php | 2 +- html/user_compta.php | 6 +- html/user_jrn.php | 75 ++- html/user_sec.php | 8 +- include/ac_common.php | 3 +- include/check_priv.php | 3 +- include/debug.php | 20 +- include/fiche_inc.php | 38 +- include/form_inc.php | 2 +- include/form_input.php | 44 +- include/impress_inc.php | 18 +- include/jrn.php | 36 +- include/postgres.php | 16 +- include/preference.php | 2 +- include/top_menu_compta.php | 4 +- include/user_action_ach.php | 2 +- include/user_action_fin.php | 2 +- include/user_action_ods.php | 2 +- include/user_action_ven.php | 15 +- include/user_common.php | 16 +- include/user_menu.php | 21 +- include/user_update.php | 2 +- install.sh | 9 +- sql/dossier1/constraint.sql | 8 +- sql/dossier1/data.sql | 1116 ++++++++++++++++++----------------- sql/dossier1/make-sql | 4 +- sql/dossier1/schema.sql | 435 +++++++++----- sql/dossier1/sequence.sql | 21 +- sql/dossier1/table.sql | 34 +- style-light.css | 5 +- 57 files changed, 1333 insertions(+), 986 deletions(-) diff --git a/Changelog b/Changelog index 02081a667..a0b451566 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,41 @@ +2004-10-03 sparkyx + + * html/login.php, html/modify_op.php, html/pcmn_update.php, html/poste_search.php, html/print_balance.php, html/print_invoice.php, html/priv_user.php, html/rate_chg.php, html/send.php, html/send_jrn_pdf.php, html/send_poste_pdf.php, html/user_advanced.php, html/user_compta.php, html/user_jrn.php, html/user_sec.php, include/ac_common.php, include/check_priv.php, include/debug.php, include/fiche_inc.php, include/form_inc.php, include/form_input.php, include/impress_inc.php, include/jrn.php, include/postgres.php, include/preference.php, include/top_menu_compta.php, include/user_action_ach.php, include/user_action_fin.php, include/user_action_ods.php, include/user_action_ven.php, include/user_common.php, include/user_menu.php, include/user_update.php, sql/dossier1/constraint.sql, sql/dossier1/data.sql, sql/dossier1/make-sql, sql/dossier1/schema.sql, sql/dossier1/sequence.sql, sql/dossier1/table.sql, INSTALL-fr.txt, html/admin_repo.php, html/annulation.php, html/compta.php, html/compta_login.php, html/dossier_prefs.php, html/enc_jrn.php, html/fiche_new.php, html/fiche_search.php, html/impress.php, html/index.php, html/jrn_add.php, html/jrn_detail.php, html/jrn_op_detail.php, html/jrn_search.php, install.sh, style-light.css: + UNSTABLE do not use it !! + + * sql/account_repository/make-sql, sql/dossier1/constraint.sql, sql/dossier1/data.sql, sql/dossier1/make-sql, sql/dossier1/schema.sql, sql/dossier1/sequence.sql, sql/dossier1/table.sql, sql/mod1/e, sql/mod1/fct.sql, sql/mod1/fct.sql~, sql/mod1/function.sql, sql/mod1/index.sql, sql/mod1/log, sql/mod1/make-sql, sql/mod1/make-sql~, sql/mod1/schema.sql, sql/mod1/view.sql: + New database files + +2004-09-22 sparkyx + + * doc/INSTALL-fr.sgml, doc/FAQ-fr.sgml, doc/FAQ-fr.txt, doc/function.txt: + Improve doc + + * sql/ac_dossier.sql, sql/ac_users.sql, sql/account_repository/constraint.sql, sql/account_repository/data.sql, sql/account_repository/make-sql, sql/account_repository/schema.sql, sql/account_repository/sequence.sql, sql/account_repository/table.sql, sql/mod1/ac_dossier.sql, sql/mod1/ac_users.sql, sql/mod1/constraint.sql, sql/mod1/data.sql, sql/mod1/jnt_use_dos.sql, sql/mod1/make-sql, sql/mod1/modeledef.sql, sql/mod1/schema.sql, sql/mod1/sequence.sql, sql/mod1/table.sql, sql/mod1/theme.sql, sql/priv_user.sql, sql/theme.sql, sql/version.sql: + Separate sql instead of a big sql + +2004-07-06 sparkyx + + * install.sh: bug 9574 + +2004-06-12 sparkyx + + * doc/INSTALL-fr.sgml: task 3106 + + * doc/INSTALL-fr.sgml: Update doc task 3106 + 2004-06-06 sparkyx + * sql/update/dossier_3.sql, sql/update/dossier_4.sql, sql/update/mod_3.sql, sql/update/mod_4.sql: + set database version to 5 + + * INSTALL-fr.txt, install.sh: Set database version to 5 + + * setenv.sh: remove personal info + + * Changelog, sql/account_repository.sql, sql/demo.sql, sql/mod-be.sql: + Change the Database Version + * include/debug.php: no debug info in prod 2004-05-19 sparkyx diff --git a/INSTALL-fr.txt b/INSTALL-fr.txt index 47484d386..3f51b008e 100644 --- a/INSTALL-fr.txt +++ b/INSTALL-fr.txt @@ -12,36 +12,55 @@ Table of Contents - 1. Postgresql (version 732 minimum) - 1.1 Installation - 1.2 Configuration et démarrage de PostgreSql + 1. Linux + 2. Postgresql (version 732 minimum) + 2.1 Installation + 2.2 Configuration et démarrage de PostgreSql + 2.3 Pour la sécurité + 2.4 Pour la sécurité - 2. Apache - 2.1 Installation d'Apache - 2.2 Configuration d'Apache + 3. Apache + 3.1 Installation d'Apache + 3.2 Configuration d'Apache - 3. PHP - 3.1 Installation de PHP 4.3.1 - 3.2 Configuration de PHP : Fichier php.ini + 4. PHP + 4.1 Installation de PHP 4.3.1 + 4.2 Configuration de PHP : Fichier php.ini - 4. Installation de PhpCompta - 5. Conclusion - 6. Remarque + 5. Installation de PhpCompta + 6. Conclusion + 7. Remarque ______________________________________________________________________ - 1. Postgresql (version 732 minimum) + 1. Linux - 1.1. Installation + Si vous installez sur Linux, l'installation d'apache, postgres et php + peut se faire avec les "packages" standards fournis; ces "packages" + sont largement suffisants. Les explications données ici sur + l'installation de ces produits est destinées à ceux devant le faire + manuellement. + + + Cependant, les configurations des différents produits est important et + devrait être lues avant d'appeler à l'aide. + + + + 2. Postgresql (version 732 minimum) + + 2.1. Installation Soit avec des binaires préparés, soit à partir du code source + + Si vous décidez de le compiler vous-même, les options suivantes fonctionnent ./configure -with-tk --with-python --with-perl --prefix=/opt/psql732 - 1.2. Configuration et démarrage de PostgreSql + 2.2. Configuration et démarrage de PostgreSql Comme d'habitude pour postgres, il faut tout d'abord définir, créer l'utilisateur postgres puis initialiser l'endroit où seront stocké vos @@ -62,7 +81,6 @@ ex: export PATH=$PATH:/opt/psql732/bin - Il est impératif d'avoir l'option -i, sinon le server HTTP ne pourra pas contacter PostgreSql @@ -71,23 +89,83 @@ Ce fichier doit au moins contenir la ligne: - # TYPE DATABASE USER IP-ADDRESS IP-MASK - METHOD host all phpcompta 172.16.30.0 - 255.255.255.0 trust + # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD + <<<<<<< INSTALL-fr.sgml + host all phpcompta 172.16.30.0 255.255.255.0 local + + ======= + host all phpcompta 172.16.30.0 255.255.255.0 local - Il vaut mieux remplacer 172.16.30.0 par l'adresse du server HTTP, dans - le cas où vous utilisez un VirtualHost avec une adresse IP, c'est - cette adresse qu'il vous faudra mettre il faut aussi que l'utilisateur - qui installera ce programme existe pour postgres et puisse créer des - utilisateur et des bases de données la commande + >>>>>>> 1.8 Il vaut mieux remplacer 172.16.30.0 par l'adresse du + server HTTP, dans le cas où vous utilisez un VirtualHost avec une + adresse IP, c'est cette adresse qu'il vous faudra mettre il faut aussi + que l'utilisateur qui installera ce programme existe pour postgres et + puisse créer des utilisateur et des bases de données la commande /opt/psql732/bin/createuser -a -d $USER + <<<<<<< INSTALL-fr.sgml - 2. Apache + 2.3. Pour la sécurité - 2.1. Installation d'Apache + Vous pouvez ajouter la sécurité à votre server Postgresql en changeant + dans pg_hba.conf. Mais avant de faire cela, ajoutez un mot de passe à + vos utilisateurs avec la commande remplacer .1. par le nom de + l'utilisateur et .2. par son mot de passe + + changement mot de passe alter user .1. password '.2.' + + + + Sécurité # TYPE DATABASE USER IP-ADDRESS + IP-MASK METHOD host all phpcompta + 172.16.30.0 255.255.255.0 md5 local all + phpcompta 172.16.30.0 255.255.255.0 md5 + + + Ensuite soit vous utilisez la variable d'environnement PGPASSWORD qui + contient votre mot de passe soit avec le fichier .pgpass dont la syn- + taxe est + + + host:port:database:username:password + + + N'oubliez pas de mettre ce fichier en mode 600 !!!! Pour executer sans + demande de mot de passe host = localhost======= + + 2.4. Pour la sécurité + + Vous pouvez ajouter la sécurité à votre server Postgresql en changeant + dans pg_hba.conf. Mais avant de faire cela, ajoutez un mot de passe à + vos utilisateurs avec la commande remplacer .1. par le nom de + l'utilisateur et .2. par son mot de passe + + changement mot de passe alter user .1. password '.2.' + + + Le fichier pg_hba.conf sera comme ceci + + Sécurité + # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD + host all phpcompta 172.16.30.0 255.255.255.0 md5 + local all phpcompta 172.16.30.0 255.255.255.0 md5 + + + Ensuite soit vous utilisez la variable d'environnement PGPASSWORD qui + contient votre mot de passe soit avec le fichier .pgpass dont la syn- + taxe est + + host:port:database:username:password + + + N'oubliez pas de mettre ce fichier en mode 600 !!!! Pour executer sans + demande de mot de passe host = localhost>>>>>>> 1.8 + + 3. Apache + + 3.1. Installation d'Apache Si vous décidez de le compiler vous-même, les options suivantes fonctionnent @@ -97,7 +175,7 @@ --enable-headers \ --enable-info - 2.2. Configuration d'Apache + 3.2. Configuration d'Apache Le fichier httpd.conf doit au moins contenir. Pour plus d'information, voir le manuel d'Apache. @@ -116,29 +194,29 @@ Apache se démarre avec apachectl start - 3. PHP - 3.1. Installation de PHP 4.3.1 + 4. PHP + + 4.1. Installation de PHP 4.3.1 Il doit être compilé le dernier !!! Si vous décidez de le compiler vous-même, les options suivantes fonctionnent - - ./configure --prefix=/opt/php431 \ - --with-apxs2=/opt/http2/bin/apxs \ - --with-fastcgi \ - --with-zlib \ - --with-pgsql=/opt/psql732 \ - --with-mysql \ - --with-apache2=/software/httpd-2.0.44 + ./configure --prefix=/opt/php431 \ + --with-apxs2=/opt/http2/bin/apxs \ + --with-fastcgi \ + --with-zlib \ + --with-pgsql=/opt/psql732 \ + --with-mysql \ + --with-apache2=/software/httpd-2.0.44 le répertoire /software/httpd-2.0.44 est le répertoire ou vous installer les sources d'apache - 3.2. Configuration de PHP : Fichier php.ini + 4.2. Configuration de PHP : Fichier php.ini s'il n'existe pas, vous devez le créer, l'endroit où vous le trouverez dépend des options de compilation. Dans le cas, où vous avez compilé @@ -173,7 +251,7 @@ - 4. Installation de PhpCompta + 5. Installation de PhpCompta On suppose que postgresql est installé correctement Etape @@ -182,28 +260,26 @@ createuser -d phpcompta - · Là on vous comptez installer le soft, créer le répertoire, règler les permissions · connecter vous en tant que l'utilisateur qu'il a le droit dans le répertoire décrit plus haut, puis taper ./install.sh - - 5. Conclusion + 6. Conclusion Voilà maintenant, il vous suffit de faire ./install.sh pour tout installer; puis d'aller avec votre navigateur sur l'url. http://adresse_ip_du_virtualhost/test.php. Vous verrez directement, si l'application fonctionne. - 6. Remarque + 7. Remarque · Il faut créer le répertoire où seront mis l'application elle-même, ici, les fichiers seront dans /home/httpd/compta, l'endroit est défini dans setenv.sh. Créer ce répertoire, le propriétaire de - répertoire doit être le même que celui qui fera installera + répertoire doit être le même que celui qui installera l'application. Cet utiliserateur devra aussi avoir le privilège de créer un utilisateur pour postgres (fonction createuser). diff --git a/html/admin_repo.php b/html/admin_repo.php index 4f8823174..a56360196 100644 --- a/html/admin_repo.php +++ b/html/admin_repo.php @@ -23,7 +23,7 @@ include_once("ac_common.php"); include_once("postgres.php"); include_once("debug.php"); html_page_start($g_UserProperty['use_theme']); -echo_debug("entering admin_repo"); +echo_debug(__FILE__,__LINE__,"entering admin_repo"); CheckUser(); if ($g_UserProperty['use_admin'] != 1) { @@ -53,7 +53,7 @@ if ( isset ($_GET["action"]) ) { // Show all the existing user on 7 columns $cn=GetAllUser(); - echo_debug("Array = $cn"); + echo_debug(__FILE__,__LINE__,"Array = $cn"); $compteur=0; ?> diff --git a/html/annulation.php b/html/annulation.php index 18f1da4ee..010a6c0d5 100644 --- a/html/annulation.php +++ b/html/annulation.php @@ -56,7 +56,7 @@ $cn=DbConnect($l_Db); list ($l_array,$max_deb,$max_cred)=GetData($cn,$jrn_op); foreach ($l_array as $key=>$element) { ${"e_$key"}=$element; - echo_debug("e_$key =$element"); + echo_debug(__FILE__,__LINE__,"e_$key =$element"); } // annulate a operation @@ -81,7 +81,7 @@ if ( isset ($annul) ) { list ($l_date_start,$l_date_end)=GetPeriode($cn,$userPref); // Date dans la periode active - echo_debug ("date start periode $l_date_start date fin periode $l_date_end date demandée $e_op_date"); + echo_debug(__FILE__,__LINE__,"date start periode $l_date_start date fin periode $l_date_end date demandée $e_op_date"); if ( cmpDate($e_op_date,$l_date_start)<0 || cmpDate($e_op_date,$l_date_end)>0 ) { diff --git a/html/compta.php b/html/compta.php index 31f959d16..cb61b4206 100644 --- a/html/compta.php +++ b/html/compta.php @@ -25,18 +25,18 @@ html_page_start($g_UserProperty['use_theme']); if ( isset ( $dos ) ) { $g_dossier=$dos; session_register("g_dossier"); - echo_debug("admin_dossier = $g_dossier "); + echo_debug(__FILE__,__LINE__,"admin_dossier = $g_dossier "); } else { echo "You must choose a Dossier "; exit -2; } include_once ("postgres.php"); -echo_debug ("user is $g_user"); +echo_debug(__FILE__,__LINE__,"user is $g_user"); /* CheckUser */ CheckUser(); -echo_debug("theme ".$g_UserProperty['use_theme']); +echo_debug(__FILE__,__LINE__,"theme ".$g_UserProperty['use_theme']); if ( $g_UserProperty['use_admin'] == 0 ) { diff --git a/html/compta_login.php b/html/compta_login.php index 3f8b07f79..961fa49f9 100644 --- a/html/compta_login.php +++ b/html/compta_login.php @@ -30,10 +30,10 @@ include_once("debug.php"); html_page_start($g_UserProperty['use_theme']); if ( isset ($db_page) ) { - echo_debug("db_page is set ".$db_page); + echo_debug(__FILE__,__LINE__,"db_page is set ".$db_page); } else { - echo_debug("db_page is NOT set"); + echo_debug(__FILE__,__LINE__,"db_page is NOT set"); $db_page=0; } diff --git a/html/dossier_prefs.php b/html/dossier_prefs.php index 00a0344bc..eb94e5c18 100644 --- a/html/dossier_prefs.php +++ b/html/dossier_prefs.php @@ -130,7 +130,7 @@ if ( isset ($_POST["add_per"] )) { } -echo_debug ("Action $action"); +echo_debug(__FILE__,__LINE__,"Action $action"); if ( $action == "Change") { $Res=ExecSql($cn,"update parm_money set pm_code='$p_devise',pm_rate=$p_rate where pm_id=$p_id"); ShowDevise($cn); diff --git a/html/enc_jrn.php b/html/enc_jrn.php index 4f2cfdeec..8cc7a9c3a 100644 --- a/html/enc_jrn.php +++ b/html/enc_jrn.php @@ -84,7 +84,7 @@ if ( isset ( $_GET["action"] )) { exit -1; } - echo_debug("record"); + echo_debug(__FILE__,__LINE__,"record"); $max_deb=$_GET["max_deb"]; $max_cred=$_GET["max_cred"]; RecordJrn($g_dossier,$g_user,$g_jrn,$max_deb,$max_cred); @@ -98,7 +98,7 @@ if ( isset ( $_GET["action"] )) { } // p_id is jrn.jr_id $p_id=$_GET["line"]; - echo_debug(" action = update p_id = $p_id"); + echo_debug(__FILE__,__LINE__," action = update p_id = $p_id"); $r =''; $r.=UpdateJrn($cn,$p_id); $r.=''; @@ -120,7 +120,7 @@ if ( isset ( $_GET["action"] )) { $p_MaxDeb+=2; echo ""; CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS); - echo_debug("CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);"); + echo_debug(__FILE__,__LINE__,"CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);"); } if ( isset ($_POST['add_line_cred']) ) { @@ -131,7 +131,7 @@ if ( isset ( $_GET["action"] )) { $p_MaxCred+=2; echo ""; CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS); - echo_debug("CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred+10,$HTTP_POST_VARS);"); + echo_debug(__FILE__,__LINE__,"CorrectRecord($g_dossier,$g_user,$g_jrn,$p_MaxDeb,$p_MaxCred+10,$HTTP_POST_VARS);"); } if ( isset ($_POST['viewsearch']) ) { reset($HTTP_POST_VARS); @@ -146,7 +146,7 @@ if ( isset ( $_GET["action"] )) { if ( isset($_POST['add_record']) ) { echo '
'; foreach ( $HTTP_POST_VARS as $name=>$element ) { - echo_debug("element $name -> $element "); + echo_debug(__FILE__,__LINE__,"element $name -> $element "); // Sauve les données dans des variables ${"p_$name"}=$element; } @@ -154,7 +154,7 @@ if ( isset($_POST['add_record']) ) { list ($l_date_start,$l_date_end)=GetPeriode($cn,$userPref); $p_op_date=$p_op_date.substr($l_date_start,2,8); - echo_debug("p_op_date is $p_op_date"); + echo_debug(__FILE__,__LINE__,"p_op_date is $p_op_date"); $aHttp=$HTTP_POST_VARS; $aHttp['op_date']=$p_op_date; // Verifie data @@ -190,7 +190,7 @@ if ( isset($_POST['add_record']) ) { .$montant.", $l_class,$seq, $g_jrn,true,'$g_user',$userPref)"; - echo_debug("sql $Sql"); + echo_debug(__FILE__,__LINE__,"sql $Sql"); $s_op++; $tot_deb+=$montant; $Res=ExecSql($cn,$Sql); @@ -210,7 +210,7 @@ if ( isset($_POST['add_record']) ) { values ( $s_op,to_date('$p_op_date','DD.MM.YYYY'), $montant, $l_class,$seq, $g_jrn,false,'$g_user',$userPref)"; - echo_debug("sql $Sql"); + echo_debug(__FILE__,__LINE__,"sql $Sql"); $s_op++; $tot_cred+=$montant; $Res=ExecSql($cn,$Sql); @@ -241,7 +241,7 @@ if ( isset($_POST['add_record']) ) { $comment, $p_ech, $seq,$tot_deb,$userPref); - echo_debug("Sql $Sql"); + echo_debug(__FILE__,__LINE__,"Sql $Sql"); $Res=ExecSql($cn,$Sql); if ($Res) SetInternalCode($cn,$seq,$g_jrn); @@ -259,8 +259,8 @@ if ( isset($_POST['add_record']) ) { // Add the p_text to the array ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$aHttp); - // echo_debug("ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);"); - echo_debug("ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$aHttp);"); + // echo_debug(__FILE__,__LINE__,"ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$HTTP_POST_VARS);"); + echo_debug(__FILE__,__LINE__,"ViewRecord($g_dossier,$g_jrn,$seq,$p_MaxDeb,$p_MaxCred,$aHttp);"); } else { Rollback($cn); diff --git a/html/fiche_new.php b/html/fiche_new.php index 58cbcc97d..be04d8bfc 100644 --- a/html/fiche_new.php +++ b/html/fiche_new.php @@ -48,7 +48,7 @@ $cn=DbConnect($l_Db); foreach ($HTTP_GET_VARS as $key=>$element) { // The value are e_name e_type e_PHPSESSID ${"e_$key"}=$element; - echo_debug("e_$key =$element
"); + echo_debug(__FILE__,__LINE__,"e_$key =$element
"); } @@ -64,7 +64,7 @@ function new_fiche($p_cn,$p_type) { $r.="
"; echo '

New

'; $p_f_id=""; - echo_debug("Array is null"); + echo_debug(__FILE__,__LINE__,"Array is null"); // Find all the attribute of the existing cards // --> Get_attr_def $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) diff --git a/html/fiche_search.php b/html/fiche_search.php index 9d4be9fc9..8ec1e6a0b 100644 --- a/html/fiche_search.php +++ b/html/fiche_search.php @@ -81,7 +81,7 @@ $r=""; foreach ($HTTP_GET_VARS as $key=>$element) { // The value are e_name e_type e_PHPSESSID ${"e_$key"}=$element; - echo_debug("e_$key =$element
"); + echo_debug(__FILE__,__LINE__,"e_$key =$element
"); } $e_fic_search=(isset ($_POST['fic_search']))?$_POST['fic_search']:""; diff --git a/html/impress.php b/html/impress.php index cca152571..d683f2c3f 100644 --- a/html/impress.php +++ b/html/impress.php @@ -35,7 +35,7 @@ ShowMenuCompta($g_dossier,$g_UserProperty); // the advanced menu in the user interface if ( isset ($_GET['direct'])) { if ( isset ($g_jrn) ) { - echo_debug("g_jrn is set --> come from user_profile"); + echo_debug(__FILE__,__LINE__,"g_jrn is set --> come from user_profile"); $p_id=$g_jrn; } else { if (isset ($_GET["p_id"]) ) { @@ -94,7 +94,7 @@ if ( $g_UserProperty['use_usertype'] == 'user') { // Ask the period if ( isset ( $_GET["action"]) ) { - echo_debug(" action is set "); + echo_debug(__FILE__,__LINE__," action is set "); $a_print=$HTTP_GET_VARS; // p_id come from the user interface if ( isset($p_id) and isset ( $_GET['direct'])) { diff --git a/html/index.php b/html/index.php index 489be6c21..3f1870c16 100644 --- a/html/index.php +++ b/html/index.php @@ -9,13 +9,13 @@ echo '
- +
- + - + diff --git a/html/jrn_add.php b/html/jrn_add.php index 4823e48ea..26c855523 100644 --- a/html/jrn_add.php +++ b/html/jrn_add.php @@ -74,7 +74,7 @@ If ( isset ($_POST["JRN_ADD"]) ) { else $l_cred_max_line=$_POST['p_jrn_cred_max_line']; $p_jrn_name=$_POST["p_jrn_name"]; -echo_debug("nom journal $p_jrn_name"); +echo_debug(__FILE__,__LINE__,"nom journal $p_jrn_name"); $p_jrn_class_deb=FormatString($_POST["p_jrn_class_deb"]); if (strlen(trim($p_jrn_name))==0) return; $p_jrn_name=FormatString($p_jrn_name); diff --git a/html/jrn_detail.php b/html/jrn_detail.php index e7c6ef529..da882d53b 100644 --- a/html/jrn_detail.php +++ b/html/jrn_detail.php @@ -179,7 +179,7 @@ $Max=pg_NumRows($Res); for ($i=0;$i<$Max;$i++) { $Line=pg_fetch_array($Res,$i); - echo_debug("jrn type !".$Line['jrn_type_id']."!,!".$l_line['jrn_def_type']."!"); + echo_debug(__FILE__,__LINE__,"jrn type !".$Line['jrn_type_id']."!,!".$l_line['jrn_def_type']."!"); printf (' %s',$Line['jrn_desc']); } echo ''; diff --git a/html/jrn_op_detail.php b/html/jrn_op_detail.php index 6c00a5198..30a23d939 100644 --- a/html/jrn_op_detail.php +++ b/html/jrn_op_detail.php @@ -42,7 +42,7 @@ $jrn_op=$_GET['jrn_op']; list ($l_array,$max_deb,$max_cred)=GetData($cn,$jrn_op); foreach ($l_array as $key=>$element) { ${"e_$key"}=$element; - echo_debug("jrn_op_detail.php e_$key =$element"); + echo_debug(__FILE__,__LINE__,"jrn_op_detail.php e_$key =$element"); } echo '
Opération
'; diff --git a/html/jrn_search.php b/html/jrn_search.php index 217c42dc8..948bff197 100644 --- a/html/jrn_search.php +++ b/html/jrn_search.php @@ -54,7 +54,7 @@ $cn=DbConnect($l_Db); if ( isset ($_POST["search"]) ) { $c1=0; foreach( $HTTP_POST_VARS as $key=>$element){ - echo_debug("$key = $element"); + echo_debug(__FILE__,__LINE__,"$key = $element"); ${"$key"}=$element; } @@ -75,7 +75,7 @@ if ( isset ($_POST["search"]) ) { $opt_date.=''; echo ''; echo ''; - echo_debug(" closed : $l_line[p_closed]"); + echo_debug(__FILE__,__LINE__," closed : $l_line[p_closed]"); if ( $l_line['p_closed'] == 't' ) { $closed=''; $change=''; diff --git a/include/top_menu_compta.php b/include/top_menu_compta.php index af30946cf..220b860c4 100644 --- a/include/top_menu_compta.php +++ b/include/top_menu_compta.php @@ -308,11 +308,11 @@ function ShowMenuJrnUser($p_dossier,$p_auser,$p_type=-1,$p_jrn=-1) function ShowMenuRecherche($p_dossier,$p_jrn,$p_array=null) { - echo_debug("ShowMenuRecherche($p_dossier,$p_jrn,$p_array)"); + echo_debug(__FILE__,__LINE__,"ShowMenuRecherche($p_dossier,$p_jrn,$p_array)"); if ( $p_array != null ) { foreach ( $p_array as $key=> $element) { ${"p_$key"}=$element; - echo_debug("p_$key =$element;"); + echo_debug(__FILE__,__LINE__,"p_$key =$element;"); } } $opt='
LOGIN LOGIN
PASSWORD PASSWORD
"; - echo_debug("search $search"); + echo_debug(__FILE__,__LINE__,"search $search"); // To avoid problem with unknown variable if ( ! isset ($e_rapt) ) { $e_rapt=""; @@ -279,7 +279,7 @@ if ( $p_update == 0 ) echo "
$e) { - echo_debug("a[$n]= $e"); + echo_debug(__FILE__,__LINE__,"a[$n]= $e"); } } @@ -438,10 +438,10 @@ function CorrectRecord($p_dossier,$p_user,$p_jrn,$p_MaxDeb,$p_MaxCred,$p_array) function ViewRecord ($p_dossier,$p_jrn,$p_id,$p_MaxDeb,$p_MaxCred,$p_array) { echo_debug ("ViewRecord : $p_dossier"); - echo_debug("function ViewRecord ($p_dossier,$p_jrn,$p_id,$p_MaxCred,$p_MaxDeb,$p_array)"); + echo_debug(__FILE__,__LINE__,"function ViewRecord ($p_dossier,$p_jrn,$p_id,$p_MaxCred,$p_MaxDeb,$p_array)"); foreach ( $p_array as $key=>$element) { ${"e_$key"}=$element; - echo_debug(" e_$key=$element;"); + echo_debug(__FILE__,__LINE__," e_$key=$element;"); } // Get Jrn's Prop @@ -558,7 +558,7 @@ function GetNextId($p_cn,$p_name) { include_once("postgres.php"); $Res=ExecSql($p_cn,"select max($p_name) as result from jrnx"); - echo_debug("$Res=ExecSql($p_cn,"."select max($p_name) as result from jrnx"); + echo_debug(__FILE__,__LINE__,"$Res=ExecSql($p_cn,"."select max($p_name) as result from jrnx"); if (pg_NumRows($Res) == 0 ) return 0; $l_res=pg_fetch_array($Res,0); @@ -578,7 +578,7 @@ function GetNextId($p_cn,$p_name) { function GetNextJrnId($p_cn,$p_name) { include_once("postgres.php"); $Res=ExecSql($p_cn,"select max($p_name) as result from jrn "); - echo_debug("$Res=ExecSql($p_cn,"."select max($p_name) as result from jrn "); + echo_debug(__FILE__,__LINE__,"$Res=ExecSql($p_cn,"."select max($p_name) as result from jrn "); if (pg_NumRows($Res) == 0 ) return 0; @@ -601,7 +601,7 @@ function GetNextJrnId($p_cn,$p_name) { * */ function ViewJrn($p_dossier,$p_user,$p_jrn,$p_url,$p_array=null) { - echo_debug("function ViewJrn($p_dossier,$p_user,$p_jrn,$p_array=null) "); + echo_debug(__FILE__,__LINE__,"function ViewJrn($p_dossier,$p_user,$p_jrn,$p_array=null) "); echo JS_VIEW_JRN_DETAIL; $db=sprintf("dossier%d",$p_dossier); $l_prop=GetJrnProp($p_dossier,$p_jrn); @@ -729,7 +729,7 @@ function ViewJrn($p_dossier,$p_user,$p_jrn,$p_url,$p_array=null) { * */ function GetData ($p_cn,$p_grpt) { - echo_debug("GetData $p_cn $p_grpt"); + echo_debug(__FILE__,__LINE__,"GetData $p_cn $p_grpt"); $Res=ExecSql($p_cn,"select to_char(j_date,'DD.MM.YYYY') as j_date, j_text, @@ -862,7 +862,7 @@ function VerifData($p_cn,$p_array,$p_user) // Montre ce qu'on a encodé et demande vérif $next=""; foreach ( $p_array as $name=>$element ) { - echo_debug("element $name -> $element "); + echo_debug(__FILE__,__LINE__,"element $name -> $element "); // Sauve les données dans des variables ${"p_$name"}=$element; } @@ -903,7 +903,7 @@ function VerifData($p_cn,$p_array,$p_user) if ( isset ( ${"p_mont_deb$i"} )) $tot_deb+=${"p_mont_deb$i"}; } - echo_debug("Amont = $tot_deb $tot_cred"); + echo_debug(__FILE__,__LINE__,"Amont = $tot_deb $tot_cred"); if ( round($tot_deb,2) != round($tot_cred,2) ) { return DIFF_AMOUNT; } @@ -988,7 +988,7 @@ function SetInternalCode($p_cn,$p_grpt,$p_jrn) * */ function GetDataJrnJrId ($p_cn,$p_jr_id) { - echo_debug("GetDataJrn $p_cn $p_jr_id"); + echo_debug(__FILE__,__LINE__,"GetDataJrn $p_cn $p_jr_id"); $Res=ExecSql($p_cn,"select j_text, j_debit, diff --git a/include/postgres.php b/include/postgres.php index dbeeb51a9..6c550e0d3 100644 --- a/include/postgres.php +++ b/include/postgres.php @@ -34,7 +34,7 @@ function CheckUser() { global $g_user,$g_pass,$IsValid; - echo_debug("CheckUser"); + echo_debug(__FILE__,__LINE__,"CheckUser"); $res=0; $pass5=md5($g_pass); if ( $IsValid == 1 ) { return; } @@ -45,10 +45,10 @@ function CheckUser() where ac_users.use_login='$g_user' and ac_users.use_active=1 and ac_users.use_pass='$pass5'"; - echo_debug("Sql = $sql"); + echo_debug(__FILE__,__LINE__,"Sql = $sql"); $ret=pg_exec($cn,$sql); $res=pg_NumRows($ret); - echo_debug("Number of found rows : $res"); + echo_debug(__FILE__,__LINE__,"Number of found rows : $res"); } if ( $res == 0 ) { @@ -97,7 +97,7 @@ function ShowDossier($p_type,$p_first=0,$p_max=10,$p_Num=0) { $l_sql=$l_sql.$l_step; $p_res=ExecSql($cn,$l_sql); - echo_debug("ShowDossier:".$p_res." Line = $p_Num"); + echo_debug(__FILE__,__LINE__,"ShowDossier:".$p_res." Line = $p_Num"); $Max=pg_NumRows($p_res); if ( $Max == 0 ) return null; @@ -146,7 +146,7 @@ function DbConnect($p_db="account_repository") { * return false if error otherwise true */ function ExecSql($p_connection, $p_string) { - echo_debug("SQL = $p_string"); + echo_debug(__FILE__,__LINE__,"SQL = $p_string"); $ret=pg_exec($p_connection,$p_string); if ( $ret == false ) { @@ -162,10 +162,10 @@ function ExecSql($p_connection, $p_string) { * as an array */ function GetAllUser() { - echo_debug("GetUser"); + echo_debug(__FILE__,__LINE__,"GetUser"); $cn=DbConnect(); $sql="select * from ac_users where use_login!='phpcompta'"; - echo_debug("ExecSql"); + echo_debug(__FILE__,__LINE__,"ExecSql"); $Res=ExecSql($cn,$sql); $Num=pg_NumRows($Res); if ( $Num == 0 ) return null; @@ -200,7 +200,7 @@ function GetPriv($p_dossier,$p_login) inner join ac_users on ac_users.use_id=jnt_use_dos.use_id where use_login='$p_login' and dos_id=$p_dossier"); $Num=pg_NumRows($Res); - echo_debug("Found ".$Num." rows in GetPriv"); + echo_debug(__FILE__,__LINE__,"Found ".$Num." rows in GetPriv"); if ( $Num==0) { return 0;} for($i=0;$i < $Num;$i++) { $Right=pg_fetch_array($Res,$i); diff --git a/include/preference.php b/include/preference.php index 1617f0cf1..22dccbed8 100644 --- a/include/preference.php +++ b/include/preference.php @@ -316,7 +316,7 @@ function ShowPeriode($p_cn) echo ' '.$l_line['date_start'].' '.$l_line['date_end'].' '.$l_line['p_exercice'].'
'; include_once("postgres.php"); @@ -261,7 +262,7 @@ function u_ShowMenuJrnUser($p_dossier,$p_user,$p_type,$p_jrn) if ( $right > 0 ) { // Minimum Lecture - echo_debug("p_jrn = $p_jrn "); + echo_debug(__FILE__,__LINE__,"p_jrn = $p_jrn "); if ( $l_line['jrn_def_id'] != $p_jrn ) { echo '', @@ -326,11 +327,11 @@ function u_ShowMenuJrn($p_cn,$p_jrn_type) function u_ShowMenuRecherche($p_cn,$p_jrn,$p_sessid,$p_array=null) { - echo_debug("u_ShowMenuRecherche($p_cn,$p_jrn,$p_array)"); + echo_debug(__FILE__,__LINE__,"u_ShowMenuRecherche($p_cn,$p_jrn,$p_array)"); if ( $p_array != null ) { foreach ( $p_array as $key=> $element) { ${"p_$key"}=$element; - echo_debug("p_$key =$element;"); + echo_debug(__FILE__,__LINE__,"p_$key =$element;"); } } diff --git a/include/user_update.php b/include/user_update.php index 146bcc7c2..130e72f8a 100644 --- a/include/user_update.php +++ b/include/user_update.php @@ -27,7 +27,7 @@ if ( $action == 'update' ) { } // p_id is jrn.jr_id $p_id=$_GET["line"]; - echo_debug(" action = update p_id = $p_id"); + echo_debug(__FILE__,__LINE__," action = update p_id = $p_id"); echo JS_VIEW_JRN_DETAIL; echo JS_CONCERNED_OP; $r =''; diff --git a/install.sh b/install.sh index cc6cc8133..7f9d9b8ea 100755 --- a/install.sh +++ b/install.sh @@ -112,16 +112,9 @@ done [ ! -d $COMPTA_HOME/html/image ] && mkdir $COMPTA_HOME/html/image [ ! -d $COMPTA_HOME/include ] && mkdir $COMPTA_HOME/include echo "Installing source" +cp -fr html/*.php $COMPTA_HOME/html cp -fr include/*.php $COMPTA_HOME/include cp -fr html/*.html $COMPTA_HOME/html -for i in include/*.php ;do - A=`basename $i` - sed "s/echo_debug\S*(\"/echo_debug(\"include\/$A:\".__LINE__.'--'.\"/g" $i > $COMPTA_HOME/include/`basename $i` -done -for i in html/*.php ;do - A=`basename $i` - sed "s/echo_debug.*(\"/echo_debug(\"html\/$A:\".__LINE__.'--'.\"/g" $i > $COMPTA_HOME/html/`basename $i` -done cp -f style*.css $COMPTA_HOME/html cp -f html/*.js $COMPTA_HOME/html cp -fR addon $COMPTA_HOME/html diff --git a/sql/dossier1/constraint.sql b/sql/dossier1/constraint.sql index 6e389a2bf..9cf849cf9 100644 --- a/sql/dossier1/constraint.sql +++ b/sql/dossier1/constraint.sql @@ -56,10 +56,6 @@ ALTER TABLE ONLY fiche_def ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION; ALTER TABLE ONLY attr_def ADD CONSTRAINT attr_def_pkey PRIMARY KEY (ad_id); -ALTER TABLE ONLY attr_min - ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION; -ALTER TABLE ONLY attr_min - ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION; ALTER TABLE ONLY fiche ADD CONSTRAINT fiche_pkey PRIMARY KEY (f_id); ALTER TABLE ONLY fiche @@ -84,3 +80,7 @@ ALTER TABLE ONLY jrn ADD CONSTRAINT jrn_pkey PRIMARY KEY (jr_id, jr_def_id); ALTER TABLE ONLY stock_goods ADD CONSTRAINT stock_goods_pkey PRIMARY KEY (sg_id); +ALTER TABLE ONLY attr_min + ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION; +ALTER TABLE ONLY attr_min + ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION; diff --git a/sql/dossier1/data.sql b/sql/dossier1/data.sql index e306e3170..3a3e16204 100644 --- a/sql/dossier1/data.sql +++ b/sql/dossier1/data.sql @@ -5,7 +5,7 @@ SET search_path = public, pg_catalog; -- --- Data for TOC entry 23 (OID 44961) +-- Data for TOC entry 22 (OID 46333) -- Name: tmp_pcmn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -153,10 +153,6 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (409 INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (41, 'Autres créances', 4, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (410, 'Capital appelé non versé', 41, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (411, 'TVA à récupérer', 41, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4111, 'TVA à récupérer 21%', 411, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4112, 'TVA à récupérer 12%', 411, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4113, 'TVA à récupérer 6% ', 411, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4114, 'TVA à récupérer 0%', 411, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (412, 'Impôts et précomptes à récupérer', 41, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4120, 'Impôt belge sur le résultat', 412, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4121, 'Impôt belge sur le résultat', 412, 'BE'); @@ -214,10 +210,6 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (450 INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4507, 'Autres impôts et taxes belges', 450, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4508, 'Impôts et taxes étrangers', 450, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (451, 'TVA à payer', 45, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4511, 'TVA à payer 21%', 451, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4512, 'TVA à payer 12%', 451, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4513, 'TVA à payer 6%', 451, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4514, 'TVA à payer 0%', 451, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (452, 'Impôts et taxes à payer', 45, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4520, 'Impôts belges sur le résultat', 452, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4521, 'Impôts belges sur le résultat', 452, 'BE'); @@ -265,7 +257,6 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (532 INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (539, 'Réductions de valeur actées', 53, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (54, 'Valeurs échues à l''encaissement', 5, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55, 'Etablissement de crédit', 5, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (550, 'Banque 1', 55, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (5500, 'Comptes courants', 550, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (5501, 'Chèques émis (-)', 550, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (5509, 'Réduction de valeur actée', 550, 'BE'); @@ -299,6 +290,7 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (559 INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (56, 'Office des chèques postaux', 5, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (560, 'Compte courant', 56, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (561, 'Chèques émis', 56, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (57, 'Caisses', 5, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (578, 'Caisse timbre', 57, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (58, 'Virement interne', 5, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (60, 'Approvisionnement et marchandises', 6, 'BE'); @@ -492,30 +484,38 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6, INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (7, 'Produits', 0, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000001, 'Client 1', 400, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000002, 'Client 2', 400, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000003, 'Client 3', 400, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6040001, 'Electricité', 604, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6040002, 'Loyer', 604, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6040003, 'Petit matériel', 604, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6040004, 'Assurance', 604, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55000001, 'Caisse', 5500, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (57, 'Caisse', 5, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55000002, 'Banque 1', 5500, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55000003, 'Banque 2', 5500, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400001, 'Fournisseur 1', 440, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400002, 'Fournisseur 2', 440, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400003, 'Fournisseur 4', 440, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610001, 'Electricité', 61, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610002, 'Loyer', 61, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610003, 'Assurance', 61, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610004, 'Matériel bureau', 61, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (7000002, 'Marchandise A', 700, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (7000001, 'Prestation', 700, 'BE'); -INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (7000003, 'Déplacement', 700, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (70002, 'Marchandise B', 700, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400001, 'Fournisseur A', 440, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400002, 'Fournisseur B', 440, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610001, 'fourniture A', 61, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55000002, 'Argenta', 5500, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (55000001, 'Banque 1', 5500, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000003, 'Client fiche', 400, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000004, 'Toto', 400, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4000005, 'NOUVEAU CLIENT', 400, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4511, 'TVA à payer 21%', 451, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4512, 'TVA à payer 12%', 451, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4513, 'TVA à payer 6%', 451, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4514, 'TVA à payer 0%', 451, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4111, 'TVA à récupérer 21%', 411, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4112, 'TVA à récupérer 12%', 411, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4113, 'TVA à récupérer 6% ', 411, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4114, 'TVA à récupérer 0%', 411, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (70004, 'Marchandise D', 700, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (70003, 'Marchandise C', 700, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (70001, 'Marchandise A', 700, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400003, 'Fournisseur E', 440, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400004, 'Propriétaire bureau', 440, 'BE'); INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (101, 'Capital non appelé', 10, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610002, 'Loyer', 61, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (4400005, 'Fournisseur Eau Gaz', 440, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (610003, 'eau, gaz electricité', 61, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (550, 'Banque 1', 55, 'BE'); +INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) VALUES (6040001, 'Marchandise A', 604, 'BE'); -- --- Data for TOC entry 24 (OID 44968) +-- Data for TOC entry 23 (OID 46340) -- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -523,7 +523,7 @@ INSERT INTO "version" (val) VALUES (5); -- --- Data for TOC entry 25 (OID 44974) +-- Data for TOC entry 24 (OID 46346) -- Name: parm_money; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -531,10 +531,11 @@ INSERT INTO parm_money (pm_id, pm_code, pm_rate) VALUES (1, 'EUR', 1); -- --- Data for TOC entry 26 (OID 44977) +-- Data for TOC entry 25 (OID 46349) -- Name: parm_periode; Type: TABLE DATA; Schema: public; Owner: phpcompta -- +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (1, '2003-01-01', '2003-01-31', '2003', false); INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (2, '2003-02-01', '2003-02-28', '2003', false); INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (3, '2003-03-01', '2003-03-31', '2003', false); INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (4, '2003-04-01', '2003-04-30', '2003', false); @@ -547,24 +548,23 @@ INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (10 INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (11, '2003-11-01', '2003-11-30', '2003', false); INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (12, '2003-12-01', '2003-12-31', '2003', false); INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (13, '2003-12-31', NULL, '2003', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (40, '2004-01-01', '2004-01-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (41, '2004-02-01', '2004-02-28', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (42, '2004-03-01', '2004-03-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (43, '2004-04-01', '2004-04-30', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (44, '2004-05-01', '2004-05-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (45, '2004-06-01', '2004-06-30', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (46, '2004-07-01', '2004-07-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (47, '2004-08-01', '2004-08-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (48, '2004-09-01', '2004-09-30', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (49, '2004-10-01', '2004-10-30', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (50, '2004-11-01', '2004-11-30', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (51, '2004-12-01', '2004-12-31', '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (52, '2004-12-31', NULL, '2004', false); -INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (1, '2003-01-01', '2003-01-31', '2003', true); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (27, '2004-01-01', '2004-01-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (28, '2004-02-01', '2004-02-28', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (29, '2004-03-01', '2004-03-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (30, '2004-04-01', '2004-04-30', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (31, '2004-05-01', '2004-05-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (32, '2004-06-01', '2004-06-30', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (33, '2004-07-01', '2004-07-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (34, '2004-08-01', '2004-08-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (35, '2004-09-01', '2004-09-30', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (36, '2004-10-01', '2004-10-30', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (37, '2004-11-01', '2004-11-30', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (38, '2004-12-01', '2004-12-31', '2004', false); +INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed) VALUES (39, '2004-12-31', NULL, '2004', false); -- --- Data for TOC entry 27 (OID 44993) +-- Data for TOC entry 26 (OID 46365) -- Name: jrn_type; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -575,72 +575,81 @@ INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('OD ', 'Op -- --- Data for TOC entry 28 (OID 44998) +-- Data for TOC entry 27 (OID 46370) -- Name: jrn_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (4, 'Opération Diverses', NULL, NULL, NULL, NULL, 5, 5, false, NULL, 'OD ', 'OD-01'); -INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (1, 'Financier', '5* ', '5*', '3,2,4', '3,2,4', 5, 5, false, NULL, 'FIN', 'FIN-01'); INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (3, 'Achat', '6*', '4*', '5', '4', 1, 3, true, 'échéance', 'ACH', 'ACH-01'); -INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (2, 'Vente', '4*', '7*', '2', '6', 2, 1, true, 'échéance', 'VEN', 'VEN-01'); +INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (2, 'Vente', '7*', '4*', '2', '3', 1, 3, true, 'échéance', 'VEN', 'VEN-01'); +INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) VALUES (1, 'Financier', '5* ', '5*', '1,2,4,9', '1,2,4,9', 5, 5, false, NULL, 'FIN', 'FIN-01'); -- --- Data for TOC entry 29 (OID 45009) +-- Data for TOC entry 28 (OID 46381) -- Name: jrnx; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (1, '2003-01-01', 1000, 4000003, 1, NULL, 2, true, NULL, false, NULL, 'phpcompta', '2004-04-19 18:05:28.490834', 1); -INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (2, '2003-01-01', 1000, 7000002, 1, NULL, 2, false, NULL, false, NULL, 'phpcompta', '2004-04-19 18:05:28.490834', 1); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (462, '2003-01-01', 1.12345678987654, 4400003, 1, NULL, 3, false, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (463, '2003-01-01', 1.12345678987654, 610001, 1, NULL, 3, true, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (464, '2003-01-01', 1.12345678987654, 4111, 1, NULL, 3, true, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (465, '2003-01-01', 1.12345678987654, 4400003, 2, NULL, 3, true, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (466, '2003-01-01', 1.12345678987654, 610001, 2, NULL, 3, false, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); +INSERT INTO jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per, j_montant_n) VALUES (467, '2003-01-01', 1.12345678987654, 4111, 2, NULL, 3, false, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1, 1.1234567898765432123456789876543212345678987654321234567898765432123456789000000000000000000000000000); -- --- Data for TOC entry 30 (OID 45020) +-- Data for TOC entry 29 (OID 46392) -- Name: user_pref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- +INSERT INTO user_pref (pref_user, pref_periode) VALUES ('france', 1); INSERT INTO user_pref (pref_user, pref_periode) VALUES ('dany', 30); -INSERT INTO user_pref (pref_user, pref_periode) VALUES ('phpcompta', 1); +INSERT INTO user_pref (pref_user, pref_periode) VALUES ('phpcompta', 33); -- --- Data for TOC entry 31 (OID 45029) +-- Data for TOC entry 30 (OID 46401) -- Name: formdef; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 32 (OID 45035) +-- Data for TOC entry 31 (OID 46407) -- Name: form; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 33 (OID 45047) +-- Data for TOC entry 32 (OID 46417) -- Name: centralized; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 34 (OID 45058) +-- Data for TOC entry 33 (OID 46428) -- Name: user_sec_jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (1, 'phpcompta', 4, ''); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (2, 'phpcompta', 1, ''); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (1, 'phpcompta', 1, ''); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (2, 'phpcompta', 2, ''); INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (3, 'phpcompta', 3, ''); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (4, 'phpcompta', 2, ''); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (6, 'dany', 1, 'R'); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (8, 'dany', 2, 'R'); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (5, 'dany', 4, 'X'); -INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (7, 'dany', 3, 'W'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (4, 'phpcompta', 4, ''); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (6, 'dany', 2, 'NO'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (7, 'dany', 1, 'NO'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (9, 'france', 4, 'W'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (10, 'france', 2, 'W'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (11, 'france', 1, 'R'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (12, 'france', 3, 'R'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (5, 'dany', 4, 'R'); +INSERT INTO user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) VALUES (8, 'dany', 3, 'R'); -- --- Data for TOC entry 35 (OID 45064) +-- Data for TOC entry 34 (OID 46434) -- Name: action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -656,21 +665,32 @@ INSERT INTO "action" (ac_id, ac_description) VALUES (10, 'Centralise'); INSERT INTO "action" (ac_id, ac_description) VALUES (3, 'Fiche Read'); INSERT INTO "action" (ac_id, ac_description) VALUES (16, 'Voir le stock'); INSERT INTO "action" (ac_id, ac_description) VALUES (17, 'Modifie le stock'); +INSERT INTO "action" (ac_id, ac_description) VALUES (15, 'Fiche ajout'); INSERT INTO "action" (ac_id, ac_description) VALUES (14, 'Achat'); -INSERT INTO "action" (ac_id, ac_description) VALUES (15, 'Fiche écriture'); -- --- Data for TOC entry 36 (OID 45069) +-- Data for TOC entry 35 (OID 46439) -- Name: user_sec_act; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (1, 'dany', 1); -INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (2, 'dany', 14); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (1, 'france', 2); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (2, 'france', 1); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (3, 'france', 3); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (4, 'demo', 10); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (5, 'demo', 2); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (6, 'demo', 14); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (7, 'demo', 3); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (8, 'demo', 5); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (9, 'demo', 7); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (10, 'demo', 4); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (11, 'demo', 1); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (12, 'demo', 6); +INSERT INTO user_sec_act (ua_id, ua_login, ua_act_id) VALUES (13, 'demo', 8); -- --- Data for TOC entry 37 (OID 45077) +-- Data for TOC entry 36 (OID 46447) -- Name: jrn_action; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -695,7 +715,7 @@ INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_ -- --- Data for TOC entry 38 (OID 45084) +-- Data for TOC entry 37 (OID 46454) -- Name: tva_rate; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -706,7 +726,7 @@ INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUE -- --- Data for TOC entry 39 (OID 45100) +-- Data for TOC entry 38 (OID 46470) -- Name: fiche_def_ref; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -728,20 +748,23 @@ INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (15, 'Autres -- --- Data for TOC entry 40 (OID 45106) +-- Data for TOC entry 39 (OID 46476) -- Name: fiche_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (1, 5500, 'Banque', true, 4); INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (2, 400, 'Client', true, 9); -INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (1, 604, 'Marchandises', true, 2); -INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (3, 5500, 'Banque', true, 4); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (3, 700, 'Vente', false, 1); INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (4, 440, 'Fournisseur', true, 8); -INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (5, 61, 'S & B D', true, 3); -INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (6, 700, 'Vente', true, 1); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (5, 61, 'Charges', true, 3); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (6, 604, 'Marchandise', true, 2); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (9, NULL, 'Taxes & impot', false, 14); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (7, 604, 'March Cat A', true, 2); +INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) VALUES (8, 700, 'March Cat b', false, 1); -- --- Data for TOC entry 41 (OID 45113) +-- Data for TOC entry 40 (OID 46483) -- Name: attr_def; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -767,7 +790,442 @@ INSERT INTO attr_def (ad_id, ad_text) VALUES (19, 'Gestion stock'); -- --- Data for TOC entry 42 (OID 45119) +-- Data for TOC entry 41 (OID 46489) +-- Name: fiche; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO fiche (f_id, fd_id) VALUES (1, 1); +INSERT INTO fiche (f_id, fd_id) VALUES (2, 2); +INSERT INTO fiche (f_id, fd_id) VALUES (3, 2); +INSERT INTO fiche (f_id, fd_id) VALUES (4, 3); +INSERT INTO fiche (f_id, fd_id) VALUES (5, 3); +INSERT INTO fiche (f_id, fd_id) VALUES (6, 3); +INSERT INTO fiche (f_id, fd_id) VALUES (7, 3); +INSERT INTO fiche (f_id, fd_id) VALUES (8, 4); +INSERT INTO fiche (f_id, fd_id) VALUES (9, 4); +INSERT INTO fiche (f_id, fd_id) VALUES (10, 5); +INSERT INTO fiche (f_id, fd_id) VALUES (11, 5); +INSERT INTO fiche (f_id, fd_id) VALUES (12, 1); +INSERT INTO fiche (f_id, fd_id) VALUES (13, 2); +INSERT INTO fiche (f_id, fd_id) VALUES (14, 2); +INSERT INTO fiche (f_id, fd_id) VALUES (15, 2); +INSERT INTO fiche (f_id, fd_id) VALUES (16, 3); +INSERT INTO fiche (f_id, fd_id) VALUES (17, 4); +INSERT INTO fiche (f_id, fd_id) VALUES (18, 4); +INSERT INTO fiche (f_id, fd_id) VALUES (19, 4); +INSERT INTO fiche (f_id, fd_id) VALUES (20, 5); +INSERT INTO fiche (f_id, fd_id) VALUES (21, 6); + + +-- +-- Data for TOC entry 42 (OID 46492) +-- Name: jnt_fic_att_value; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (1, 1, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (2, 1, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (3, 1, 3); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (4, 1, 4); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (5, 1, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (6, 1, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (7, 1, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (8, 1, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (9, 1, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (10, 1, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (11, 1, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (12, 2, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (13, 2, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (14, 2, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (15, 2, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (16, 2, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (17, 2, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (18, 2, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (19, 2, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (20, 2, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (21, 3, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (22, 3, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (23, 3, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (24, 3, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (25, 3, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (26, 3, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (27, 3, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (28, 3, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (29, 3, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (30, 4, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (31, 4, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (32, 4, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (33, 4, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (34, 5, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (35, 5, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (36, 5, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (37, 5, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (38, 6, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (39, 6, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (40, 6, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (41, 6, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (42, 7, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (43, 7, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (44, 7, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (45, 7, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (46, 4, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (47, 5, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (48, 6, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (49, 7, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (50, 8, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (51, 8, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (52, 8, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (53, 8, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (54, 8, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (55, 8, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (56, 8, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (57, 8, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (58, 8, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (59, 9, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (60, 9, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (61, 9, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (62, 9, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (63, 9, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (64, 9, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (65, 9, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (66, 9, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (67, 9, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (68, 10, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (69, 10, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (70, 10, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (71, 10, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (72, 11, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (73, 11, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (74, 11, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (75, 11, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (76, 12, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (77, 12, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (78, 12, 3); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (79, 12, 4); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (80, 12, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (81, 12, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (82, 12, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (83, 12, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (84, 12, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (85, 12, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (86, 12, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (87, 13, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (88, 14, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (89, 14, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (90, 14, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (91, 14, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (92, 14, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (93, 14, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (94, 14, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (95, 14, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (96, 14, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (97, 15, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (98, 15, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (99, 15, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (100, 15, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (101, 15, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (102, 15, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (103, 15, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (104, 15, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (105, 15, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (106, 1, 19); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (107, 16, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (108, 16, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (109, 16, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (110, 16, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (111, 16, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (112, 17, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (113, 17, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (114, 17, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (115, 17, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (116, 17, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (117, 17, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (118, 17, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (119, 17, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (120, 17, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (121, 18, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (122, 18, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (123, 18, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (124, 18, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (125, 18, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (126, 18, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (127, 18, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (128, 18, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (129, 18, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (130, 19, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (131, 19, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (132, 19, 12); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (133, 19, 13); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (134, 19, 14); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (135, 19, 15); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (136, 19, 16); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (137, 19, 17); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (138, 19, 18); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (139, 20, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (140, 20, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (141, 20, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (142, 20, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (143, 21, 5); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (144, 21, 1); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (145, 21, 2); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (146, 21, 6); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (147, 21, 7); +INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (148, 21, 19); + + +-- +-- Data for TOC entry 43 (OID 46495) +-- Name: attr_value; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO attr_value (jft_id, av_text) VALUES (12, '4000001'); +INSERT INTO attr_value (jft_id, av_text) VALUES (13, 'Client 1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (14, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (15, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (16, 'Rue du Client 1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (17, '99999'); +INSERT INTO attr_value (jft_id, av_text) VALUES (18, 'Belgique'); +INSERT INTO attr_value (jft_id, av_text) VALUES (19, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (20, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (21, '4000002'); +INSERT INTO attr_value (jft_id, av_text) VALUES (22, 'Client 2'); +INSERT INTO attr_value (jft_id, av_text) VALUES (23, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (24, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (25, 'Rue du client 2'); +INSERT INTO attr_value (jft_id, av_text) VALUES (26, '108000'); +INSERT INTO attr_value (jft_id, av_text) VALUES (27, 'Belgique'); +INSERT INTO attr_value (jft_id, av_text) VALUES (28, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (29, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (34, 'Marchandise B'); +INSERT INTO attr_value (jft_id, av_text) VALUES (35, '1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (47, '70002'); +INSERT INTO attr_value (jft_id, av_text) VALUES (36, '150'); +INSERT INTO attr_value (jft_id, av_text) VALUES (37, '140'); +INSERT INTO attr_value (jft_id, av_text) VALUES (50, '4400001'); +INSERT INTO attr_value (jft_id, av_text) VALUES (51, 'Fournisseur A'); +INSERT INTO attr_value (jft_id, av_text) VALUES (52, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (53, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (54, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (55, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (56, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (57, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (58, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (59, '4400002'); +INSERT INTO attr_value (jft_id, av_text) VALUES (60, 'Fournisseur B'); +INSERT INTO attr_value (jft_id, av_text) VALUES (61, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (62, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (63, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (64, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (65, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (66, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (67, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (68, '610001'); +INSERT INTO attr_value (jft_id, av_text) VALUES (69, 'fourniture A'); +INSERT INTO attr_value (jft_id, av_text) VALUES (70, '1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (71, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (76, '55000002'); +INSERT INTO attr_value (jft_id, av_text) VALUES (77, 'Argenta'); +INSERT INTO attr_value (jft_id, av_text) VALUES (78, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (79, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (80, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (81, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (82, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (83, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (84, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (85, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (86, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (87, '4000003'); +INSERT INTO attr_value (jft_id, av_text) VALUES (88, '4000004'); +INSERT INTO attr_value (jft_id, av_text) VALUES (89, 'Toto'); +INSERT INTO attr_value (jft_id, av_text) VALUES (90, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (91, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (92, 'Maison de toto'); +INSERT INTO attr_value (jft_id, av_text) VALUES (93, 'cp'); +INSERT INTO attr_value (jft_id, av_text) VALUES (94, 'pays'); +INSERT INTO attr_value (jft_id, av_text) VALUES (95, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (96, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (97, '4000005'); +INSERT INTO attr_value (jft_id, av_text) VALUES (98, 'NOUVEAU CLIENT'); +INSERT INTO attr_value (jft_id, av_text) VALUES (99, 'Toto'); +INSERT INTO attr_value (jft_id, av_text) VALUES (100, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (101, 'Adresse'); +INSERT INTO attr_value (jft_id, av_text) VALUES (102, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (103, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (104, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (105, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (42, 'Marchandise D'); +INSERT INTO attr_value (jft_id, av_text) VALUES (43, '15'); +INSERT INTO attr_value (jft_id, av_text) VALUES (49, '70004'); +INSERT INTO attr_value (jft_id, av_text) VALUES (44, '150'); +INSERT INTO attr_value (jft_id, av_text) VALUES (45, '75'); +INSERT INTO attr_value (jft_id, av_text) VALUES (38, 'Marchandise C'); +INSERT INTO attr_value (jft_id, av_text) VALUES (39, '20'); +INSERT INTO attr_value (jft_id, av_text) VALUES (48, '70003'); +INSERT INTO attr_value (jft_id, av_text) VALUES (40, '200'); +INSERT INTO attr_value (jft_id, av_text) VALUES (41, '100'); +INSERT INTO attr_value (jft_id, av_text) VALUES (107, 'Marchandise Ex'); +INSERT INTO attr_value (jft_id, av_text) VALUES (108, '10'); +INSERT INTO attr_value (jft_id, av_text) VALUES (111, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (109, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (110, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (30, 'Marchandise A'); +INSERT INTO attr_value (jft_id, av_text) VALUES (46, '70001'); +INSERT INTO attr_value (jft_id, av_text) VALUES (32, '100'); +INSERT INTO attr_value (jft_id, av_text) VALUES (33, '120'); +INSERT INTO attr_value (jft_id, av_text) VALUES (31, '1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (112, '4400003'); +INSERT INTO attr_value (jft_id, av_text) VALUES (113, 'Fournisseur E'); +INSERT INTO attr_value (jft_id, av_text) VALUES (114, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (115, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (116, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (117, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (118, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (119, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (120, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (121, '4400004'); +INSERT INTO attr_value (jft_id, av_text) VALUES (122, 'Propriétaire bureau'); +INSERT INTO attr_value (jft_id, av_text) VALUES (123, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (124, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (125, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (126, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (127, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (128, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (129, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (73, 'Loyer'); +INSERT INTO attr_value (jft_id, av_text) VALUES (74, '4'); +INSERT INTO attr_value (jft_id, av_text) VALUES (72, '610002'); +INSERT INTO attr_value (jft_id, av_text) VALUES (75, '400'); +INSERT INTO attr_value (jft_id, av_text) VALUES (130, '4400005'); +INSERT INTO attr_value (jft_id, av_text) VALUES (131, 'Fournisseur Eau Gaz'); +INSERT INTO attr_value (jft_id, av_text) VALUES (132, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (133, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (134, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (135, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (136, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (137, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (138, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (140, 'eau, gaz electricité'); +INSERT INTO attr_value (jft_id, av_text) VALUES (141, '1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (139, '610003'); +INSERT INTO attr_value (jft_id, av_text) VALUES (142, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (2, 'Banque 1'); +INSERT INTO attr_value (jft_id, av_text) VALUES (3, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (4, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (1, '550'); +INSERT INTO attr_value (jft_id, av_text) VALUES (5, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (6, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (7, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (8, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (9, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (10, 'a'); +INSERT INTO attr_value (jft_id, av_text) VALUES (11, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (106, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (144, 'Achat Marchandise A'); +INSERT INTO attr_value (jft_id, av_text) VALUES (145, '3'); +INSERT INTO attr_value (jft_id, av_text) VALUES (143, '6040001'); +INSERT INTO attr_value (jft_id, av_text) VALUES (146, '350'); +INSERT INTO attr_value (jft_id, av_text) VALUES (147, ''); +INSERT INTO attr_value (jft_id, av_text) VALUES (148, '1'); + + +-- +-- Data for TOC entry 44 (OID 46500) +-- Name: jnt_fic_attr; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 3); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 4); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 12); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 13); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 14); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 15); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 16); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 17); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 18); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 12); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 13); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 14); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 15); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 16); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 17); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 18); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 2); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 6); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 7); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 12); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 13); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 14); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 15); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 16); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 17); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 18); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 2); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 7); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 19); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 19); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 2); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 6); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 7); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 19); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 2); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 6); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 7); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (7, 19); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (8, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (8, 2); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (8, 6); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (8, 7); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (8, 19); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 1); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 5); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 9); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 12); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 14); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 15); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 17); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 18); +INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (9, 16); + + +-- +-- Data for TOC entry 45 (OID 46504) +-- Name: jrn_rapt; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO jrn_rapt (jra_id, jr_id, jra_concerned) VALUES (14, 141, 140); + + +-- +-- Data for TOC entry 46 (OID 46513) +-- Name: jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + +INSERT INTO jrn (jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id, jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt, jr_valid) VALUES (140, 3, 181.5, 'ACH-01-00001 client : Fournisseur E', '2003-01-01', 1, 'ACH-01-00001', '2004-05-02 11:47:15.985297', 1, NULL, NULL, NULL, false); +INSERT INTO jrn (jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id, jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt, jr_valid) VALUES (141, 3, 181.5, 'Annulation ACH-01-00001 client : Fournisseur E', '2003-01-01', 2, 'ANNULE', '2004-05-02 11:50:33.659168', 1, NULL, NULL, NULL, false); + + +-- +-- Data for TOC entry 47 (OID 46521) +-- Name: stock_goods; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- + + + +-- +-- Data for TOC entry 48 (OID 46531) -- Name: attr_min; Type: TABLE DATA; Schema: public; Owner: phpcompta -- @@ -846,421 +1304,35 @@ INSERT INTO attr_min (frd_id, ad_id) VALUES (15, 9); -- --- Data for TOC entry 43 (OID 45121) --- Name: fiche; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- Data for TOC entry 49 (OID 664498) +-- Name: jrnx_back; Type: TABLE DATA; Schema: public; Owner: dany -- -INSERT INTO fiche (f_id, fd_id) VALUES (1, 1); -INSERT INTO fiche (f_id, fd_id) VALUES (2, 1); -INSERT INTO fiche (f_id, fd_id) VALUES (3, 1); -INSERT INTO fiche (f_id, fd_id) VALUES (4, 1); -INSERT INTO fiche (f_id, fd_id) VALUES (5, 2); -INSERT INTO fiche (f_id, fd_id) VALUES (6, 2); -INSERT INTO fiche (f_id, fd_id) VALUES (7, 2); -INSERT INTO fiche (f_id, fd_id) VALUES (8, 3); -INSERT INTO fiche (f_id, fd_id) VALUES (9, 3); -INSERT INTO fiche (f_id, fd_id) VALUES (10, 3); -INSERT INTO fiche (f_id, fd_id) VALUES (11, 4); -INSERT INTO fiche (f_id, fd_id) VALUES (12, 4); -INSERT INTO fiche (f_id, fd_id) VALUES (13, 4); -INSERT INTO fiche (f_id, fd_id) VALUES (14, 5); -INSERT INTO fiche (f_id, fd_id) VALUES (15, 5); -INSERT INTO fiche (f_id, fd_id) VALUES (16, 5); -INSERT INTO fiche (f_id, fd_id) VALUES (17, 5); -INSERT INTO fiche (f_id, fd_id) VALUES (18, 6); -INSERT INTO fiche (f_id, fd_id) VALUES (19, 6); -INSERT INTO fiche (f_id, fd_id) VALUES (20, 6); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (462, '2003-01-01', 181.5, 4400003, 1, NULL, 3, false, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (463, '2003-01-01', 150, 610001, 1, NULL, 3, true, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (464, '2003-01-01', 31.5, 4111, 1, NULL, 3, true, NULL, false, NULL, 'phpcompta', '2004-05-02 11:47:15.985297', 1); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (465, '2003-01-01', 181.5, 4400003, 2, NULL, 3, true, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (466, '2003-01-01', 150, 610001, 2, NULL, 3, false, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1); +INSERT INTO jrnx_back (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) VALUES (467, '2003-01-01', 31.5, 4111, 2, NULL, 3, false, NULL, false, 'ANNULE', 'phpcompta', '2004-05-02 11:50:33.626071', 1); -- --- Data for TOC entry 44 (OID 45124) --- Name: jnt_fic_att_value; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (1, 1, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (2, 1, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (3, 1, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (4, 1, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (5, 1, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (6, 1, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (7, 2, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (8, 2, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (9, 2, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (10, 2, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (11, 2, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (12, 2, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (13, 3, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (14, 3, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (15, 3, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (16, 3, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (17, 3, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (18, 3, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (19, 4, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (20, 4, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (21, 4, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (22, 4, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (23, 4, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (24, 4, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (25, 5, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (26, 5, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (27, 5, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (28, 5, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (29, 5, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (30, 5, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (31, 5, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (32, 5, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (33, 5, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (34, 6, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (35, 6, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (36, 6, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (37, 6, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (38, 6, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (39, 6, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (40, 6, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (41, 6, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (42, 6, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (43, 7, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (44, 7, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (45, 7, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (46, 7, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (47, 7, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (48, 7, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (49, 7, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (50, 7, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (51, 7, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (52, 8, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (53, 8, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (54, 8, 3); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (55, 8, 4); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (56, 8, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (57, 8, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (58, 8, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (59, 8, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (60, 8, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (61, 8, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (62, 8, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (63, 9, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (64, 9, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (65, 9, 3); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (66, 9, 4); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (67, 9, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (68, 9, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (69, 9, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (70, 9, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (71, 9, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (72, 9, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (73, 9, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (74, 10, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (75, 10, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (76, 10, 3); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (77, 10, 4); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (78, 10, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (79, 10, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (80, 10, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (81, 10, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (82, 10, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (83, 10, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (84, 10, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (85, 11, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (86, 11, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (87, 11, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (88, 11, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (89, 11, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (90, 11, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (91, 11, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (92, 11, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (93, 11, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (94, 12, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (95, 12, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (96, 12, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (97, 12, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (98, 12, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (99, 12, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (100, 12, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (101, 12, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (102, 12, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (103, 13, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (104, 13, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (105, 13, 12); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (106, 13, 13); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (107, 13, 14); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (108, 13, 15); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (109, 13, 16); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (110, 13, 17); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (111, 13, 18); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (112, 14, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (113, 14, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (114, 14, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (115, 14, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (116, 15, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (117, 15, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (118, 15, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (119, 15, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (120, 16, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (121, 16, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (122, 16, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (123, 16, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (124, 17, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (125, 17, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (126, 17, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (127, 17, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (128, 18, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (129, 18, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (130, 18, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (131, 18, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (132, 18, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (133, 18, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (134, 19, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (135, 19, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (136, 19, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (137, 19, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (138, 19, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (139, 19, 19); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (140, 20, 5); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (141, 20, 1); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (142, 20, 2); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (143, 20, 6); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (144, 20, 7); -INSERT INTO jnt_fic_att_value (jft_id, f_id, ad_id) VALUES (145, 20, 19); - - --- --- Data for TOC entry 45 (OID 45127) --- Name: attr_value; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - -INSERT INTO attr_value (jft_id, av_text) VALUES (25, '4000001'); -INSERT INTO attr_value (jft_id, av_text) VALUES (26, 'Client 1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (27, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (28, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (29, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (30, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (31, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (32, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (33, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (34, '4000002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (35, 'Client 2'); -INSERT INTO attr_value (jft_id, av_text) VALUES (36, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (37, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (38, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (39, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (40, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (41, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (42, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (43, '4000003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (44, 'Client 3'); -INSERT INTO attr_value (jft_id, av_text) VALUES (45, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (46, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (47, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (48, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (49, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (50, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (51, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (2, 'Marchandise A'); -INSERT INTO attr_value (jft_id, av_text) VALUES (3, '1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (1, '6040001'); -INSERT INTO attr_value (jft_id, av_text) VALUES (4, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (5, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (6, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (8, 'Marchandise B'); -INSERT INTO attr_value (jft_id, av_text) VALUES (9, '3'); -INSERT INTO attr_value (jft_id, av_text) VALUES (7, '6040002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (10, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (11, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (12, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (14, 'Marchandise C'); -INSERT INTO attr_value (jft_id, av_text) VALUES (15, '1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (13, '6040003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (16, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (17, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (18, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (20, 'Marchandise D'); -INSERT INTO attr_value (jft_id, av_text) VALUES (21, '3'); -INSERT INTO attr_value (jft_id, av_text) VALUES (19, '6040004'); -INSERT INTO attr_value (jft_id, av_text) VALUES (22, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (23, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (24, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (53, 'Caisse'); -INSERT INTO attr_value (jft_id, av_text) VALUES (54, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (55, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (52, '57'); -INSERT INTO attr_value (jft_id, av_text) VALUES (56, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (57, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (58, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (59, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (60, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (61, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (62, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (63, '55000002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (64, 'Banque 1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (65, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (66, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (67, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (68, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (69, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (70, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (71, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (72, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (73, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (74, '55000003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (75, 'Banque 2'); -INSERT INTO attr_value (jft_id, av_text) VALUES (76, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (77, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (78, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (79, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (80, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (81, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (82, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (83, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (84, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (85, '4400001'); -INSERT INTO attr_value (jft_id, av_text) VALUES (86, 'Fournisseur 1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (87, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (88, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (89, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (90, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (91, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (92, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (93, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (94, '4400002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (95, 'Fournisseur 2'); -INSERT INTO attr_value (jft_id, av_text) VALUES (96, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (97, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (98, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (99, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (100, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (101, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (102, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (103, '4400003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (104, 'Fournisseur 4'); -INSERT INTO attr_value (jft_id, av_text) VALUES (105, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (106, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (107, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (108, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (109, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (110, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (111, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (112, '610001'); -INSERT INTO attr_value (jft_id, av_text) VALUES (113, 'Electricité'); -INSERT INTO attr_value (jft_id, av_text) VALUES (114, '1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (115, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (117, 'Loyer'); -INSERT INTO attr_value (jft_id, av_text) VALUES (118, '3'); -INSERT INTO attr_value (jft_id, av_text) VALUES (116, '610002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (119, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (121, 'Assurance'); -INSERT INTO attr_value (jft_id, av_text) VALUES (122, '3'); -INSERT INTO attr_value (jft_id, av_text) VALUES (120, '610003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (123, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (124, '610004'); -INSERT INTO attr_value (jft_id, av_text) VALUES (125, 'Matériel bureau'); -INSERT INTO attr_value (jft_id, av_text) VALUES (126, '1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (127, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (134, '7000002'); -INSERT INTO attr_value (jft_id, av_text) VALUES (135, 'Marchandise A'); -INSERT INTO attr_value (jft_id, av_text) VALUES (136, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (137, '200'); -INSERT INTO attr_value (jft_id, av_text) VALUES (138, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (139, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (129, 'Prestation'); -INSERT INTO attr_value (jft_id, av_text) VALUES (130, '1'); -INSERT INTO attr_value (jft_id, av_text) VALUES (128, '7000001'); -INSERT INTO attr_value (jft_id, av_text) VALUES (131, '15'); -INSERT INTO attr_value (jft_id, av_text) VALUES (132, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (133, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (140, '7000003'); -INSERT INTO attr_value (jft_id, av_text) VALUES (141, 'Déplacement'); -INSERT INTO attr_value (jft_id, av_text) VALUES (142, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (143, '50'); -INSERT INTO attr_value (jft_id, av_text) VALUES (144, ''); -INSERT INTO attr_value (jft_id, av_text) VALUES (145, ''); - - --- --- Data for TOC entry 46 (OID 45132) --- Name: jnt_fic_attr; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 2); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 6); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 7); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (1, 19); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 12); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 13); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 14); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 15); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 16); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 17); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (2, 18); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 3); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 4); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 12); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 13); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 14); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 15); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 16); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 17); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (3, 18); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 12); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 13); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 14); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 15); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 16); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 17); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (4, 18); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 2); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (5, 7); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 5); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 1); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 2); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 6); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 7); -INSERT INTO jnt_fic_attr (fd_id, ad_id) VALUES (6, 19); - - --- --- Data for TOC entry 47 (OID 45142) --- Name: jrn_rapt; Type: TABLE DATA; Schema: public; Owner: phpcompta +-- Data for TOC entry 50 (OID 679363) +-- Name: log; Type: TABLE DATA; Schema: public; Owner: phpcompta -- -- --- Data for TOC entry 48 (OID 45145) --- Name: jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - -INSERT INTO jrn (jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id, jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt, jr_valid) VALUES (1, 2, 1000, 'VEN-01-00001 client : Client 3', '2003-01-01', 1, 'VEN-01-00001', '2004-04-19 18:05:28.490834', 1, NULL, NULL, NULL, true); - - --- --- Data for TOC entry 49 (OID 45153) --- Name: stock_goods; Type: TABLE DATA; Schema: public; Owner: phpcompta --- - -INSERT INTO stock_goods (sg_id, j_id, f_id, sg_code, sg_quantity, sg_type, sg_date, sg_tech_date, sg_tech_user) VALUES (1, 2, 19, '', 5, 'c', NULL, '2004-04-19', NULL); - - --- --- TOC entry 1 (OID 44970) +-- TOC entry 1 (OID 46342) -- Name: s_periode; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_periode', 52, true); +SELECT pg_catalog.setval ('s_periode', 39, true); -- --- TOC entry 2 (OID 44972) +-- TOC entry 2 (OID 46344) -- Name: s_currency; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1268,7 +1340,7 @@ SELECT pg_catalog.setval ('s_currency', 1, true); -- --- TOC entry 3 (OID 44985) +-- TOC entry 3 (OID 46357) -- Name: s_jrn_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1276,7 +1348,7 @@ SELECT pg_catalog.setval ('s_jrn_def', 5, false); -- --- TOC entry 4 (OID 44987) +-- TOC entry 4 (OID 46359) -- Name: s_grpt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1284,23 +1356,23 @@ SELECT pg_catalog.setval ('s_grpt', 1, false); -- --- TOC entry 5 (OID 44989) +-- TOC entry 5 (OID 46361) -- Name: s_jrn_op; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_jrn_op', 2, true); +SELECT pg_catalog.setval ('s_jrn_op', 467, true); -- --- TOC entry 6 (OID 44991) +-- TOC entry 6 (OID 46363) -- Name: s_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_jrn', 1, true); +SELECT pg_catalog.setval ('s_jrn', 141, true); -- --- TOC entry 7 (OID 45007) +-- TOC entry 7 (OID 46379) -- Name: s_jrnx; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1308,7 +1380,7 @@ SELECT pg_catalog.setval ('s_jrnx', 1, false); -- --- TOC entry 8 (OID 45025) +-- TOC entry 8 (OID 46397) -- Name: s_formdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1316,7 +1388,7 @@ SELECT pg_catalog.setval ('s_formdef', 1, false); -- --- TOC entry 9 (OID 45027) +-- TOC entry 9 (OID 46399) -- Name: s_form; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1324,23 +1396,15 @@ SELECT pg_catalog.setval ('s_form', 1, false); -- --- TOC entry 10 (OID 45041) --- Name: s_isup; Type: SEQUENCE SET; Schema: public; Owner: phpcompta --- - -SELECT pg_catalog.setval ('s_isup', 1, false); - - --- --- TOC entry 11 (OID 45043) +-- TOC entry 10 (OID 46413) -- Name: s_idef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_idef', 1, false); +SELECT pg_catalog.setval ('s_idef', 2, true); -- --- TOC entry 12 (OID 45045) +-- TOC entry 11 (OID 46415) -- Name: s_centralized; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- @@ -1348,82 +1412,82 @@ SELECT pg_catalog.setval ('s_centralized', 1, false); -- --- TOC entry 13 (OID 45054) +-- TOC entry 12 (OID 46424) -- Name: s_user_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_user_jrn', 8, true); +SELECT pg_catalog.setval ('s_user_jrn', 12, true); -- --- TOC entry 14 (OID 45056) +-- TOC entry 13 (OID 46426) -- Name: s_user_act; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_user_act', 2, true); +SELECT pg_catalog.setval ('s_user_act', 15, true); -- --- TOC entry 15 (OID 45075) +-- TOC entry 14 (OID 46445) -- Name: s_jrnaction; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_jrnaction', 5, true); +SELECT pg_catalog.setval ('s_jrnaction', 7, true); -- --- TOC entry 16 (OID 45090) +-- TOC entry 15 (OID 46460) -- Name: s_fiche; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_fiche', 20, true); +SELECT pg_catalog.setval ('s_fiche', 21, true); -- --- TOC entry 17 (OID 45092) +-- TOC entry 16 (OID 46462) -- Name: s_fiche_def_ref; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_fiche_def_ref', 1, false); +SELECT pg_catalog.setval ('s_fiche_def_ref', 14, true); -- --- TOC entry 18 (OID 45094) +-- TOC entry 17 (OID 46464) -- Name: s_fdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_fdef', 6, true); +SELECT pg_catalog.setval ('s_fdef', 10, true); -- --- TOC entry 19 (OID 45096) +-- TOC entry 18 (OID 46466) -- Name: s_attr_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_attr_def', 1, false); +SELECT pg_catalog.setval ('s_attr_def', 19, true); -- --- TOC entry 20 (OID 45098) +-- TOC entry 19 (OID 46468) -- Name: s_jnt_fic_att_value; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_jnt_fic_att_value', 145, true); +SELECT pg_catalog.setval ('s_jnt_fic_att_value', 148, true); -- --- TOC entry 21 (OID 45138) --- Name: s_stock_goods; Type: SEQUENCE SET; Schema: public; Owner: phpcompta --- - -SELECT pg_catalog.setval ('s_stock_goods', 1, true); - - --- --- TOC entry 22 (OID 45140) +-- TOC entry 20 (OID 46502) -- Name: s_jrn_rapt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta -- -SELECT pg_catalog.setval ('s_jrn_rapt', 1, false); +SELECT pg_catalog.setval ('s_jrn_rapt', 14, true); + + +-- +-- TOC entry 21 (OID 46511) +-- Name: s_stock_goods; Type: SEQUENCE SET; Schema: public; Owner: phpcompta +-- + +SELECT pg_catalog.setval ('s_stock_goods', 25, true); diff --git a/sql/dossier1/make-sql b/sql/dossier1/make-sql index dbfaed80a..e450645ff 100755 --- a/sql/dossier1/make-sql +++ b/sql/dossier1/make-sql @@ -1,4 +1,4 @@ -pg_dump -s mod1 > schema.sql +pg_dump -s dossier1 > schema.sql awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql > table.sql awk '/CREATE VIEW/,/;/ { print $0;}' < schema.sql > view.sql @@ -7,5 +7,5 @@ awk '/ALTER TABLE/,/;/ { print $0;}' < schema.sql > constraint.sql awk '/FUNCTION/,/LANGUAGE/ { print $0;}' < schema.sql > function.sql grep setval schema.sql >> sequence.sql -pg_dump -D -a -O mod1 > data.sql +pg_dump -D -a -O dossier1 > data.sql diff --git a/sql/dossier1/schema.sql b/sql/dossier1/schema.sql index 95fd184a6..6269b220a 100644 --- a/sql/dossier1/schema.sql +++ b/sql/dossier1/schema.sql @@ -7,7 +7,7 @@ SET search_path = public, pg_catalog; -- --- TOC entry 24 (OID 44961) +-- TOC entry 23 (OID 46333) -- Name: tmp_pcmn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -20,7 +20,7 @@ CREATE TABLE tmp_pcmn ( -- --- TOC entry 25 (OID 44968) +-- TOC entry 24 (OID 46340) -- Name: version; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -30,7 +30,7 @@ CREATE TABLE "version" ( -- --- TOC entry 2 (OID 44970) +-- TOC entry 2 (OID 46342) -- Name: s_periode; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -43,7 +43,7 @@ CREATE SEQUENCE s_periode -- --- TOC entry 3 (OID 44972) +-- TOC entry 3 (OID 46344) -- Name: s_currency; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -56,7 +56,7 @@ CREATE SEQUENCE s_currency -- --- TOC entry 26 (OID 44974) +-- TOC entry 25 (OID 46346) -- Name: parm_money; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -68,7 +68,7 @@ CREATE TABLE parm_money ( -- --- TOC entry 27 (OID 44977) +-- TOC entry 26 (OID 46349) -- Name: parm_periode; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -82,7 +82,7 @@ CREATE TABLE parm_periode ( -- --- TOC entry 4 (OID 44985) +-- TOC entry 4 (OID 46357) -- Name: s_jrn_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -95,7 +95,7 @@ CREATE SEQUENCE s_jrn_def -- --- TOC entry 5 (OID 44987) +-- TOC entry 5 (OID 46359) -- Name: s_grpt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -108,7 +108,7 @@ CREATE SEQUENCE s_grpt -- --- TOC entry 6 (OID 44989) +-- TOC entry 6 (OID 46361) -- Name: s_jrn_op; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -121,7 +121,7 @@ CREATE SEQUENCE s_jrn_op -- --- TOC entry 7 (OID 44991) +-- TOC entry 7 (OID 46363) -- Name: s_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -134,7 +134,7 @@ CREATE SEQUENCE s_jrn -- --- TOC entry 28 (OID 44993) +-- TOC entry 27 (OID 46365) -- Name: jrn_type; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -145,7 +145,7 @@ CREATE TABLE jrn_type ( -- --- TOC entry 29 (OID 44998) +-- TOC entry 28 (OID 46370) -- Name: jrn_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -166,7 +166,7 @@ CREATE TABLE jrn_def ( -- --- TOC entry 8 (OID 45007) +-- TOC entry 8 (OID 46379) -- Name: s_jrnx; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -179,7 +179,7 @@ CREATE SEQUENCE s_jrnx -- --- TOC entry 30 (OID 45009) +-- TOC entry 29 (OID 46381) -- Name: jrnx; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -197,12 +197,13 @@ CREATE TABLE jrnx ( j_internal text, j_tech_user text NOT NULL, j_tech_date timestamp without time zone DEFAULT now() NOT NULL, - j_tech_per integer + j_tech_per integer, + j_montant_n numeric(200,100) ); -- --- TOC entry 31 (OID 45020) +-- TOC entry 30 (OID 46392) -- Name: user_pref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -213,7 +214,7 @@ CREATE TABLE user_pref ( -- --- TOC entry 9 (OID 45025) +-- TOC entry 9 (OID 46397) -- Name: s_formdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -226,7 +227,7 @@ CREATE SEQUENCE s_formdef -- --- TOC entry 10 (OID 45027) +-- TOC entry 10 (OID 46399) -- Name: s_form; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -239,7 +240,7 @@ CREATE SEQUENCE s_form -- --- TOC entry 32 (OID 45029) +-- TOC entry 31 (OID 46401) -- Name: formdef; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -250,7 +251,7 @@ CREATE TABLE formdef ( -- --- TOC entry 33 (OID 45035) +-- TOC entry 32 (OID 46407) -- Name: form; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -264,20 +265,7 @@ CREATE TABLE form ( -- --- TOC entry 11 (OID 45041) --- Name: s_isup; Type: SEQUENCE; Schema: public; Owner: phpcompta --- - -CREATE SEQUENCE s_isup - START 1 - INCREMENT 1 - MAXVALUE 9223372036854775807 - MINVALUE 1 - CACHE 1; - - --- --- TOC entry 12 (OID 45043) +-- TOC entry 11 (OID 46413) -- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -290,7 +278,7 @@ CREATE SEQUENCE s_idef -- --- TOC entry 13 (OID 45045) +-- TOC entry 12 (OID 46415) -- Name: s_centralized; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -303,7 +291,7 @@ CREATE SEQUENCE s_centralized -- --- TOC entry 34 (OID 45047) +-- TOC entry 33 (OID 46417) -- Name: centralized; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -325,7 +313,7 @@ CREATE TABLE centralized ( -- --- TOC entry 14 (OID 45054) +-- TOC entry 13 (OID 46424) -- Name: s_user_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -338,7 +326,7 @@ CREATE SEQUENCE s_user_jrn -- --- TOC entry 15 (OID 45056) +-- TOC entry 14 (OID 46426) -- Name: s_user_act; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -351,7 +339,7 @@ CREATE SEQUENCE s_user_act -- --- TOC entry 35 (OID 45058) +-- TOC entry 34 (OID 46428) -- Name: user_sec_jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -364,7 +352,7 @@ CREATE TABLE user_sec_jrn ( -- --- TOC entry 36 (OID 45064) +-- TOC entry 35 (OID 46434) -- Name: action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -375,7 +363,7 @@ CREATE TABLE "action" ( -- --- TOC entry 37 (OID 45069) +-- TOC entry 36 (OID 46439) -- Name: user_sec_act; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -387,7 +375,7 @@ CREATE TABLE user_sec_act ( -- --- TOC entry 16 (OID 45075) +-- TOC entry 15 (OID 46445) -- Name: s_jrnaction; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -400,7 +388,7 @@ CREATE SEQUENCE s_jrnaction -- --- TOC entry 38 (OID 45077) +-- TOC entry 37 (OID 46447) -- Name: jrn_action; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -416,7 +404,7 @@ CREATE TABLE jrn_action ( -- --- TOC entry 39 (OID 45084) +-- TOC entry 38 (OID 46454) -- Name: tva_rate; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -430,7 +418,7 @@ CREATE TABLE tva_rate ( -- --- TOC entry 17 (OID 45090) +-- TOC entry 16 (OID 46460) -- Name: s_fiche; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -443,7 +431,7 @@ CREATE SEQUENCE s_fiche -- --- TOC entry 18 (OID 45092) +-- TOC entry 17 (OID 46462) -- Name: s_fiche_def_ref; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -456,7 +444,7 @@ CREATE SEQUENCE s_fiche_def_ref -- --- TOC entry 19 (OID 45094) +-- TOC entry 18 (OID 46464) -- Name: s_fdef; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -469,7 +457,7 @@ CREATE SEQUENCE s_fdef -- --- TOC entry 20 (OID 45096) +-- TOC entry 19 (OID 46466) -- Name: s_attr_def; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -482,7 +470,7 @@ CREATE SEQUENCE s_attr_def -- --- TOC entry 21 (OID 45098) +-- TOC entry 20 (OID 46468) -- Name: s_jnt_fic_att_value; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -495,7 +483,7 @@ CREATE SEQUENCE s_jnt_fic_att_value -- --- TOC entry 40 (OID 45100) +-- TOC entry 39 (OID 46470) -- Name: fiche_def_ref; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -507,7 +495,7 @@ CREATE TABLE fiche_def_ref ( -- --- TOC entry 41 (OID 45106) +-- TOC entry 40 (OID 46476) -- Name: fiche_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -521,7 +509,7 @@ CREATE TABLE fiche_def ( -- --- TOC entry 42 (OID 45113) +-- TOC entry 41 (OID 46483) -- Name: attr_def; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -532,18 +520,7 @@ CREATE TABLE attr_def ( -- --- TOC entry 43 (OID 45119) --- Name: attr_min; Type: TABLE; Schema: public; Owner: phpcompta --- - -CREATE TABLE attr_min ( - frd_id integer, - ad_id integer -); - - --- --- TOC entry 44 (OID 45121) +-- TOC entry 42 (OID 46489) -- Name: fiche; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -554,7 +531,7 @@ CREATE TABLE fiche ( -- --- TOC entry 45 (OID 45124) +-- TOC entry 43 (OID 46492) -- Name: jnt_fic_att_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -566,7 +543,7 @@ CREATE TABLE jnt_fic_att_value ( -- --- TOC entry 46 (OID 45127) +-- TOC entry 44 (OID 46495) -- Name: attr_value; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -577,7 +554,7 @@ CREATE TABLE attr_value ( -- --- TOC entry 47 (OID 45132) +-- TOC entry 45 (OID 46500) -- Name: jnt_fic_attr; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -588,29 +565,7 @@ CREATE TABLE jnt_fic_attr ( -- --- TOC entry 48 (OID 45136) --- Name: vw_fiche_attr; Type: VIEW; Schema: public; Owner: phpcompta --- - -CREATE VIEW vw_fiche_attr AS - SELECT a.f_id, fd_id, a.av_text AS vw_name, b.av_text AS vw_sell, c.av_text AS vw_buy, d.av_text AS tva_code, tva_id, tva_rate, tva_label, e.av_text AS vw_addr, f.av_text AS vw_cp, frd_id FROM ((((((((SELECT f_id, fd_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 1)) a LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 6)) b ON ((a.f_id = b.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 7)) c ON ((a.f_id = c.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 2)) d ON ((a.f_id = d.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 14)) e ON ((a.f_id = e.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 15)) f ON ((a.f_id = f.f_id))) LEFT JOIN tva_rate ON ((d.av_text = (tva_rate.tva_id)::text))) JOIN fiche_def USING (fd_id)); - - --- --- TOC entry 22 (OID 45138) --- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta --- - -CREATE SEQUENCE s_stock_goods - START 1 - INCREMENT 1 - MAXVALUE 9223372036854775807 - MINVALUE 1 - CACHE 1; - - --- --- TOC entry 23 (OID 45140) +-- TOC entry 21 (OID 46502) -- Name: s_jrn_rapt; Type: SEQUENCE; Schema: public; Owner: phpcompta -- @@ -623,7 +578,7 @@ CREATE SEQUENCE s_jrn_rapt -- --- TOC entry 49 (OID 45142) +-- TOC entry 46 (OID 46504) -- Name: jrn_rapt; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -635,7 +590,29 @@ CREATE TABLE jrn_rapt ( -- --- TOC entry 50 (OID 45145) +-- TOC entry 47 (OID 46509) +-- Name: vw_fiche_attr; Type: VIEW; Schema: public; Owner: phpcompta +-- + +CREATE VIEW vw_fiche_attr AS + SELECT a.f_id, fd_id, a.av_text AS vw_name, b.av_text AS vw_sell, c.av_text AS vw_buy, d.av_text AS tva_code, tva_id, tva_rate, tva_label, e.av_text AS vw_addr, f.av_text AS vw_cp, frd_id FROM ((((((((SELECT f_id, fd_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 1)) a LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 6)) b ON ((a.f_id = b.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 7)) c ON ((a.f_id = c.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 2)) d ON ((a.f_id = d.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 14)) e ON ((a.f_id = e.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 15)) f ON ((a.f_id = f.f_id))) LEFT JOIN tva_rate ON ((d.av_text = (tva_rate.tva_id)::text))) JOIN fiche_def USING (fd_id)); + + +-- +-- TOC entry 22 (OID 46511) +-- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta +-- + +CREATE SEQUENCE s_stock_goods + START 1 + INCREMENT 1 + MAXVALUE 9223372036854775807 + MINVALUE 1 + CACHE 1; + + +-- +-- TOC entry 48 (OID 46513) -- Name: jrn; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -657,7 +634,7 @@ CREATE TABLE jrn ( -- --- TOC entry 51 (OID 45153) +-- TOC entry 49 (OID 46521) -- Name: stock_goods; Type: TABLE; Schema: public; Owner: phpcompta -- @@ -676,7 +653,63 @@ CREATE TABLE stock_goods ( -- --- TOC entry 67 (OID 46203) +-- TOC entry 50 (OID 46531) +-- Name: attr_min; Type: TABLE; Schema: public; Owner: phpcompta +-- + +CREATE TABLE attr_min ( + frd_id integer, + ad_id integer +); + + +\connect - dany + +SET search_path = public, pg_catalog; + +-- +-- TOC entry 51 (OID 664498) +-- Name: jrnx_back; Type: TABLE; Schema: public; Owner: dany +-- + +CREATE TABLE jrnx_back ( + j_id integer, + j_date date, + j_montant double precision, + j_poste integer, + j_grpt integer, + j_rapt text, + j_jrn_def integer, + j_debit boolean, + j_text text, + j_centralized boolean, + j_internal text, + j_tech_user text, + j_tech_date timestamp without time zone, + j_tech_per integer +); + + +\connect - phpcompta + +SET search_path = public, pg_catalog; + +-- +-- TOC entry 52 (OID 679363) +-- Name: log; Type: TABLE; Schema: public; Owner: phpcompta +-- + +CREATE TABLE log ( + lg_timestamp timestamp without time zone DEFAULT now(), + lg_file text, + lg_type text DEFAULT 'debug', + lg_line text, + lg_msg text +); + + +-- +-- TOC entry 74 (OID 47631) -- Name: x_act; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -684,7 +717,7 @@ CREATE UNIQUE INDEX x_act ON "action" USING btree (ac_description); -- --- TOC entry 65 (OID 46204) +-- TOC entry 72 (OID 47632) -- Name: x_usr_jrn; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -692,7 +725,95 @@ CREATE UNIQUE INDEX x_usr_jrn ON user_sec_jrn USING btree (uj_login, uj_jrn_id); -- --- TOC entry 77 (OID 46205) +-- TOC entry 68 (OID 47633) +-- Name: fk_centralized_c_jrn_def; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_centralized_c_jrn_def ON centralized USING btree (c_jrn_def); + + +-- +-- TOC entry 69 (OID 47634) +-- Name: fk_centralized_c_poste; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_centralized_c_poste ON centralized USING btree (c_poste); + + +-- +-- TOC entry 81 (OID 47635) +-- Name: fk_fiche_def_frd_id; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_fiche_def_frd_id ON fiche_def USING btree (frd_id); + + +-- +-- TOC entry 86 (OID 47636) +-- Name: fk_attr_value_jft_id; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_attr_value_jft_id ON attr_value USING btree (jft_id); + + +-- +-- TOC entry 84 (OID 47637) +-- Name: fk_fiche_fd_id; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_fiche_fd_id ON fiche USING btree (fd_id); + + +-- +-- TOC entry 65 (OID 47638) +-- Name: fk_form_fo_fr_id; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_form_fo_fr_id ON form USING btree (fo_fr_id); + + +-- +-- TOC entry 61 (OID 47639) +-- Name: fk_jrnx_j_poste; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_jrnx_j_poste ON jrnx USING btree (j_poste); + + +-- +-- TOC entry 60 (OID 47640) +-- Name: fk_jrn_def; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_jrn_def ON jrnx USING btree (j_jrn_def); + + +-- +-- TOC entry 77 (OID 47641) +-- Name: fk_jrn_action_ja_jrn_type; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_jrn_action_ja_jrn_type ON jrn_action USING btree (ja_jrn_type); + + +-- +-- TOC entry 70 (OID 47642) +-- Name: fk_user_sec_jrn; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_user_sec_jrn ON user_sec_jrn USING btree (uj_jrn_id); + + +-- +-- TOC entry 75 (OID 47643) +-- Name: fk_user_sec_act; Type: INDEX; Schema: public; Owner: phpcompta +-- + +CREATE INDEX fk_user_sec_act ON user_sec_act USING btree (ua_act_id); + + +-- +-- TOC entry 89 (OID 47644) -- Name: x_jrn_jr_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -700,7 +821,7 @@ CREATE UNIQUE INDEX x_jrn_jr_id ON jrn USING btree (jr_id); -- --- TOC entry 79 (OID 46206) +-- TOC entry 91 (OID 47645) -- Name: fk_stock_goods_j_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -708,7 +829,7 @@ CREATE INDEX fk_stock_goods_j_id ON stock_goods USING btree (j_id); -- --- TOC entry 78 (OID 46207) +-- TOC entry 90 (OID 47646) -- Name: fk_stock_goods_f_id; Type: INDEX; Schema: public; Owner: phpcompta -- @@ -716,7 +837,7 @@ CREATE INDEX fk_stock_goods_f_id ON stock_goods USING btree (f_id); -- --- TOC entry 52 (OID 46208) +-- TOC entry 53 (OID 47647) -- Name: tmp_pcmn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -725,7 +846,7 @@ ALTER TABLE ONLY tmp_pcmn -- --- TOC entry 53 (OID 46210) +-- TOC entry 54 (OID 47649) -- Name: parm_money_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -734,7 +855,7 @@ ALTER TABLE ONLY parm_money -- --- TOC entry 55 (OID 46212) +-- TOC entry 56 (OID 47651) -- Name: parm_periode_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -743,7 +864,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 54 (OID 46214) +-- TOC entry 55 (OID 47653) -- Name: parm_periode_p_start_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -752,7 +873,7 @@ ALTER TABLE ONLY parm_periode -- --- TOC entry 56 (OID 46216) +-- TOC entry 57 (OID 47655) -- Name: jrn_type_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -761,7 +882,7 @@ ALTER TABLE ONLY jrn_type -- --- TOC entry 58 (OID 46218) +-- TOC entry 59 (OID 47657) -- Name: jrn_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -770,7 +891,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 57 (OID 46220) +-- TOC entry 58 (OID 47659) -- Name: jrn_def_jrn_def_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -779,7 +900,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 81 (OID 46222) +-- TOC entry 93 (OID 47661) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -788,7 +909,7 @@ ALTER TABLE ONLY jrn_def -- --- TOC entry 59 (OID 46226) +-- TOC entry 62 (OID 47665) -- Name: jrnx_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -797,7 +918,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 82 (OID 46228) +-- TOC entry 94 (OID 47667) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -806,7 +927,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 83 (OID 46232) +-- TOC entry 95 (OID 47671) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -815,7 +936,7 @@ ALTER TABLE ONLY jrnx -- --- TOC entry 60 (OID 46236) +-- TOC entry 63 (OID 47675) -- Name: user_pref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -824,7 +945,7 @@ ALTER TABLE ONLY user_pref -- --- TOC entry 61 (OID 46238) +-- TOC entry 64 (OID 47677) -- Name: formdef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -833,7 +954,7 @@ ALTER TABLE ONLY formdef -- --- TOC entry 62 (OID 46240) +-- TOC entry 66 (OID 47679) -- Name: form_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -842,7 +963,7 @@ ALTER TABLE ONLY form -- --- TOC entry 84 (OID 46242) +-- TOC entry 96 (OID 47681) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -851,7 +972,7 @@ ALTER TABLE ONLY form -- --- TOC entry 63 (OID 46246) +-- TOC entry 67 (OID 47685) -- Name: centralized_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -860,7 +981,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 85 (OID 46248) +-- TOC entry 97 (OID 47687) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -869,7 +990,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 86 (OID 46252) +-- TOC entry 98 (OID 47691) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -878,7 +999,7 @@ ALTER TABLE ONLY centralized -- --- TOC entry 64 (OID 46256) +-- TOC entry 71 (OID 47695) -- Name: user_sec_jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -887,7 +1008,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 87 (OID 46258) +-- TOC entry 99 (OID 47697) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -896,7 +1017,7 @@ ALTER TABLE ONLY user_sec_jrn -- --- TOC entry 66 (OID 46262) +-- TOC entry 73 (OID 47701) -- Name: action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -905,7 +1026,7 @@ ALTER TABLE ONLY "action" -- --- TOC entry 68 (OID 46264) +-- TOC entry 76 (OID 47703) -- Name: user_sec_act_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -914,7 +1035,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 88 (OID 46266) +-- TOC entry 100 (OID 47705) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -923,7 +1044,7 @@ ALTER TABLE ONLY user_sec_act -- --- TOC entry 69 (OID 46270) +-- TOC entry 78 (OID 47709) -- Name: jrn_action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -932,7 +1053,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 89 (OID 46272) +-- TOC entry 101 (OID 47711) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -941,7 +1062,7 @@ ALTER TABLE ONLY jrn_action -- --- TOC entry 70 (OID 46276) +-- TOC entry 79 (OID 47715) -- Name: fiche_def_ref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -950,7 +1071,7 @@ ALTER TABLE ONLY fiche_def_ref -- --- TOC entry 71 (OID 46278) +-- TOC entry 80 (OID 47717) -- Name: fiche_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -959,7 +1080,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 90 (OID 46280) +-- TOC entry 102 (OID 47719) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -968,7 +1089,7 @@ ALTER TABLE ONLY fiche_def -- --- TOC entry 72 (OID 46284) +-- TOC entry 82 (OID 47723) -- Name: attr_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -977,25 +1098,7 @@ ALTER TABLE ONLY attr_def -- --- TOC entry 91 (OID 46286) --- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta --- - -ALTER TABLE ONLY attr_min - ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION; - - --- --- TOC entry 92 (OID 46290) --- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta --- - -ALTER TABLE ONLY attr_min - ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION; - - --- --- TOC entry 73 (OID 46294) +-- TOC entry 83 (OID 47725) -- Name: fiche_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1004,7 +1107,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 93 (OID 46296) +-- TOC entry 103 (OID 47727) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1013,7 +1116,7 @@ ALTER TABLE ONLY fiche -- --- TOC entry 74 (OID 46300) +-- TOC entry 85 (OID 47731) -- Name: jnt_fic_att_value_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1022,7 +1125,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 94 (OID 46302) +-- TOC entry 104 (OID 47733) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1031,7 +1134,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 95 (OID 46306) +-- TOC entry 105 (OID 47737) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1040,7 +1143,7 @@ ALTER TABLE ONLY jnt_fic_att_value -- --- TOC entry 96 (OID 46310) +-- TOC entry 106 (OID 47741) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1049,7 +1152,7 @@ ALTER TABLE ONLY attr_value -- --- TOC entry 97 (OID 46314) +-- TOC entry 107 (OID 47745) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1058,7 +1161,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 98 (OID 46318) +-- TOC entry 108 (OID 47749) -- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1067,7 +1170,7 @@ ALTER TABLE ONLY jnt_fic_attr -- --- TOC entry 75 (OID 46322) +-- TOC entry 87 (OID 47753) -- Name: jrn_rapt_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1076,7 +1179,7 @@ ALTER TABLE ONLY jrn_rapt -- --- TOC entry 99 (OID 46324) +-- TOC entry 109 (OID 47755) -- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1085,7 +1188,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 76 (OID 46328) +-- TOC entry 88 (OID 47759) -- Name: jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1094,7 +1197,7 @@ ALTER TABLE ONLY jrn -- --- TOC entry 80 (OID 46330) +-- TOC entry 92 (OID 47761) -- Name: stock_goods_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta -- @@ -1102,3 +1205,21 @@ ALTER TABLE ONLY stock_goods ADD CONSTRAINT stock_goods_pkey PRIMARY KEY (sg_id); +-- +-- TOC entry 110 (OID 47763) +-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta +-- + +ALTER TABLE ONLY attr_min + ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION; + + +-- +-- TOC entry 111 (OID 47767) +-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta +-- + +ALTER TABLE ONLY attr_min + ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION; + + diff --git a/sql/dossier1/sequence.sql b/sql/dossier1/sequence.sql index 723e6e4bc..b01db0484 100644 --- a/sql/dossier1/sequence.sql +++ b/sql/dossier1/sequence.sql @@ -61,13 +61,6 @@ CREATE SEQUENCE s_form MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1; --- Name: s_isup; Type: SEQUENCE; Schema: public; Owner: phpcompta -CREATE SEQUENCE s_isup - START 1 - INCREMENT 1 - MAXVALUE 9223372036854775807 - MINVALUE 1 - CACHE 1; -- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta CREATE SEQUENCE s_idef START 1 @@ -138,13 +131,6 @@ CREATE SEQUENCE s_jnt_fic_att_value MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1; --- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta -CREATE SEQUENCE s_stock_goods - START 1 - INCREMENT 1 - MAXVALUE 9223372036854775807 - MINVALUE 1 - CACHE 1; -- Name: s_jrn_rapt; Type: SEQUENCE; Schema: public; Owner: phpcompta CREATE SEQUENCE s_jrn_rapt START 1 @@ -152,3 +138,10 @@ CREATE SEQUENCE s_jrn_rapt MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1; +-- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta +CREATE SEQUENCE s_stock_goods + START 1 + INCREMENT 1 + MAXVALUE 9223372036854775807 + MINVALUE 1 + CACHE 1; diff --git a/sql/dossier1/table.sql b/sql/dossier1/table.sql index a8a5a9547..f5daa12f6 100644 --- a/sql/dossier1/table.sql +++ b/sql/dossier1/table.sql @@ -51,7 +51,8 @@ CREATE TABLE jrnx ( j_internal text, j_tech_user text NOT NULL, j_tech_date timestamp without time zone DEFAULT now() NOT NULL, - j_tech_per integer + j_tech_per integer, + j_montant_n numeric(200,100) ); CREATE TABLE user_pref ( pref_user text NOT NULL, @@ -130,10 +131,6 @@ CREATE TABLE attr_def ( ad_id integer DEFAULT nextval('s_attr_def'::text) NOT NULL, ad_text text ); -CREATE TABLE attr_min ( - frd_id integer, - ad_id integer -); CREATE TABLE fiche ( f_id integer DEFAULT nextval('s_fiche'::text) NOT NULL, fd_id integer @@ -183,3 +180,30 @@ CREATE TABLE stock_goods ( sg_tech_user text, CONSTRAINT stock_goods_sg_type CHECK (((sg_type = 'c'::bpchar) OR (sg_type = 'd'::bpchar))) ); +CREATE TABLE attr_min ( + frd_id integer, + ad_id integer +); +CREATE TABLE jrnx_back ( + j_id integer, + j_date date, + j_montant double precision, + j_poste integer, + j_grpt integer, + j_rapt text, + j_jrn_def integer, + j_debit boolean, + j_text text, + j_centralized boolean, + j_internal text, + j_tech_user text, + j_tech_date timestamp without time zone, + j_tech_per integer +); +CREATE TABLE log ( + lg_timestamp timestamp without time zone DEFAULT now(), + lg_file text, + lg_type text DEFAULT 'debug', + lg_line text, + lg_msg text +); diff --git a/style-light.css b/style-light.css index 405f2e97f..6491baedb 100644 --- a/style-light.css +++ b/style-light.css @@ -131,8 +131,7 @@ td.mltitle { } td.mtitle { text-align:center; - height:30px; - width:80px; + width:75px; font-size:12px; border: 1px solid; background-color:#DDE6FF; @@ -179,14 +178,12 @@ td.selectedcell{ } a.mtitle { - height:30px; text-decoration:none; display:block; color:blue; } a.mtitle:hover { - height:30px; color:white; background-color:#5D90CD;
'; printf ('%s