From 62ad54cc7109da0b499d93935b2a175b80afd348 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 31 Oct 2005 13:46:56 +0000 Subject: [PATCH] Bug when upgrading PhpCompta to 1.2.2 --- Changelog | 372 ++++++++++++++++-------------- html/admin/setup.php | 29 ++- html/admin/sql/mod2/function.sql | 6 +- html/admin/sql/mod2/schema.sql | 11 +- html/admin/sql/mod2/table.sql | 8 +- html/admin/sql/patch/upgrade7.sql | 47 +++- include/constant.php | 2 +- 7 files changed, 280 insertions(+), 195 deletions(-) diff --git a/Changelog b/Changelog index eb3a8ede5..cea3e11cf 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,34 @@ -2005-10-27 sparkyx +2005-10-30 sparkyx + + * doc/INSTALL-fr.sgml: Update doc + + * include/constant.php, include/impress_bilan.php, include/impress_jrn.php, include/impress_listing_client.php, include/impress_poste.php, include/impress_rapport.php, include/user_form_ods.php, include/user_form_ven.php: + Cosmetics bugs + + * html/stock.php: File form_input is now obsolete, remove that include + + * html/admin/setup.php, html/admin/sql/mod2/comment.sql, html/admin/sql/mod2/data.sql, html/admin/sql/mod2/function.sql, html/admin/sql/mod2/schema.sql: + Adapt French Accountancy + + * FAQ-fr.txt, INSTALL-fr.txt, doc/FAQ-fr.sgml, doc/FAQ-fr.txt, doc/INSTALL-fr.sgml, doc/function.txt: + Update doc + + * scripts/cleanup.sh: adapt script to domaine + + * html/admin/sql/mod2/comment.sql, html/admin/sql/mod2/constraint.sql, html/admin/sql/mod2/data.sql, html/admin/sql/mod2/function.sql, html/admin/sql/mod2/index.sql, html/admin/sql/mod2/schema.sql, html/admin/sql/mod2/sequence.sql, html/admin/sql/mod2/table.sql, html/admin/sql/mod2/view.sql, html/admin/sql/account_repository/data.sql, html/admin/setup.php: + Ajout comptabilité française + + * html/admin/setup.php, html/admin/sql/patch/upgrade7.sql, include/user_common.php, html/index.php: + Last check prerelease 1.2.2 + +2005-10-28 sparkyx + + * include/class_widget.php, include/user_common.php, include/user_form_ach.php, include/user_form_fin.php, include/user_form_ods.php, include/user_form_ven.php: + Task #3840 Code Cleaning + +2005-10-27 sparkyx + + * Changelog: Changelog * include/form_input.php: task #3840 Code Cleaning @@ -12,7 +42,7 @@ * include/class_widget.php, include/form_input.php, include/user_form_ach.php, include/user_form_ven.php, include/user_action_fin.php: Task #3840 Code Cleaning -2005-10-26 sparkyx +2005-10-26 sparkyx * html/recherche.php, include/user_common.php: Task #4857 : For the big databases a nav. bar is now implemented @@ -22,7 +52,7 @@ * include/user_action_ach.php, include/user_action_fin.php, include/user_action_gl.php, include/user_action_ods.php, include/user_action_ven.php, include/user_common.php, include/user_menu.php, html/recherche.php, html/user_pref.php, include/fiche_inc.php: Task #4857 : For the big databases a nav. bar is now implemented -2005-10-25 sparkyx +2005-10-25 sparkyx * html/admin/sql/patch/ac-upgrade6.sql, include/class_user.php, html/admin_repo.php, html/user_pref.php: Task #4857 : add a pagesize @@ -35,7 +65,7 @@ * include/preference.php: Improve cosmetic -2005-10-23 sparkyx +2005-10-23 sparkyx * html/admin/sql/patch/downgrade7.sql: Upgrade if something goes wrong @@ -55,12 +85,12 @@ * html/admin/sql/patch/upgrade7.sql, html/admin/setup.php: add a trigger to the database to validate the rounded value -2005-10-22 sparkyx +2005-10-22 sparkyx * include/form_input.php, include/user_common.php: Check_balance is done by a trigger -2005-10-20 sparkyx +2005-10-20 sparkyx * contrib/test-size/simul.py: Use copy from stdin instead of insert command, improve much the speed @@ -70,19 +100,19 @@ * contrib/test-size/readme, contrib/test-size/simul.py: Add test for the performance and tuning -2005-10-18 sparkyx +2005-10-18 sparkyx * html/admin/sql/patch/upgrade7.sql: add a needed check on the col j_tech_per and jr_tech_per -2005-10-16 sparkyx +2005-10-16 sparkyx * html/annulation.php: fix bug: the j_tech_per was not updated, then the saldo was wrong * include/form_input.php: Fix problem in financial ledger -2005-10-10 sparkyx +2005-10-10 sparkyx * html/modify_op.php, include/check_priv.php, include/jrn.php: Fix : permit to see the detail of an operation if @@ -95,7 +125,7 @@ * html/user_pref.php: Fix problem when changing passord due to register_global off -2005-10-05 sparkyx +2005-10-05 sparkyx * html/admin_repo.php, html/priv_user.php: Fix bug for user creation - password @@ -103,22 +133,22 @@ * html/admin/sql/patch/upgrade7.sql, html/admin_repo.php: Task #3108 : Domaine fix prob with modele -2005-10-04 stanpinte +2005-10-04 stanpinte * doc/manuel-fr.sgml: Corrige une ou deux fautes -2005-10-04 sparkyx +2005-10-04 sparkyx * AUTHORS: Correct my email -2005-10-03 sparkyx +2005-10-03 sparkyx * html/annulation.php, include/constant.php: Add a confirmation dialog box before canceling a writing * include/form_input.php: Fix problem with sequence j_grpt -2005-09-28 sparkyx +2005-09-28 sparkyx * html/admin/setup.php, html/annulation.php: Fix : the jr_id computed was wrong @@ -144,7 +174,7 @@ We now use sequence instead of computing the max for the column jr_grpt_id so we have to update the sequence with the greatest value -2005-09-27 sparkyx +2005-09-27 sparkyx * include/form_input.php, include/jrn.php, html/annulation.php: Annulation - extourne @@ -160,7 +190,7 @@ * html/document/fr_be/bnb.form: Improve : round the amount to 2 decimal -2005-09-25 sparkyx +2005-09-25 sparkyx * html/admin/sql/patch/upgrade7.sql: Patch 7 progress @@ -177,11 +207,11 @@ * html/admin/variable.php: Obsolete -2005-09-21 sparkyx +2005-09-21 sparkyx * include/form_input.php, include/user_action_ach.php: code cleaning -2005-09-08 sparkyx +2005-09-08 sparkyx * INSTALL-fr.txt, doc/manuel-fr.sgml: Task #3108 : Ajout des domaines @@ -193,7 +223,7 @@ * INSTALL-fr.txt, doc/INSTALL-fr.sgml, doc/manuel-fr.sgml: Task #3108 : Ajout des domaines -2005-09-07 sparkyx +2005-09-07 sparkyx * html/admin/sql/patch/ac-upgrade5.sql: Bug #14460 Sql Error @@ -208,12 +238,12 @@ * html/index.php: Change the version on the index page -2005-09-04 sparkyx +2005-09-04 sparkyx * include/form_input.php: In some situations, the rounded amount in jrn was wrong -2005-09-03 sparkyx +2005-09-03 sparkyx * html/admin/sql/patch/upgrade6.sql: Add a operation without tva @@ -223,7 +253,7 @@ * html/recherche.php, html/style-light.css, html/style-print.css: Add a stylesheet for printing -2005-08-27 sparkyx +2005-08-27 sparkyx * html/form_csv.php, html/form_pdf.php, include/ac_common.php, include/impress_rapport.php: Problem if a period has been deleted @@ -237,15 +267,15 @@ * html/document/fr_be/bnb.form: Correct Formula -2005-08-22 stanpinte +2005-08-22 stanpinte * include/form_input.php: fixed typo in var name. -2005-08-21 stanpinte +2005-08-21 stanpinte * include/form_input.php: Renamed all in -2005-08-14 sparkyx +2005-08-14 sparkyx * Changelog, html/index.php: version @@ -265,11 +295,11 @@ * include/class_widget.php: bug Journal ODS -2005-08-13 sparkyx +2005-08-13 sparkyx * include/ac_common.php, include/debug.php: Fix : invalid html header -2005-08-09 sparkyx +2005-08-09 sparkyx * html/admin/sql/patch/ac-upgrade5.sql, html/admin/sql/patch/upgrade5.sql, html/admin/sql/patch/upgrade6.sql, html/style-light.css: fix style @@ -289,7 +319,7 @@ * html/index.php, html/pcmn_update.php: bug : not possible to add an account -2005-07-31 stanpinte +2005-07-31 stanpinte * html/admin/sql/patch/upgrade5.sql: Added check to parm_periode table: p_end >= p_start @@ -299,11 +329,11 @@ * include/preference.php: Fixed periods ordering for Periods dialog. -2005-07-30 stanpinte +2005-07-30 stanpinte * html/user_jrn.php: Added comments. -2005-07-27 sparkyx +2005-07-27 sparkyx * include/decla.BE.inc.php, include/form_inc.php: bug #4332 bug in the name @@ -338,7 +368,7 @@ * html/fiche_csv.php, html/user_impress.php, include/class_fiche.php, include/class_poste.php, include/impress_fiche.php, doc/manuel-fr.sgml: task #4499 : balance pour les fiches -2005-07-25 sparkyx +2005-07-25 sparkyx * contrib/rapport/tva_decla_fr_BE.sql: fix bug tablename @@ -357,7 +387,7 @@ * include/fiche_inc.php: bug 13913 : need more testing -2005-07-21 sparkyx +2005-07-21 sparkyx * Changelog: ChangeLog @@ -390,15 +420,15 @@ Formulaire is reserved for another purpose The new name is "rapport" -2005-07-14 stanpinte +2005-07-14 stanpinte * include/user_action_ods.php: Corrected typo -2005-07-14 sparkyx +2005-07-14 sparkyx * html/jrn_detail.php: TASK #4359 : Fix problem with p_jrn -2005-07-10 sparkyx +2005-07-10 sparkyx * html/document/fr_be/bnb.rtf: Task #4123 correct formula @@ -409,7 +439,7 @@ Progress for bilan Normally this version is close to be finished but still a beta stage -2005-07-09 stanpinte +2005-07-09 stanpinte * Changelog, include/form_input.php: Prevented operations with 0 debit/credit. @@ -421,7 +451,7 @@ * Changelog, html/index.php: Now focus is on the Log In button -2005-07-09 sparkyx +2005-07-09 sparkyx * Changelog: ChangeLog @@ -438,18 +468,18 @@ * dev/reset.sql, dev/reset_seq_jrn.sql, dev/test_parse_formula.php, dev/README: Add devlp script -2005-07-08 sparkyx +2005-07-08 sparkyx * html/form.php, include/class_form.php, include/form_inc.php, include/impress_inc.php, doc/bnb.sxw: Task #4402 : Security Problem Problème est resolu grace à une procedure de check Avantage : la validité des formules est directement vérifiée -2005-07-05 sparkyx +2005-07-05 sparkyx * doc/bnb.sxw: Task #4123 Ajout Bilan -2005-07-04 sparkyx +2005-07-04 sparkyx * Changelog: ChangeLog @@ -478,29 +508,29 @@ * Changelog, doc/function.txt, doc/manuel-fr.sgml, include/ac_common.php, include/class_form.php, include/impress_inc.php: Task #4124 : TVA declaration -2005-07-04 stanpinte +2005-07-04 stanpinte * include/constant.php, include/impress_inc.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, html/annulation.php, html/fiche_new.php, html/fiche_search.php, html/jrn_detail.php, html/jrn_op_detail.php, html/jrn_search.php, html/modify_op.php, html/poste_search.php, html/sec_pdf.php, html/user_jrn.php: enleve la variable globale g_jrn, remplace par param HTTP p_jrn partout -2005-07-01 stanpinte +2005-07-01 stanpinte * html/user_jrn.php: added comment -2005-06-30 sparkyx +2005-06-30 sparkyx * doc/manuel-fr.sgml, html/form_csv.php, include/class_poste.php, include/impress_form.php, include/impress_inc.php, include/poste.php: Task 4331 Improve Formula -2005-06-29 sparkyx +2005-06-29 sparkyx * html/form.php: Fix unknown sessid (dependent of php's version) -2005-06-24 stanpinte +2005-06-24 stanpinte * include/fiche_inc.php, include/form_input.php: Added comments -2005-06-22 sparkyx +2005-06-22 sparkyx * Changelog: Changelog @@ -512,7 +542,7 @@ * doc/function.txt, html/form.php, html/user_impress.php, include/ac_common.php, include/constant.php, include/impress_form.php, include/impress_inc.php, include/user_menu.php: Task 4301 Form (html, pdf, csv) needs more test -2005-06-17 sparkyx +2005-06-17 sparkyx * Changelog: Changelog update @@ -528,16 +558,16 @@ * doc/install_windows_fr.sxw: Add documentation for Windows installation -2005-06-11 stanpinte +2005-06-11 stanpinte * html/fiche_search.php: focus dans le textfield de la frame de recherche et focus sur le premier rsultat dans la frame de recherche -2005-05-29 sparkyx +2005-05-29 sparkyx * doc/Schemaabrege1.pdf, doc/bnb.sxw: Task #4123 Ajout Bilan -2005-05-07 sparkyx +2005-05-07 sparkyx * Changelog: Task 4111: Changelog @@ -550,7 +580,7 @@ * html/admin/setup.php: Task 4111: remove debug info -2005-05-06 sparkyx +2005-05-06 sparkyx * doc/INSTALL-fr.sgml: task 4111 Tipo @@ -578,17 +608,17 @@ * FAQ-fr.txt, doc/FAQ-fr.sgml, doc/FAQ-fr.txt, doc/INSTALL-fr.sgml, doc/manuel-fr.sgml, INSTALL-fr.txt: Update doc -2005-05-05 stanpinte +2005-05-05 stanpinte * INSTALL-fr.txt: documented include path on windows * INSTALL-fr.txt: Documented log db creation -2005-05-05 sparkyx +2005-05-05 sparkyx * Changelog: Changelog -2005-05-04 sparkyx +2005-05-04 sparkyx * include/fiche_inc.php: bug 12971 @@ -604,13 +634,13 @@ Fix u_redcontent in html/style-light.css Fix Javascript prob. -2005-04-29 sparkyx +2005-04-29 sparkyx * html/sec_pdf.php, html/user_sec.php, include/class_user.php: Task 3839 Export PDF de la sécurité -2005-04-27 sparkyx +2005-04-27 sparkyx * include/ac_common.php: Fix unset variable @@ -620,7 +650,7 @@ * html/admin/setup.php: Bug 12702 : session_auto_start == false -2005-04-21 stanpinte +2005-04-21 stanpinte * include/ac_common.php, include/form_input.php, html/style-light.css, html/user_jrn.php: Added focus on date field in new financial form @@ -635,15 +665,15 @@ * scripts/add-db.sh: Made sure upgrade4.sql is processed on new file -2005-04-09 sparkyx +2005-04-09 sparkyx * html/index.php: Add a warning about IE -2005-04-03 sparkyx +2005-04-03 sparkyx * html/style.css, html/style-aqua.css: Fix theme -2005-04-01 sparkyx +2005-04-01 sparkyx * include/ac_common.php: if debug is off do not open the log file @@ -653,7 +683,7 @@ * html/admin/setup.php, include/class_user.php: Bug Session.auto_start must be set to true -2005-03-31 sparkyx +2005-03-31 sparkyx * Changelog: Changelog @@ -680,31 +710,31 @@ * html/admin/setup.php, html/admin/sql/account_repository/data.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/mod1/data.sql: Fix problem of version the scherma version of the REL100A is 4 and no 3 -2005-03-29 stanpinte +2005-03-29 stanpinte * html/fiche.php: Fixed wrong variable * html/annulation.php: Fixed operation annulation -2005-03-28 stanpinte +2005-03-28 stanpinte * html/annulation.php: Fixed asecond bug * html/annulation.php: Fixed a first bug -2005-03-21 stanpinte +2005-03-21 stanpinte * html/jrn_detail.php, html/priv_user.php, html/sec_pdf.php, html/user_jrn.php, include/user_action_fin.php, scripts/add-db.sh, AUTHORS: Debugged use of global vars. -2005-03-15 sparkyx +2005-03-15 sparkyx * html/jrn_csv.php: Fix Bug for centralized jrn (export csv) * html/admin/sql/account_repository/data.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/mod1/data.sql, html/admin/sql/patch/ac-upgrade4.sql, html/admin/setup.php: Fix bug in the update scripts -2005-03-13 sparkyx +2005-03-13 sparkyx * Changelog: changelog @@ -725,24 +755,24 @@ * html/priv_user.php, html/user_sec.php: task 3876 Filter the users -2005-03-09 sparkyx +2005-03-09 sparkyx * html/addon/class.ezpdf.php, html/addon/class.pdf.php, html/addon/data.txt, html/addon/fonts/Courier-Bold.afm, html/addon/fonts/Courier-BoldOblique.afm, html/addon/fonts/Courier-Oblique.afm, html/addon/fonts/Courier.afm, html/addon/fonts/Helvetica-Bold.afm, html/addon/fonts/Helvetica-BoldOblique.afm, html/addon/fonts/Helvetica-Oblique.afm, html/addon/fonts/Helvetica.afm, html/addon/fonts/Symbol.afm, html/addon/fonts/Times-Bold.afm, html/addon/fonts/Times-BoldItalic.afm, html/addon/fonts/Times-Italic.afm, html/addon/fonts/Times-Roman.afm, html/addon/fonts/ZapfDingbats.afm, html/addon/fonts/php_Courier-Bold.afm, html/addon/fonts/php_Courier-BoldOblique.afm, html/addon/fonts/php_Courier-Oblique.afm, html/addon/fonts/php_Courier.afm, html/addon/fonts/php_Helvetica-Bold.afm, html/addon/fonts/php_Helvetica-BoldOblique.afm, html/addon/fonts/php_Helvetica-Oblique.afm, html/addon/fonts/php_Helvetica.afm, html/addon/fonts/php_Symbol.afm, html/addon/fonts/php_Times-Bold.afm, html/addon/fonts/php_Times-BoldItalic.afm, html/addon/fonts/php_Times-Italic.afm, html/addon/fonts/php_Times-Roman.afm, html/addon/fonts/php_ZapfDingbats.afm, html/addon/fonts/php_a0100131.afm, html/addon/fonts/php_a010013l.afm, html/addon/readme.pdf, html/addon/readme.php, html/addon/ros.jpg, html/admin/setup.php, addon/fonts/php_Helvetica-BoldOblique.afm, addon/fonts/php_Helvetica-Oblique.afm, addon/fonts/php_Helvetica.afm, addon/fonts/php_Symbol.afm, addon/fonts/php_Times-Bold.afm, addon/fonts/php_Times-BoldItalic.afm, addon/fonts/php_Times-Italic.afm, addon/fonts/php_Times-Roman.afm, addon/fonts/php_ZapfDingbats.afm, addon/fonts/php_a0100131.afm, addon/fonts/php_a010013l.afm, addon/fonts/Courier-Bold.afm, addon/fonts/Courier-BoldOblique.afm, addon/fonts/Courier-Oblique.afm, addon/fonts/Courier.afm, addon/fonts/Helvetica-Bold.afm, addon/fonts/Helvetica-BoldOblique.afm, addon/fonts/Helvetica-Oblique.afm, addon/fonts/Helvetica.afm, addon/fonts/Symbol.afm, addon/fonts/Times-Bold.afm, addon/fonts/Times-BoldItalic.afm, addon/fonts/Times-Italic.afm, addon/fonts/Times-Roman.afm, addon/fonts/ZapfDingbats.afm, addon/fonts/php_Courier-Bold.afm, addon/fonts/php_Courier-BoldOblique.afm, addon/fonts/php_Courier-Oblique.afm, addon/fonts/php_Courier.afm, addon/fonts/php_Helvetica-Bold.afm: FIX the addon misplaced, the old install.sh copied it to the good place but now we do not use it anymore. So I had to move it -2005-03-08 sparkyx +2005-03-08 sparkyx * Changelog: Update Changelog * html/fiche_search.php, html/form.php, html/jrn_add.php: task 3858: Fix little in cl_user::CheckAction -2005-03-07 sparkyx +2005-03-07 sparkyx * html/admin/sql/patch/upgrade4.sql, html/bal_csv.php, html/central.php, html/dossier_prefs.php, html/fiche.php, html/fiche_csv.php, html/fiche_new.php, html/fiche_search.php, html/form.php, html/jrn_add.php, html/jrn_csv.php, html/jrn_detail.php, html/jrn_pdf.php, html/jrn_update.php, html/line_update.php, html/pcmn_update.php, html/print_balance.php, html/recherche.php, html/show_document.php, html/user_sec.php, include/balance.php, include/class_user.php, include/constant.php, include/user_common.php: task 3858 : revision of the security correction & improvement -2005-03-06 sparkyx +2005-03-06 sparkyx * Changelog: changelog @@ -756,7 +786,7 @@ * include/user_action_ach.php, include/user_action_ods.php, include/user_action_ven.php, include/user_common.php, html/admin/sql/patch/upgrade4.sql, include/class_widget.php, include/form_input.php, include/postgres.php, html/user_jrn.php: Tasl 3778 : Add uploaded document for operation -2005-03-06 stanpinte +2005-03-06 stanpinte * include/impress_poste.php: Disabled the all option. @@ -767,18 +797,18 @@ * scripts/add-db.sh, html/central.php: Fixed task 3838i (keep secundary menus when selecting secundary item -2005-03-06 sparkyx +2005-03-06 sparkyx * html/admin/sql/patch/upgrade4.sql: Set version at the end -2005-03-06 stanpinte +2005-03-06 stanpinte * scripts/add-db.sh: made script useful for other dbs, and file ids * Changelog, include/user_menu.php, html/pcmn_update.php, html/user_advanced.php, html/user_jrn.php, html/jrn_update.php: Fixed task 3838i (keep secundary menus when selecting secundary item -2005-03-06 sparkyx +2005-03-06 sparkyx * include/form_input.php, include/postgres.php, include/user_action_ven.php, include/user_common.php: change pg_exec by pg_query @@ -790,7 +820,7 @@ * doc/function.txt, doc/makedoc, html/central.php, html/dossier_prefs.php, html/enc_jrn.php, html/facturation.php, html/fiche.php, html/form.php, html/jrn_add.php, html/jrn_detail.php, html/jrn_update.php, html/line_update.php, html/pcmn_update.php, html/recherche.php, html/stock.php, html/user_advanced.php, html/user_compta.php, html/user_impress.php, html/user_jrn.php, html/user_pref.php, html/user_sec.php, include/user_menu.php: removed obsolete files -2005-03-06 stanpinte +2005-03-06 stanpinte * include/compta_menu.php, include/top_menu_compta.php: Removed some files related to compta profile @@ -810,7 +840,7 @@ * Changelog: added info -2005-03-01 sparkyx +2005-03-01 sparkyx * Changelog: Changelog @@ -824,11 +854,11 @@ * html/rate_chg.php, html/send.php: Remove obsolete files -2005-02-28 sparkyx +2005-02-28 sparkyx * Changelog: Changelog -2005-02-27 sparkyx +2005-02-27 sparkyx * html/admin_repo.php, html/annulation.php, html/bal_csv.php, html/central.php, html/compta.php, html/compta_login.php, html/dossier_prefs.php, html/enc_jrn.php, html/fiche.php, html/fiche_csv.php, html/fiche_new.php, html/fiche_search.php, html/impress.php, html/jrn_add.php, html/jrn_csv.php, html/jrn_detail.php, html/jrn_op_detail.php, html/jrn_pdf.php, html/jrn_search.php, html/jrn_update.php, html/line_update.php, html/login.php, html/modify_op.php, html/pcmn_update.php, html/poste_csv.php, html/poste_pdf.php, html/poste_search.php, html/print_balance.php, html/priv_user.php, html/recherche.php, html/show_tva.php, html/stock.php, html/user_advanced.php, html/user_compta.php, html/user_impress.php, html/user_jrn.php, html/user_login.php, html/user_pref.php, html/user_sec.php, include/balance.php, include/class_user.php, include/impress_fiche.php, include/top_menu_compta.php, include/user_action_ach.php, include/user_action_fin.php, include/user_action_gl.php, include/user_action_ods.php, include/user_action_ven.php, include/user_menu.php: Fix numerous bug and now PhpCompta can work with session_register sets to off @@ -836,7 +866,7 @@ * html/admin/sql/account_repository/comment.sql, html/admin/sql/account_repository/constraint.sql, html/admin/sql/account_repository/data.sql, html/admin/sql/account_repository/schema.sql, html/admin/sql/account_repository/sequence.sql, html/admin/sql/account_repository/table.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/dossier1/schema.sql, html/admin/sql/dossier1/sequence.sql, html/admin/sql/mod1/data.sql, html/admin/sql/mod1/schema.sql, html/admin/sql/mod1/sequence.sql, html/admin/sql/patch/upgrade4.sql, html/admin/setup.php: Fix upgrade -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/setup.php: Remove debug @@ -846,7 +876,7 @@ Yannick Improve html_page_start Fix prob with GetRow -2005-02-26 stanpinte +2005-02-26 stanpinte * scripts/add-db.sh: inserted example script to insert automatically a database @@ -855,19 +885,19 @@ * html/admin/setup.php: fixed regexp handling in include_path check -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/sql/dossier1/comment.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/dossier1/index.sql, html/admin/sql/dossier1/schema.sql, html/admin/sql/dossier1/sequence.sql, html/admin/sql/dossier1/table.sql, html/admin/sql/mod1/comment.sql, html/admin/sql/mod1/constraint.sql, html/admin/sql/mod1/data.sql, html/admin/sql/mod1/schema.sql, html/admin/sql/mod1/sequence.sql, html/admin/sql/mod1/table.sql, html/login.php: SQL -2005-02-26 stanpinte +2005-02-26 stanpinte * html/admin/sql/account_repository/schema.sql: added comment * install.sh, setenv.sh: made mswindows compatible, and removed update checks. -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/setup.php: Sql Comment prob @@ -876,28 +906,28 @@ * html/admin/sql/account_repository/data.sql, html/admin/sql/account_repository/schema.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/mod1/schema.sql: Fix SQL -2005-02-26 stanpinte +2005-02-26 stanpinte * sql/dossier4/make-sql, sql/dossier4/constraint.sql, sql/dossier4/data.sql, sql/dossier4/schema.sql, sql/dossier4/sequence.sql, sql/dossier4/table.sql, sql/update/dossier_1.sql, sql/update/dossier_2.sql, sql/update/dossier_3.sql, sql/update/dossier_4.sql, sql/update/dossier_5.sql, sql/update/mod_1.sql, sql/update/mod_2.sql, sql/update/mod_3.sql, sql/update/mod_4.sql, sql/ac_dossier.sql, sql/ac_users.sql, sql/account_repository.sql, sql/centralized.sql, sql/demo.sql, sql/dos_pref.sql, sql/dump-db.sql, sql/fiche.sql, sql/form.sql, sql/insert_pcmn.sql, sql/jnt_use_dos.sql, sql/journal.sql, sql/jrn_action.sql, sql/mod-be.sql, sql/modele.sql, sql/priv_user.sql, sql/struct-repository.sql, sql/struct.sql, sql/theme.sql, sql/tmp_pcmn.sql, sql/tva_rate.sql, sql/user_pref.sql, sql/user_sec.sql, sql/version.sql: moved all sql but 'log' into html base directory -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/sql/account_repository/data.sql: Fix -2005-02-26 stanpinte +2005-02-26 stanpinte * install.sh: resurrected -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/sql/dossier1/data.sql: Fix problem of install -2005-02-26 stanpinte +2005-02-26 stanpinte * scripts/cleanup.sh: added -2005-02-26 sparkyx +2005-02-26 sparkyx * html/admin/sql/dossier1/comment.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/dossier1/index.sql, html/admin/sql/dossier1/schema.sql, html/admin/sql/dossier1/sequence.sql, html/admin/sql/dossier1/table.sql, html/login.php, html/recherche.php, html/user_login.php, include/ac_common.php, include/class_user.php, include/form_input.php: FIX install @@ -907,7 +937,7 @@ * html/admin/setup.php, html/admin/sql/dossier1/comment.sql, html/admin/sql/dossier1/constraint.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/dossier1/make-sql, html/admin/sql/dossier1/schema.sql, html/admin/sql/dossier1/sequence.sql, html/admin/sql/dossier1/table.sql: FIX install problem -2005-02-22 sparkyx +2005-02-22 sparkyx * html/admin/sql/account_repository/data.sql, html/admin/sql/account_repository/schema.sql, html/admin/sql/account_repository/table.sql, html/admin/sql/dossier1/data.sql, html/admin/sql/dossier1/index.sql, html/admin/sql/dossier1/schema.sql, html/admin/sql/dossier1/sequence.sql, html/admin/sql/dossier1/table.sql, html/admin/sql/mod1/data.sql, html/admin/sql/mod1/function.sql, html/admin/sql/mod1/index.sql, html/admin/sql/mod1/schema.sql, html/admin/sql/mod1/sequence.sql, html/admin/sql/mod1/table.sql: Update database schema @@ -916,7 +946,7 @@ * html/admin/setup.php, include/stock_inc.php: IMPROVE stock -2005-02-13 sparkyx +2005-02-13 sparkyx * Changelog: changelog @@ -925,7 +955,7 @@ Change printing for the operation id update the patch sql for that -2005-02-12 sparkyx +2005-02-12 sparkyx * html/admin/sql/patch/upgrade4.sql, html/admin_repo.php: Fix bug in modele and database creation @@ -949,7 +979,7 @@ * html/admin/sql/patch/upgrade4.sql: IMPROVE setup -2005-02-08 sparkyx +2005-02-08 sparkyx * Changelog: changelog @@ -965,7 +995,7 @@ * html/admin/setup.php, html/admin/sql/patch/upgrade4.sql: IMPROVE setup html based, ability to patch -2005-02-06 sparkyx +2005-02-06 sparkyx * Changelog: changelog @@ -985,14 +1015,14 @@ a new module webbased has been created, the old version of install.sh is now obsolete -2005-02-04 sparkyx +2005-02-04 sparkyx * Changelog: changelog * INSTALL-fr.txt, doc/INSTALL-fr.sgml, doc/function.txt, include/form_input.php, include/user_common.php, include/user_menu.php: Improve the search : it is now possible to find all the operation related to a poste -2005-02-03 sparkyx +2005-02-03 sparkyx * html/fiche_csv.php: Fix bug @@ -1006,7 +1036,7 @@ * doc/INSTALL-fr.sgml: Update Documentation -2005-02-01 sparkyx +2005-02-01 sparkyx * Changelog: Changelog @@ -1024,7 +1054,7 @@ * INSTALL-fr.txt, doc/INSTALL-fr.sgml, html/fiche_csv.php, include/class_fiche.php, include/impress_fiche.php, include/postgres.php: Printing of card is now completely correct -2005-01-31 sparkyx +2005-01-31 sparkyx * Changelog: Changelog @@ -1033,7 +1063,7 @@ * html/fiche_csv.php, include/class_fiche.php, include/impress_fiche.php: Add Fiche print and export : a bug is still to be fixed -2005-01-24 sparkyx +2005-01-24 sparkyx * Changelog: Change log @@ -1051,7 +1081,7 @@ * style.css: Obsolete -2005-01-20 sparkyx +2005-01-20 sparkyx * include/user_menu.php: Fix Access Key @@ -1063,16 +1093,16 @@ * html/user_pref.php, include/class_fiche.php: Drop compta interface -2005-01-19 stanpinte +2005-01-19 stanpinte * include/user_menu.php: added tooltips, and hotkey for Jrn menus. (must still debug get_quick_key function -2005-01-18 sparkyx +2005-01-18 sparkyx * include/impress_poste.php: Add poste name in impress.php -2005-01-10 sparkyx +2005-01-10 sparkyx * Changelog: Changelog @@ -1083,7 +1113,7 @@ * include/class_balance.php, include/class_fiche.php: Improve code -2005-01-04 sparkyx +2005-01-04 sparkyx * Changelog: Changelog @@ -1097,14 +1127,14 @@ * html/stock.php, html/fiche_search.php, html/form.php, html/jrn_add.php, html/jrn_csv.php, html/jrn_detail.php, html/jrn_op_detail.php, html/jrn_pdf.php, html/jrn_search.php, html/login.php, html/modify_op.php, html/pcmn_update.php, html/poste_csv.php, html/poste_pdf.php, html/poste_search.php, html/print_balance.php, html/print_invoice.php, html/rate_chg.php, html/recherche.php, html/send.php, html/send_jrn_pdf.php, html/send_poste_pdf.php, html/show_tva.php, html/annulation.php, html/bal_csv.php, html/central.php, html/dossier_prefs.php, html/enc_jrn.php, html/facturation.php, html/fiche_new.php: Code cleaning : DbConnect function -2004-12-16 sparkyx +2004-12-16 sparkyx * Changelog: changelog * html/enc_jrn.php, html/style-light.css, html/user_jrn.php, include/top_menu_compta.php: Fix style for compta style -2004-12-15 sparkyx +2004-12-15 sparkyx * Changelog: changelog @@ -1112,7 +1142,7 @@ Change remove all the global variable, user $_SESSION instead Improve appearance for administrator -2004-12-13 sparkyx +2004-12-13 sparkyx * Changelog: Changelog @@ -1122,7 +1152,7 @@ * html/bal_csv.php, include/balance.php, include/impress_jrn.php, html/print_balance.php: NEW balance in HTML, PDF & CSV -2004-12-12 sparkyx +2004-12-12 sparkyx * html/jrn_search.php, include/user_common.php: change in search : order by date asc @@ -1177,14 +1207,14 @@ * html/jrn_op_detail.php: Improve appearance -2004-12-05 sparkyx +2004-12-05 sparkyx * include/user_action_ach.php, include/user_action_fin.php, include/user_action_ods.php, include/user_action_ven.php: Change "voir" submenu for journaux" * html/modify_op.php: Improve appearance -2004-12-04 sparkyx +2004-12-04 sparkyx * include/user_action_gl.php, include/user_common.php: Improve grand livre to have the same look at the others @@ -1197,17 +1227,17 @@ * html/user_jrn.php, include/user_action_gl.php, include/user_menu.php: Add Grand Livre -2004-11-29 sparkyx +2004-11-29 sparkyx * html/balance.php, html/fiche_search.php, html/user_impress.php, include/balance.php, include/form_input.php, include/impress_jrn.php, include/user_action_ven.php, include/user_menu.php: Fix cosmetics -2004-11-26 sparkyx +2004-11-26 sparkyx * html/jrn_csv.php, html/jrn_pdf.php, html/poste_csv.php, html/poste_pdf.php, include/class_jrn.php, include/class_poste.php, include/class_user.php, include/impress_jrn.php, include/impress_poste.php: Add csv and pdf for poste -2004-11-25 sparkyx +2004-11-25 sparkyx * include/impress_jrn.php, doc/function.txt, html/jrn_csv.php, html/jrn_pdf.php, html/user_impress.php, html/user_jrn.php, include/ac_common.php, include/class_jrn.php, include/class_operation.php, include/class_user.php, include/class_widget.php, include/form_input.php, include/jrn.php, include/user_menu.php: Add new print system and CSV for journaux @@ -1215,7 +1245,7 @@ * sql/account_repository/data.sql, sql/account_repository/make-sql, sql/account_repository/schema.sql, sql/account_repository/table.sql, sql/dossier1/data.sql, sql/dossier1/make-sql, sql/dossier1/schema.sql, sql/mod1/make-sql: Add Sql comment -2004-11-23 sparkyx +2004-11-23 sparkyx * html/impress.php: restore impress.php @@ -1235,16 +1265,16 @@ * html/annulation.php, html/style-elegant.css, html/style-light.css, html/test.php, html/user_jrn.php: Improve test -2004-11-06 sparkyx +2004-11-06 sparkyx * INSTALL-fr.txt, doc/INSTALL-fr.sgml, html/style-elegant.css, include/constant.php, include/debug.php, include/user_action_ven.php, include/user_menu.php: change the adm. menu -2004-11-04 sparkyx +2004-11-04 sparkyx * sql/log/log.sql: Log database for debugging purpose -2004-10-26 sparkyx +2004-10-26 sparkyx * sql/mod1/fct.sql~, sql/mod1/make-sql~, sql/mod1/ac_dossier.sql, sql/mod1/ac_users.sql, sql/mod1/e, sql/mod1/fct.sql, sql/mod1/jnt_use_dos.sql, sql/mod1/log, sql/mod1/modeledef.sql, sql/mod1/schema.sql, sql/mod1/theme.sql: Remove obsolete @@ -1252,12 +1282,12 @@ * html/annulation.php, html/balance.php, html/central.php, html/pcmn_update.php, html/stock.php, include/user_common.php, include/user_menu.php: Fix cosmetic and add delete from no centralized op -2004-10-25 sparkyx +2004-10-25 sparkyx * html/admin_repo.php, html/impress.php, html/jrn_add.php, html/jrn_detail.php, html/jrn_update.php, html/priv_user.php, html/style-light.css, html/user_compta.php, html/user_jrn.php, html/user_login.php, html/user_sec.php, include/top_menu_compta.php, include/user_menu.php: Improve interface fix some bugs & still unstable -2004-10-10 sparkyx +2004-10-10 sparkyx * sql/update/dossier_5.sql: Remove menu Impression & Recherche from jrn's menu @@ -1271,7 +1301,7 @@ * html/dossier_prefs.php, html/fiche.php, html/index.php, html/user_advanced.php, html/user_jrn.php, html/user_pref.php, include/user_action_ach.php, include/user_action_fin.php, include/user_action_ods.php, include/user_action_ven.php, include/user_menu.php: Interfaces changes -2004-10-03 sparkyx +2004-10-03 sparkyx * doc/function.txt, html/index.php, html/user_jrn.php, include/ac_common.php, include/form_input.php, include/postgres.php, include/user_action_ach.php, include/user_action_fin.php, include/user_action_ods.php, include/user_action_ven.php, include/user_menu.php, style-light.css: Change appearance --> do not work, do not use it !! @@ -1282,7 +1312,7 @@ * 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 +2004-09-22 sparkyx * doc/INSTALL-fr.sgml, doc/FAQ-fr.sgml, doc/FAQ-fr.txt, doc/function.txt: Improve doc @@ -1290,17 +1320,17 @@ * 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/dossier4/constraint.sql, sql/dossier4/data.sql, sql/dossier4/make-sql, sql/dossier4/schema.sql, sql/dossier4/sequence.sql, sql/dossier4/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 +2004-07-06 sparkyx * install.sh: bug 9574 -2004-06-12 sparkyx +2004-06-12 sparkyx * doc/INSTALL-fr.sgml: task 3106 * doc/INSTALL-fr.sgml: Update doc task 3106 -2004-06-06 sparkyx +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 @@ -1314,13 +1344,13 @@ * include/debug.php: no debug info in prod -2004-05-19 sparkyx +2004-05-19 sparkyx * doc/manuel-fr.sgml: task 3106 * include/preference.php: fix cosmetic bug in ShowPeriode -2004-05-02 sparkyx +2004-05-02 sparkyx * html/test.php: bug 8757 missing file @@ -1329,12 +1359,12 @@ * html/annulation.php: Bug : forgot to include a file -2004-04-28 sparkyx +2004-04-28 sparkyx * Changelog, html/annulation.php, html/pcmn_update.php, install.sh, style-light.css: Cosmetic bugs -2004-04-19 sparkyx +2004-04-19 sparkyx * doc/manuel-fr.sgml: Task 3106 @@ -1346,15 +1376,15 @@ * html/modify_op.php, html/user_sec.php, include/check_priv.php, include/user_action_ach.php, include/user_action_fin.php, include/user_action_ods.php, include/user_action_ven.php, include/user_menu.php: Bug 8597 Security major prob -2004-04-15 sparkyx +2004-04-15 sparkyx * include/form_input.php: bug 8581 -2004-04-15 stanpinte +2004-04-15 stanpinte * include/user_menu.php: corrected typo -2004-04-14 sparkyx +2004-04-14 sparkyx * Changelog: update @@ -1363,7 +1393,7 @@ * include/jrn.php: Fix bug is paid -2004-04-13 sparkyx +2004-04-13 sparkyx * html/fiche_new.php: Fix javascript bug for new card @@ -1386,15 +1416,15 @@ * doc/manuel-fr.sgml: Update doc -2004-04-12 sparkyx +2004-04-12 sparkyx * include/form_input.php: Increase nb of default rows for ODS -2004-04-11 sparkyx +2004-04-11 sparkyx * html/print_balance.php: Fix order in balance -2004-04-10 sparkyx +2004-04-10 sparkyx * html/pcmn_update.php: Bug : invalid string make the pcmn_update fail @@ -1410,11 +1440,11 @@ * include/form_input.php, include/user_menu.php: Bug cosmetic -2004-04-08 sparkyx +2004-04-08 sparkyx * Changelog: Update -2004-04-07 sparkyx +2004-04-07 sparkyx * Faq, INSTALL-fr.txt: Update doc @@ -1431,7 +1461,7 @@ * include/constant.php, include/form_input.php, include/user_common.php: New vat can be changed in sell -2004-04-06 sparkyx +2004-04-06 sparkyx * include/user_common.php: Fix Bug in search by date @@ -1461,23 +1491,23 @@ * include/user_action_ods.php: Fix correct in ODS -2004-04-05 sparkyx +2004-04-05 sparkyx * install.sh, setenv.sh: Fixed path for COMPTA_HOME -2004-04-04 stanpinte +2004-04-04 stanpinte * html/send_jrn_pdf.php: reverted: corrected missing path entry. fixes PDF output * html/send_jrn_pdf.php: corrected missing path entry. fixes PDF output -2004-04-04 sparkyx +2004-04-04 sparkyx * html/annulation.php, html/jrn_detail.php, include/form_input.php: New : set date when cancel an operation -2004-04-03 sparkyx +2004-04-03 sparkyx * sql/account_repository.sql, sql/demo.sql, sql/mod-be.sql: db correction (fiche) @@ -1508,7 +1538,7 @@ * doc/manuel-fr.sgml, html/annulation.php, include/constant.php, include/form_input.php, include/jrn.php, include/stock_inc.php, include/user_action_ach.php, include/user_action_fin.php, include/user_common.php, Changelog: Fix bug in annulation, add check to validate number and card -2004-04-02 sparkyx +2004-04-02 sparkyx * html/annulation.php, include/central_inc.php: Change cancel an op : j_internal=='ANNULE' and jr_internal of the cancel operation = 'ANNULE' @@ -1523,7 +1553,7 @@ * html/annulation.php, html/fiche_new.php, html/fiche_search.php, html/jrn_search.php, html/login.php, html/print_balance.php, html/stock.php, html/user_login.php, include/constant.php, include/form_input.php, include/jrn.php, include/postgres.php, include/user_common.php, include/user_menu.php, sql/account_repository.sql, sql/demo.sql, sql/mod-be.sql, FAQ-fr.txt, doc/FAQ-fr.txt, doc/manuel-fr.sgml, html/admin_repo.php, style-light.css: Many little Bugs fixed -2004-04-01 sparkyx +2004-04-01 sparkyx * include/form_input.php, include/user_action_fin.php, include/user_action_ods.php: Improve appearance in user interface for ach, ven, fin and ods @@ -1579,7 +1609,7 @@ * style-aqua.css, style-elegant.css, style-light.css, style.css: Update style -2004-03-30 sparkyx +2004-03-30 sparkyx * html/enc_jrn.php: "Rapprochement " (linked between concerned operation) @@ -1620,14 +1650,14 @@ * doc/FAQ-fr.txt: task 3106 -2004-03-29 sparkyx +2004-03-29 sparkyx * doc/manuel-fr.sgml: task 3106 * sql/account_repository.sql, sql/demo.sql, sql/mod-be.sql: Change tva - use insert instead of copy -2004-03-28 sparkyx +2004-03-28 sparkyx * include/form_input.php, include/user_action_fin.php: Add financial @@ -1635,7 +1665,7 @@ * sql/mod-be.sql: Update modele -2004-03-27 sparkyx +2004-03-27 sparkyx * Changelog: Changelog @@ -1644,7 +1674,7 @@ * doc/FAQ-fr.sgml, doc/INSTALL-fr.sgml: task 3106 - Php setting -2004-03-26 sparkyx +2004-03-26 sparkyx * FAQ-fr.txt: task 3106 @@ -1710,7 +1740,7 @@ * install.sh: improve installation => create a log -2004-03-24 sparkyx +2004-03-24 sparkyx * Changelog: Changelog @@ -1736,7 +1766,7 @@ * style-light.css: new class div.u_redcontent -2004-03-18 sparkyx +2004-03-18 sparkyx * Changelog: Update @@ -1760,13 +1790,13 @@ * install.sh, setenv.sh: Fix problem with setenv -2004-02-15 sparkyx +2004-02-15 sparkyx * doc/FAQ.sgml: Fix Cross Ref * doc/Makefile: Add pdf creation -2004-02-14 sparkyx +2004-02-14 sparkyx * doc/INSTALL-fr.sgml: FIX @@ -1781,7 +1811,7 @@ * doc/FAQ.sgml: FAQ Frequently Asked Questions (in french) -2004-02-08 sparkyx +2004-02-08 sparkyx * doc/manual.sxw: webcompta -> phpcompta @@ -1797,7 +1827,7 @@ * install.sh: Fix syntax error Philippe Chauvat -2004-01-01 sparkyx +2004-01-01 sparkyx * include/impress_inc.php: Fix bug in the Forms printing @@ -1805,7 +1835,7 @@ * html/jrn_detail.php: fix Debit-Credit -2003-11-30 sparkyx +2003-11-30 sparkyx * sql/journal.sql: Continue work for user profile @@ -1827,7 +1857,7 @@ * install.sh: New : install, check the version and patch the db if necessary -2003-11-20 sparkyx +2003-11-20 sparkyx * Changelog: Change the name webcompta to PhpCompta Improve user profile @@ -1858,7 +1888,7 @@ * html/admin_repo.php, html/calculator.js, html/calendar.js, html/central.php, html/compta.php, html/compta_login.php, html/compute.js, html/dossier_prefs.php, html/enc_jrn.php, html/facturation.php, html/fiche.php, html/jrn_add.php, html/jrn_detail.php, html/jrn_op_detail.php, html/jrn_search.php, html/jrn_update.php, html/line_update.php, html/login.php, html/logout.php, html/not_implemented.php, html/pcmn_update.php, html/poste_search.php, html/priv_user.php, html/rate_chg.php, html/send.php, html/send_jrn_pdf.php, html/send_poste_pdf.php, html/form.php, Faq, INSTALL, install.sh: Change the name webcompta to phpcompta -2003-11-15 sparkyx +2003-11-15 sparkyx * Changelog: New Add database template New Add 'user' type @@ -1879,12 +1909,12 @@ * sql/modele.sql: New Feature add database modele -2003-10-31 sparkyx +2003-10-31 sparkyx * INSTALL, sql/ac_users.sql, style-light.css: Improve a little bit the doc -2003-10-24 sparkyx +2003-10-24 sparkyx * Changelog: Update ChangeLog @@ -1904,7 +1934,7 @@ * style-elegant.css, html/index.html, html/login.php, include/ac_common.php, include/top_menu_compta.php, sql/theme.sql, style-aqua.css: Add Theme -2003-10-19 sparkyx +2003-10-19 sparkyx * Changelog: update @@ -1915,7 +1945,7 @@ Improve printing Add documentation and code cleaning -2003-10-10 sparkyx +2003-10-10 sparkyx * include/jrn.php: improve layout for encoding -> compta profile @@ -1926,13 +1956,13 @@ change layout of encoding and viewing journal Change the way to ask the period to print -2003-10-04 sparkyx +2003-10-04 sparkyx * html/enc_jrn.php, html/verif.php, include/error.php, include/jrn.php, doc/mod_function: Code cleaning in enc_jrn.php & fix bug in the amount Fix bug in jrn.php about sessid -2003-09-26 sparkyx +2003-09-26 sparkyx * include/postgres.php, include/top_menu_compta.php, doc/makedoc, html/admin_repo.php, html/central.php, html/compta.php, html/dossier_prefs.php, html/enc_jrn.php, html/facturation.php, html/fiche.php, html/form.php, html/impress.php, html/jrn_add.php, html/jrn_detail.php, html/jrn_update.php, html/line_update.php, html/login.php, html/pcmn_update.php, html/priv_user.php, html/rate_chg.php, html/user_pref.php, html/user_sec.php, include/ac_common.php: remove html/verif.php @@ -1941,17 +1971,17 @@ New GetUserProperties to get the user profile -> replace the checkAdmin function -2003-09-14 sparkyx +2003-09-14 sparkyx * html/enc_jrn.php: Fix problem with period -2003-09-07 sparkyx +2003-09-07 sparkyx * html/enc_jrn.php: When date change the tech periode must also change * html/enc_jrn.php: Fix bug when not g_jrn is defined -2003-08-31 sparkyx +2003-08-31 sparkyx * sql/theme.sql: Starting with themes @@ -1962,11 +1992,11 @@ fix bug in jrn_search problem when checking if a number is valid Improve the administration repository (user & folder) -2003-08-17 sparkyx +2003-08-17 sparkyx * html/jrn_search.php: Fix filter for amount -2003-08-16 sparkyx +2003-08-16 sparkyx * include/impress_inc.php: Fix the order by date @@ -1974,7 +2004,7 @@ * include/impress_inc.php: Fix problem in the order of GetDataPoste -2003-08-15 sparkyx +2003-08-15 sparkyx * include/jrn.php: Fix problem in the search menu @@ -1987,7 +2017,7 @@ fix bug in jrn table (jr_rapt text) fix bug in jrn_search problem when checking if a number is valid -2003-07-31 sparkyx +2003-07-31 sparkyx * include/ac_common.php, include/central_inc.php, include/check_priv.php, include/constant.php, include/debug.php, include/facture_inc.php, include/fiche_inc.php, include/form_inc.php, include/impress_inc.php, include/jrn.php, include/poste.php, include/postgres.php, include/preference.php, include/top_menu_compta.php: First release diff --git a/html/admin/setup.php b/html/admin/setup.php index 681ae1dca..b04725b3b 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -293,35 +293,48 @@ $account=CountSql($cn, if ($account == 0 ) { echo "Creation of ".domaine."account_repository"; - ob_start(); + if ( DEBUG=='false') ob_start(); ExecSql($cn,"create database ".domaine."account_repository encoding='latin1'"); $cn=DbConnect(); ExecuteScript($cn,"sql/account_repository/schema.sql"); ExecuteScript($cn,"sql/account_repository/data.sql"); + if ( DEBUG=='false') ob_end_clean(); echo "Creation of Démo"; + if ( DEBUG=='false') ob_start(); ExecSql($cn,"create database ".domaine."dossier1 encoding='latin1'"); $cn=DbConnect(1,'dossier'); ExecuteScript($cn,'sql/dossier1/schema.sql'); ExecuteScript($cn,'sql/dossier1/data.sql'); + if ( DEBUG=='false') ob_end_clean(); echo "Creation of Modele1"; + if ( DEBUG=='false') ob_start(); ExecSql($cn,"create database ".domaine."mod1 encoding='latin1'"); $cn=DbConnect(1,'mod'); ExecuteScript($cn,'sql/mod1/schema.sql'); ExecuteScript($cn,'sql/mod1/data.sql'); - + if ( DEBUG=='false') ob_end_clean(); + }// end if + +// Add a french accountancy model +//-- +$cn=DbConnect(); +$Res=CountSql($cn,"select * from modeledef where mod_id=2"); +if ( $Res == 0) { echo "Creation of Modele2"; ExecSql($cn,"create database ".domaine."mod2 encoding='latin1'"); $cn=DbConnect(2,'mod'); + if ( DEBUG=='false') { ob_start(); } ExecuteScript($cn,'sql/mod2/schema.sql'); ExecuteScript($cn,'sql/mod2/data.sql'); - - - ob_end_clean(); - + $sql="INSERT INTO modeledef VALUES (2, '(FR) Basique', 'Comptabilité Française, tout doit être adaptée');"; + $cn=DbConnect(); + ExecSql($cn,$sql); + if ( DEBUG=='false') ob_end_clean(); } -// _SERVER["DOCUMENT_ROOT"] +// // Test the connection +//-- $a=DbConnect(); if ( $a==false) { exit ("

".__LINE__." test has failed !!!

"); @@ -453,4 +466,4 @@ if ( GetVersion($cn) == 6 ) { ExecuteScript($cn,'sql/patch/ac-upgrade6.sql'); } if (DEBUG=='false') ob_end_clean(); -echo "

Voilà tout est installé ;-)

"; \ No newline at end of file +echo "

Voilà tout est installé ;-)

"; diff --git a/html/admin/sql/mod2/function.sql b/html/admin/sql/mod2/function.sql index 87007a2fd..decc954c6 100644 --- a/html/admin/sql/mod2/function.sql +++ b/html/admin/sql/mod2/function.sql @@ -145,7 +145,7 @@ CREATE TABLE centralized ( c_j_id integer, c_date date NOT NULL, c_internal text NOT NULL, - c_montant double precision NOT NULL, + c_montant numeric(20,6) not null, c_debit boolean DEFAULT true, c_jrn_def integer NOT NULL, c_poste integer, @@ -478,7 +478,7 @@ ALTER TABLE public.parameter OWNER TO phpcompta; CREATE TABLE parm_money ( pm_id integer DEFAULT nextval('s_currency'::text), pm_code character(3) NOT NULL, - pm_rate double precision + pm_rate numeric (20,6) not null ); @@ -968,7 +968,7 @@ COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalis CREATE TABLE tva_rate ( tva_id integer NOT NULL, tva_label text NOT NULL, - tva_rate double precision DEFAULT 0.0 NOT NULL, + tva_rate numeric (8,4) DEFAULT 0.0 NOT NULL, tva_comment text, tva_poste text ); diff --git a/html/admin/sql/mod2/schema.sql b/html/admin/sql/mod2/schema.sql index abdcf14e3..5cec7873f 100644 --- a/html/admin/sql/mod2/schema.sql +++ b/html/admin/sql/mod2/schema.sql @@ -70,7 +70,6 @@ declare diff numeric; tt text; begin - raise notice 'tg_op is %', TG_OP; if TG_OP = 'INSERT' then tt=NEW.jr_internal; diff:=check_balance(tt); @@ -168,7 +167,7 @@ CREATE TABLE centralized ( c_j_id integer, c_date date NOT NULL, c_internal text NOT NULL, - c_montant double precision NOT NULL, + c_montant numeric(20,4) not null, c_debit boolean DEFAULT true, c_jrn_def integer NOT NULL, c_poste integer, @@ -331,7 +330,7 @@ COMMENT ON TABLE jnt_fic_attr IS 'join between the family card and the attribut CREATE TABLE jrn ( jr_id integer DEFAULT nextval('s_jrn'::text) NOT NULL, jr_def_id integer NOT NULL, - jr_montant numeric(8,4) NOT NULL, + jr_montant numeric(20,4) NOT NULL, jr_comment text, jr_date date, jr_grpt_id integer NOT NULL, @@ -458,7 +457,7 @@ COMMENT ON TABLE jrn_type IS 'Type of journal (Sell, Buy, Financial...)'; CREATE TABLE jrnx ( j_id integer DEFAULT nextval('s_jrn_op'::text) NOT NULL, j_date date DEFAULT now(), - j_montant numeric(8,4) DEFAULT 0, + j_montant numeric(20,4) DEFAULT 0, j_poste integer NOT NULL, j_grpt integer NOT NULL, j_rapt text, @@ -501,7 +500,7 @@ ALTER TABLE public.parameter OWNER TO phpcompta; CREATE TABLE parm_money ( pm_id integer DEFAULT nextval('s_currency'::text), pm_code character(3) NOT NULL, - pm_rate double precision + pm_rate numeric (20,4) not null ); @@ -991,7 +990,7 @@ COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalis CREATE TABLE tva_rate ( tva_id integer NOT NULL, tva_label text NOT NULL, - tva_rate double precision DEFAULT 0.0 NOT NULL, + tva_rate numeric(6,4) DEFAULT 0.0 NOT NULL, tva_comment text, tva_poste text ); diff --git a/html/admin/sql/mod2/table.sql b/html/admin/sql/mod2/table.sql index d50661f35..56f20b9c0 100644 --- a/html/admin/sql/mod2/table.sql +++ b/html/admin/sql/mod2/table.sql @@ -19,7 +19,7 @@ CREATE TABLE centralized ( c_j_id integer, c_date date NOT NULL, c_internal text NOT NULL, - c_montant double precision NOT NULL, + c_montant numeric(20,4) not null, c_debit boolean DEFAULT true, c_jrn_def integer NOT NULL, c_poste integer, @@ -69,7 +69,7 @@ CREATE TABLE jnt_fic_attr ( CREATE TABLE jrn ( jr_id integer DEFAULT nextval('s_jrn'::text) NOT NULL, jr_def_id integer NOT NULL, - jr_montant numeric(8,4) NOT NULL, + jr_montant numeric(20,4) NOT NULL, jr_comment text, jr_date date, jr_grpt_id integer NOT NULL, @@ -141,7 +141,7 @@ CREATE TABLE parameter ( CREATE TABLE parm_money ( pm_id integer DEFAULT nextval('s_currency'::text), pm_code character(3) NOT NULL, - pm_rate double precision + pm_rate numeric (20,4) ); CREATE TABLE parm_periode ( p_id integer DEFAULT nextval('s_periode'::text) NOT NULL, @@ -173,7 +173,7 @@ CREATE TABLE tmp_pcmn ( CREATE TABLE tva_rate ( tva_id integer NOT NULL, tva_label text NOT NULL, - tva_rate double precision DEFAULT 0.0 NOT NULL, + tva_rate numeric (8,4) DEFAULT 0.0 NOT NULL, tva_comment text, tva_poste text ); diff --git a/html/admin/sql/patch/upgrade7.sql b/html/admin/sql/patch/upgrade7.sql index 2477ec906..cfbbefb17 100644 --- a/html/admin/sql/patch/upgrade7.sql +++ b/html/admin/sql/patch/upgrade7.sql @@ -15,9 +15,52 @@ delete from jnt_fic_attr where fd_id=2 and ad_id=19; update jrnx set j_tech_per = jr_tech_per from jrn where j_grpt=jr_grpt_id and j_tech_per is null; alter table jrnx alter j_tech_per set not null; alter table jrn alter jr_tech_per set not null; -alter table jrn alter jr_montant type numeric(8,4); -alter table jrnx alter j_montant type numeric(8,4); +alter table jrn alter jr_montant type numeric(20,4); +alter table jrnx alter j_montant type numeric(20,4); +alter table centralized alter c_montant type numeric(20,4); +alter table parm_money alter pm_rate type numeric(20,4); +drop view vw_fiche_attr; +alter table tva_rate alter tva_rate type numeric(8,4); -- version 8 +create view vw_fiche_attr as SELECT a.f_id, a.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_rate.tva_id, tva_rate.tva_rate, tva_rate.tva_label, e.av_text AS vw_addr, f.av_text AS vw_cp, fiche_def.frd_id + FROM ( SELECT fiche.f_id, fiche.fd_id, attr_value.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 jnt_fic_att_value.ad_id = 1) a + LEFT JOIN ( SELECT fiche.f_id, attr_value.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 jnt_fic_att_value.ad_id = 6) b ON a.f_id = b.f_id + LEFT JOIN ( SELECT fiche.f_id, attr_value.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 jnt_fic_att_value.ad_id = 7) c ON a.f_id = c.f_id + LEFT JOIN ( SELECT fiche.f_id, attr_value.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 jnt_fic_att_value.ad_id = 2) d ON a.f_id = d.f_id + LEFT JOIN ( SELECT fiche.f_id, attr_value.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 jnt_fic_att_value.ad_id = 14) e ON a.f_id = e.f_id + LEFT JOIN ( SELECT fiche.f_id, attr_value.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 jnt_fic_att_value.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); create function check_balance (p_internal text) returns numeric as $$ diff --git a/include/constant.php b/include/constant.php index bd2b305ac..d7b2f6b45 100644 --- a/include/constant.php +++ b/include/constant.php @@ -20,7 +20,7 @@ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr // $Revision$ define ("phpcompta_password","dany"); -define ("domaine","dev_"); +define ("domaine",""); define ("DEBUG","false");