Merged revisions 1909-1911,1914-1915,1917-1920,1922-1925,1927,1929-1943,1945,1947-1953,1955-1965,1967-1977,1979-1993,1995-2018,2020-2040,2042-2046,2048-2160 via svnmerge from
svn+ssh://danydb@svn/svn/phpcompta/branches/rel410-exp ........ r1909 | danydb | 2008-03-03 18:01:14 +0100 (Mon, 03 Mar 2008) | 1 line New branches for the rel410 : priority = interface ........ r1914 | danydb | 2008-03-05 18:53:35 +0100 (Wed, 05 Mar 2008) | 1 line Code cleaning for the predefined operation ........ r1918 | danydb | 2008-03-07 16:56:47 +0100 (Fri, 07 Mar 2008) | 1 line The database version is now in a constant ........ r1920 | danydb | 2008-03-10 12:07:00 +0100 (Mon, 10 Mar 2008) | 1 line Not needed patch ........ r1922 | danydb | 2008-03-10 16:45:29 +0100 (Mon, 10 Mar 2008) | 1 line COSMETIC : improve login page ........ r1923 | danydb | 2008-03-10 17:10:52 +0100 (Mon, 10 Mar 2008) | 1 line COSMETIC : improve interface template of document ........ r1924 | danydb | 2008-03-10 18:34:12 +0100 (Mon, 10 Mar 2008) | 1 line Cosmetic : improve interface "preference" ........ r1929 | danydb | 2008-03-11 16:08:53 +0100 (Tue, 11 Mar 2008) | 1 line Complete workaround (see rev 1927) ........ r1930 | danydb | 2008-03-11 18:28:23 +0100 (Tue, 11 Mar 2008) | 1 line Task 46 : rewrite Rapport before adding miniRapport ........ r1931 | danydb | 2008-03-11 18:36:31 +0100 (Tue, 11 Mar 2008) | 1 line class_periode was removed by mistake, it is readded ........ r1932 | danydb | 2008-03-12 19:12:07 +0100 (Wed, 12 Mar 2008) | 1 line task 46 : rewritting of rapport ........ r1934 | danydb | 2008-03-13 14:13:23 +0100 (Thu, 13 Mar 2008) | 1 line Task 46 Rapport are completely rewritted ........ r1935 | danydb | 2008-03-13 17:06:36 +0100 (Thu, 13 Mar 2008) | 1 line Task 46 mini report on welcome page -> task finished ........ r1936 | danydb | 2008-03-14 10:55:15 +0100 (Fri, 14 Mar 2008) | 1 line Correct documentation ........ r1937 | danydb | 2008-03-14 12:13:54 +0100 (Fri, 14 Mar 2008) | 1 line if the browser doesn\'t accept the cookie, the PHPSESSID must be put into the url ........ r1938 | danydb | 2008-03-14 16:26:01 +0100 (Fri, 14 Mar 2008) | 1 line Fix unknow pass_1 ........ r1939 | danydb | 2008-03-14 16:27:15 +0100 (Fri, 14 Mar 2008) | 1 line Duplicate DBVERSION ........ r1940 | danydb | 2008-03-14 16:50:14 +0100 (Fri, 14 Mar 2008) | 1 line Cosmetic ........ r1941 | danydb | 2008-03-14 16:51:19 +0100 (Fri, 14 Mar 2008) | 1 line In .htaccess the value of error_reporting must different in prod. ........ r1943 | danydb | 2008-03-15 20:13:47 +0100 (Sat, 15 Mar 2008) | 1 line task 50 : check if bcmath avail. ........ r1952 | danydb | 2008-03-18 16:43:48 +0100 (Tue, 18 Mar 2008) | 1 line Improve code ........ r1955 | danydb | 2008-03-18 18:19:35 +0100 (Tue, 18 Mar 2008) | 1 line Code cleaning : Replace InsertJrn and InsertJrnx by Acc_Operation:insert_jrn and Acc_Operation:insert_jrnx, replace also the reconciliation by Acc_Reconciliation:insert ........ r1956 | danydb | 2008-03-19 19:12:37 +0100 (Wed, 19 Mar 2008) | 1 line Improve code : tva is now an object acc_tva ........ r1957 | danydb | 2008-03-20 13:43:38 +0100 (Thu, 20 Mar 2008) | 1 line Fix some vulnerabilities for SQL Injection ........ r1959 | danydb | 2008-03-20 23:07:24 +0100 (Thu, 20 Mar 2008) | 1 line task 34 : Improve CSS ........ r1960 | danydb | 2008-03-20 23:45:04 +0100 (Thu, 20 Mar 2008) | 1 line task 48 : improve report ........ r1961 | danydb | 2008-03-20 23:52:32 +0100 (Thu, 20 Mar 2008) | 1 line Fix small cosmetic bugs and improve the search account_windows ........ r1962 | danydb | 2008-03-20 23:55:07 +0100 (Thu, 20 Mar 2008) | 1 line improve the search account_windows ........ r1968 | danydb | 2008-03-21 18:46:26 +0100 (Fri, 21 Mar 2008) | 1 line Improve the account search functionnality ........ r1969 | danydb | 2008-03-21 20:29:39 +0100 (Fri, 21 Mar 2008) | 1 line task #31 & task #34 : mail follow-up, 2 step instead of 3 and improve appearance ........ r1970 | danydb | 2008-03-21 22:01:30 +0100 (Fri, 21 Mar 2008) | 1 line Task #27 : modify detail of folder and template ........ r1971 | danydb | 2008-03-21 22:22:20 +0100 (Fri, 21 Mar 2008) | 1 line Task 53 : add the tva rate in the generated invoice ........ r1972 | danydb | 2008-03-21 22:26:41 +0100 (Fri, 21 Mar 2008) | 1 line Make a insensitive search for the folder name ........ r1990 | danydb | 2008-03-26 23:36:46 +0100 (Wed, 26 Mar 2008) | 1 line Conversion to unicode ........ r1991 | danydb | 2008-03-26 23:58:06 +0100 (Wed, 26 Mar 2008) | 1 line cosmetic ........ r1992 | danydb | 2008-03-26 23:58:08 +0100 (Wed, 26 Mar 2008) | 1 line Remove last latin1 code ........ r1995 | danydb | 2008-03-31 17:35:30 +0200 (Mon, 31 Mar 2008) | 1 line report : Add the button Search for new line ........ r1996 | danydb | 2008-03-31 17:38:56 +0200 (Mon, 31 Mar 2008) | 1 line report : add the set_poste_child ........ r1997 | danydb | 2008-03-31 22:32:05 +0200 (Mon, 31 Mar 2008) | 1 line Next SQL Upgrade for class_acc_tva ........ r1998 | danydb | 2008-03-31 22:32:53 +0200 (Mon, 31 Mar 2008) | 1 line Rewriting of class_acc_parm_code ........ r1999 | danydb | 2008-03-31 23:13:23 +0200 (Mon, 31 Mar 2008) | 1 line Improve VAT class and form ........ r2000 | danydb | 2008-03-31 23:16:37 +0200 (Mon, 31 Mar 2008) | 1 line Rewrite TVA insert ........ r2001 | danydb | 2008-04-01 16:01:52 +0200 (Tue, 01 Apr 2008) | 5 lines Start to rewrite ledger encoding Move predefined operation to preod.inc.php Add the menu Predefined operation in the parameter module ........ r2003 | danydb | 2008-04-01 22:02:26 +0200 (Tue, 01 Apr 2008) | 1 line Ergonomy : drop folder and template ........ r2004 | danydb | 2008-04-03 22:59:45 +0200 (Thu, 03 Apr 2008) | 1 line Fix undefined variable in class_periode.php ........ r2005 | danydb | 2008-04-04 00:13:05 +0200 (Fri, 04 Apr 2008) | 1 line Fix undefined variable in gestion->customer->operation ........ r2006 | danydb | 2008-04-07 14:23:01 +0200 (Mon, 07 Apr 2008) | 1 line Login & mot de passe en français ........ r2007 | danydb | 2008-04-07 15:24:56 +0200 (Mon, 07 Apr 2008) | 1 line Documentation : change to unicode ........ r2008 | danydb | 2008-04-07 16:42:02 +0200 (Mon, 07 Apr 2008) | 1 line Protect against SQL Injection ........ r2009 | danydb | 2008-04-07 16:43:07 +0200 (Mon, 07 Apr 2008) | 1 line Download the definition of a report ........ r2010 | danydb | 2008-04-07 16:57:55 +0200 (Mon, 07 Apr 2008) | 2 lines Remove debug info ........ r2011 | danydb | 2008-04-07 17:32:17 +0200 (Mon, 07 Apr 2008) | 1 line Upload and save of a definition of a report ........ r2012 | danydb | 2008-04-08 17:04:00 +0200 (Tue, 08 Apr 2008) | 1 line task 50 : use of bcmat to avoid rounding problem ........ r2013 | danydb | 2008-04-09 13:48:30 +0200 (Wed, 09 Apr 2008) | 2 lines task #36 : add a warning if no mini report is defined ........ r2024 | danydb | 2008-04-11 18:02:22 +0200 (Fri, 11 Apr 2008) | 1 line Task #25 : feature backup / restore useful, restore is always in unicode ........ r2025 | danydb | 2008-04-11 18:35:55 +0200 (Fri, 11 Apr 2008) | 1 line task 51 : warning when trying to create a new folder ........ r2026 | danydb | 2008-04-12 16:00:09 +0200 (Sat, 12 Apr 2008) | 2 lines Cosmetic : change in the detailled operation Debit by Montant ........ r2027 | danydb | 2008-04-12 16:04:32 +0200 (Sat, 12 Apr 2008) | 2 lines Operation ; without details by default ........ r2028 | danydb | 2008-04-12 16:04:47 +0200 (Sat, 12 Apr 2008) | 2 lines Remove details from operation supplier ........ r2029 | danydb | 2008-04-12 16:15:17 +0200 (Sat, 12 Apr 2008) | 1 line Gestion : fix bug in return button when adding a customer ........ r2030 | danydb | 2008-04-12 16:19:19 +0200 (Sat, 12 Apr 2008) | 1 line Gestion : bug remove delete message ........ r2031 | danydb | 2008-04-12 16:22:25 +0200 (Sat, 12 Apr 2008) | 3 lines Remove php tag and replace by echo Add in "Comptabilité" the Great Ledger ........ r2032 | danydb | 2008-04-12 17:10:06 +0200 (Sat, 12 Apr 2008) | 1 line Fix Bilan : France bug with unicode ........ r2033 | danydb | 2008-04-12 17:17:55 +0200 (Sat, 12 Apr 2008) | 3 lines Separate the user setting from the general constant.php, a template file is given (config.inc) Fix some cosmetic bug for this shit of IE ........ r2034 | danydb | 2008-04-18 14:51:13 +0200 (Fri, 18 Apr 2008) | 2 lines Fix bug : missing coma ........ r2035 | danydb | 2008-04-19 23:39:09 +0200 (Sat, 19 Apr 2008) | 1 line class_widget fix button_href to work on the same way with IE and firefox ........ r2036 | danydb | 2008-05-01 18:17:06 +0200 (Thu, 01 May 2008) | 2 lines task #33 start rewriting of encoding operation (VEN) ........ r2037 | danydb | 2008-05-01 18:18:26 +0200 (Thu, 01 May 2008) | 2 lines task #33 start rewriting of encoding operation (VEN) ........ r2040 | danydb | 2008-05-07 20:53:32 +0200 (Wed, 07 May 2008) | 1 line Unicode for doxygen ........ r2043 | danydb | 2008-05-25 17:32:51 +0200 (Sun, 25 May 2008) | 2 lines Default pref is TEXT instead of SELECT ........ r2045 | danydb | 2008-06-14 17:48:46 +0200 (Sat, 14 Jun 2008) | 1 line Add a style input_type ........ r2046 | danydb | 2008-06-14 17:49:58 +0200 (Sat, 14 Jun 2008) | 3 lines 1. Replace the CSS class u_content by content, the u_content existed for historic reason 2. Start the coding of ledger sold ........ r2048 | danydb | 2008-06-14 18:31:55 +0200 (Sat, 14 Jun 2008) | 1 line remove javascript warning ........ r2049 | danydb | 2008-06-14 18:32:26 +0200 (Sat, 14 Jun 2008) | 1 line Ledger SOLD add row ........ r2050 | danydb | 2008-06-14 19:54:29 +0200 (Sat, 14 Jun 2008) | 1 line Ledger sold : replace dot by style ........ r2051 | danydb | 2008-06-14 21:08:48 +0200 (Sat, 14 Jun 2008) | 1 line correct unicode char in doc folder ........ r2052 | danydb | 2008-06-14 23:58:01 +0200 (Sat, 14 Jun 2008) | 1 line Ledger SOLD : automatic update of the total ........ r2053 | danydb | 2008-06-15 12:05:02 +0200 (Sun, 15 Jun 2008) | 1 line Performance : the prototype.js is quite heavy, and is not any more included in every page, instead now, there is a html_min_start_page with a minimum of javascript files and a mintoolkit.js which contains the minimum for javascript ........ r2054 | danydb | 2008-06-15 12:17:22 +0200 (Sun, 15 Jun 2008) | 1 line Prototype.js performance, included only if needed, improve performance for access.php, user_login.php ........ r2055 | danydb | 2008-06-19 11:29:52 +0200 (Thu, 19 Jun 2008) | 1 line Cosmetic : Adapt CSS for F3 ........ r2056 | danydb | 2008-06-19 12:18:13 +0200 (Thu, 19 Jun 2008) | 1 line remove useless comment and debug message ........ r2057 | danydb | 2008-06-19 12:32:58 +0200 (Thu, 19 Jun 2008) | 1 line Update CSS classic ........ r2058 | danydb | 2008-06-24 01:14:21 +0200 (Tue, 24 Jun 2008) | 1 line ........ r2059 | danydb | 2008-06-28 14:05:23 +0200 (Sat, 28 Jun 2008) | 1 line task #67 : infobulle ........ r2060 | danydb | 2008-06-28 14:16:37 +0200 (Sat, 28 Jun 2008) | 1 line Bug in add_row ........ r2061 | danydb | 2008-06-28 14:16:49 +0200 (Sat, 28 Jun 2008) | 1 line task #67 : infobulle ........ r2062 | danydb | 2008-06-28 15:21:57 +0200 (Sat, 28 Jun 2008) | 1 line Compute the sold amount via javascript ........ r2063 | danydb | 2008-06-28 15:34:38 +0200 (Sat, 28 Jun 2008) | 1 line Correct typo ........ r2064 | danydb | 2008-07-01 23:02:29 +0200 (Tue, 01 Jul 2008) | 1 line Add predef operation for VEN ........ r2065 | danydb | 2008-07-02 23:57:45 +0200 (Wed, 02 Jul 2008) | 1 line Fixed undefined use_predef ........ r2066 | danydb | 2008-07-03 15:27:22 +0200 (Thu, 03 Jul 2008) | 2 lines Work without prototype.js ........ r2067 | danydb | 2008-07-03 18:33:03 +0200 (Thu, 03 Jul 2008) | 2 lines Fix bug with undefined variable ........ r2068 | danydb | 2008-07-03 18:43:53 +0200 (Thu, 03 Jul 2008) | 2 lines typo ........ r2069 | danydb | 2008-07-03 20:37:06 +0200 (Thu, 03 Jul 2008) | 1 line New version for Ledger sold and invoice ........ r2070 | danydb | 2008-07-03 20:56:47 +0200 (Thu, 03 Jul 2008) | 1 line Update infobulle + typo ........ r2071 | danydb | 2008-07-04 12:55:16 +0200 (Fri, 04 Jul 2008) | 1 line Correct last bug for compta_ven ........ r2072 | danydb | 2008-07-04 14:34:24 +0200 (Fri, 04 Jul 2008) | 1 line Task#39 Migrate to unicode ........ r2073 | danydb | 2008-07-04 14:34:47 +0200 (Fri, 04 Jul 2008) | 1 line Task#39 Migrate to unicode ........ r2074 | danydb | 2008-07-04 14:40:38 +0200 (Fri, 04 Jul 2008) | 2 lines Add documentation for task #39 (unicode) ........ r2075 | danydb | 2008-07-04 14:53:47 +0200 (Fri, 04 Jul 2008) | 2 lines cosmetic ........ r2076 | danydb | 2008-07-04 16:52:56 +0200 (Fri, 04 Jul 2008) | 2 lines cosmetic ........ r2077 | danydb | 2008-07-04 18:02:23 +0200 (Fri, 04 Jul 2008) | 1 line Update CSS ........ r2078 | danydb | 2008-07-04 18:22:11 +0200 (Fri, 04 Jul 2008) | 2 lines Add reset type ........ r2079 | danydb | 2008-07-04 21:50:24 +0200 (Fri, 04 Jul 2008) | 1 line Rewriting of the financial ledger ........ r2080 | danydb | 2008-07-04 21:53:43 +0200 (Fri, 04 Jul 2008) | 1 line Cosmetic ........ r2081 | danydb | 2008-07-05 00:18:17 +0200 (Sat, 05 Jul 2008) | 1 line Ledger Purchase ........ r2082 | danydb | 2008-07-05 00:18:42 +0200 (Sat, 05 Jul 2008) | 1 line rename compta_ach.php ........ r2083 | danydb | 2008-07-05 03:49:35 +0200 (Sat, 05 Jul 2008) | 1 line Finish ledger purchase ........ r2084 | danydb | 2008-07-05 04:22:50 +0200 (Sat, 05 Jul 2008) | 1 line bugs ledger purchase + javascript : need to trim parameters for Ajax (qcode and amounts) ........ r2085 | danydb | 2008-07-05 06:04:21 +0200 (Sat, 05 Jul 2008) | 1 line Rewriting of the ledger is complete, now we can remove dead code and files ........ r2086 | danydb | 2008-07-05 14:10:23 +0200 (Sat, 05 Jul 2008) | 1 line Correct javascript bugs ........ r2087 | danydb | 2008-07-05 14:13:16 +0200 (Sat, 05 Jul 2008) | 1 line code cleaning ........ r2088 | danydb | 2008-07-05 14:34:16 +0200 (Sat, 05 Jul 2008) | 1 line code cleaning ........ r2089 | danydb | 2008-07-05 17:18:48 +0200 (Sat, 05 Jul 2008) | 1 line Adapt a little bit the direct writing ........ r2090 | danydb | 2008-07-05 21:53:50 +0200 (Sat, 05 Jul 2008) | 1 line Improve installation ........ r2091 | danydb | 2008-07-05 21:54:00 +0200 (Sat, 05 Jul 2008) | 1 line Improve installation ........ r2092 | danydb | 2008-07-05 22:20:11 +0200 (Sat, 05 Jul 2008) | 1 line Setup ........ r2093 | danydb | 2008-07-05 22:33:36 +0200 (Sat, 05 Jul 2008) | 1 line Readd user_action_gl.php ........ r2094 | danydb | 2008-07-05 22:38:15 +0200 (Sat, 05 Jul 2008) | 1 line Re-add user_action_gl.php ........ r2095 | danydb | 2008-07-06 00:52:23 +0200 (Sun, 06 Jul 2008) | 1 line New setup ........ r2096 | danydb | 2008-07-06 02:02:41 +0200 (Sun, 06 Jul 2008) | 1 line small bugs ........ r2097 | danydb | 2008-07-06 19:27:05 +0200 (Sun, 06 Jul 2008) | 1 line Fix security bug with domain ........ r2098 | danydb | 2008-07-06 19:39:55 +0200 (Sun, 06 Jul 2008) | 1 line fix bug : javascript Purchase does not update correctly when a card is blanked ........ r2099 | danydb | 2008-07-13 00:31:41 +0200 (Sun, 13 Jul 2008) | 1 line Task #49 add a simple todo list ........ r2100 | danydb | 2008-07-13 00:32:08 +0200 (Sun, 13 Jul 2008) | 1 line remove print_r ........ r2101 | danydb | 2008-07-13 00:43:55 +0200 (Sun, 13 Jul 2008) | 1 line Add sql patch 49 ........ r2102 | danydb | 2008-07-13 00:44:08 +0200 (Sun, 13 Jul 2008) | 1 line Add sql patch 49 ........ r2103 | danydb | 2008-07-13 00:59:01 +0200 (Sun, 13 Jul 2008) | 1 line Fix bug in the table todo_list ........ r2104 | danydb | 2008-07-13 01:09:49 +0200 (Sun, 13 Jul 2008) | 1 line Task #49 cosmetic todo list ........ r2105 | danydb | 2008-07-15 19:56:35 +0200 (Tue, 15 Jul 2008) | 1 line remove var_dump ........ r2106 | danydb | 2008-07-16 21:42:42 +0200 (Wed, 16 Jul 2008) | 1 line Fix bug : creating card ........ r2107 | danydb | 2008-07-17 12:46:16 +0200 (Thu, 17 Jul 2008) | 1 line Fix numerous small bugs ........ r2108 | danydb | 2008-07-17 13:20:51 +0200 (Thu, 17 Jul 2008) | 1 line Fix bug : if the account changed for a card then the ledgers are update with the new account ........ r2109 | danydb | 2008-07-17 14:44:42 +0200 (Thu, 17 Jul 2008) | 1 line Fix : character encoding ........ r2110 | danydb | 2008-07-17 20:34:15 +0200 (Thu, 17 Jul 2008) | 1 line task : the attribut of a card are now ordered by the users ........ r2111 | danydb | 2008-07-18 13:45:10 +0200 (Fri, 18 Jul 2008) | 1 line Import of opening are now concerned by the qcode ........ r2112 | danydb | 2008-07-18 14:05:47 +0200 (Fri, 18 Jul 2008) | 2 lines Fix bug : quick_writing_add_row duplicates value ........ r2113 | danydb | 2008-07-18 14:23:28 +0200 (Fri, 18 Jul 2008) | 1 line Cosmetic : add comment, fix bug for quick_writing (add a verify ) ........ r2114 | danydb | 2008-07-21 22:25:33 +0200 (Mon, 21 Jul 2008) | 1 line SQL Patch Add order to the card ........ r2115 | danydb | 2008-07-22 15:17:33 +0200 (Tue, 22 Jul 2008) | 1 line Release candidate : fix bug ledger sold ........ r2116 | danydb | 2008-07-22 17:50:14 +0200 (Tue, 22 Jul 2008) | 1 line Fix Bug : Ledger SOLD & PURCHASE ........ r2117 | danydb | 2008-07-24 18:11:57 +0200 (Thu, 24 Jul 2008) | 1 line Fix Bug Ledger FIN + import FIN ........ r2118 | danydb | 2008-07-24 18:29:20 +0200 (Thu, 24 Jul 2008) | 1 line Fix Bug Import FIN utf8 encoding ........ r2119 | danydb | 2008-07-24 22:19:23 +0200 (Thu, 24 Jul 2008) | 1 line Fix Bug Printing and Quick Writing ........ r2120 | danydb | 2008-07-24 22:46:50 +0200 (Thu, 24 Jul 2008) | 1 line Fix Bug Security ........ r2121 | danydb | 2008-07-24 22:51:05 +0200 (Thu, 24 Jul 2008) | 1 line Cosmetic ........ r2122 | danydb | 2008-07-24 23:00:38 +0200 (Thu, 24 Jul 2008) | 2 lines Fix problem with simple printing French ........ r2123 | danydb | 2008-07-24 23:01:48 +0200 (Thu, 24 Jul 2008) | 2 lines Missing { ........ r2124 | danydb | 2008-07-24 23:02:45 +0200 (Thu, 24 Jul 2008) | 2 lines Unicode ........ r2125 | danydb | 2008-07-24 23:04:31 +0200 (Thu, 24 Jul 2008) | 2 lines Unicode ........ r2126 | danydb | 2008-07-25 17:40:28 +0200 (Fri, 25 Jul 2008) | 1 line Fix Bug install on windows ........ r2127 | danydb | 2008-07-25 17:42:01 +0200 (Fri, 25 Jul 2008) | 1 line Add version ........ r2128 | danydb | 2008-07-25 17:44:38 +0200 (Fri, 25 Jul 2008) | 1 line short tag ........ r2129 | danydb | 2008-07-25 18:40:34 +0200 (Fri, 25 Jul 2008) | 1 line Add Generate invoice + Fix bug for show_ledger() ........ r2130 | danydb | 2008-07-25 20:51:47 +0200 (Fri, 25 Jul 2008) | 1 line remove debug ........ r2131 | danydb | 2008-07-25 20:52:12 +0200 (Fri, 25 Jul 2008) | 1 line set version ........ r2132 | danydb | 2008-07-27 22:55:03 +0200 (Sun, 27 Jul 2008) | 1 line Unicode ........ r2133 | danydb | 2008-08-28 17:52:50 +0200 (Thu, 28 Aug 2008) | 1 line add pguser for documentation ........ r2134 | danydb | 2008-08-28 19:55:26 +0200 (Thu, 28 Aug 2008) | 1 line correst documentation script ........ r2135 | danydb | 2008-08-28 21:23:05 +0200 (Thu, 28 Aug 2008) | 1 line Improve install. : automatic writing of htaccess file ........ r2136 | danydb | 2008-08-28 21:23:21 +0200 (Thu, 28 Aug 2008) | 1 line Improve install. : automatic writing of htaccess file ........ r2137 | danydb | 2008-08-28 22:43:31 +0200 (Thu, 28 Aug 2008) | 1 line Remove the useless category of card ........ r2138 | danydb | 2008-08-29 15:57:33 +0200 (Fri, 29 Aug 2008) | 1 line update version ........ r2139 | danydb | 2008-09-04 21:49:29 +0200 (Thu, 04 Sep 2008) | 1 line update doc ........ r2140 | danydb | 2008-09-06 20:47:13 +0200 (Sat, 06 Sep 2008) | 1 line Remove a not wanted hidden value which makes failed the searching for card ........ r2141 | danydb | 2008-09-07 18:57:42 +0200 (Sun, 07 Sep 2008) | 1 line Update doc. ........ r2142 | danydb | 2008-09-08 13:38:00 +0200 (Mon, 08 Sep 2008) | 1 line Fix small in fin ........ r2143 | danydb | 2008-09-08 13:49:52 +0200 (Mon, 08 Sep 2008) | 1 line Fix small bugs in ach & ven ........ r2144 | danydb | 2008-09-08 13:57:25 +0200 (Mon, 08 Sep 2008) | 1 line bug : courrier concerne ........ r2145 | danydb | 2008-09-08 14:24:00 +0200 (Mon, 08 Sep 2008) | 2 lines Fix bug with export of report ........ r2146 | danydb | 2008-09-08 15:25:50 +0200 (Mon, 08 Sep 2008) | 1 line Add the security ........ r2147 | danydb | 2008-09-09 21:31:52 +0200 (Tue, 09 Sep 2008) | 1 line files cleaning ........ r2148 | danydb | 2008-09-09 21:34:40 +0200 (Tue, 09 Sep 2008) | 1 line files cleaning ........ r2149 | danydb | 2008-09-10 13:52:56 +0200 (Wed, 10 Sep 2008) | 1 line Fix bug in ledger sold, purchase for negative amount and financial for qcode ........ r2150 | danydb | 2008-09-10 14:33:07 +0200 (Wed, 10 Sep 2008) | 1 line update version ........ r2151 | danydb | 2008-09-10 14:42:24 +0200 (Wed, 10 Sep 2008) | 1 line Add patch for insert_jrnx ........ r2152 | danydb | 2008-09-10 14:42:56 +0200 (Wed, 10 Sep 2008) | 1 line update version ........ r2153 | danydb | 2008-09-10 17:53:28 +0200 (Wed, 10 Sep 2008) | 1 line typo ........ r2154 | danydb | 2008-09-10 18:07:51 +0200 (Wed, 10 Sep 2008) | 1 line Fix layout ........ r2155 | danydb | 2008-09-13 18:08:09 +0200 (Sat, 13 Sep 2008) | 1 line Update documentation ........ r2156 | danydb | 2008-09-13 18:11:52 +0200 (Sat, 13 Sep 2008) | 1 line Update version ........ r2157 | danydb | 2008-09-13 22:27:29 +0200 (Sat, 13 Sep 2008) | 1 line Add document to upload ........ r2158 | danydb | 2008-09-13 22:28:52 +0200 (Sat, 13 Sep 2008) | 1 line Add document ........
This commit is contained in:
parent
2443c7e860
commit
c477c9e259
237 changed files with 11679 additions and 8536 deletions
|
|
@ -1,3 +0,0 @@
|
|||
cache
|
||||
compile
|
||||
tmp
|
||||
274
class_periode.php
Normal file
274
class_periode.php
Normal file
|
|
@ -0,0 +1,274 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief definition of the class periode
|
||||
*/
|
||||
/*!
|
||||
* \brief For the periode tables parm_periode and jrn_periode
|
||||
*/
|
||||
require_once ('ac_common.php');
|
||||
require_once ('debug.php');
|
||||
require_once ('postgres.php');
|
||||
class Periode {
|
||||
var $cn; /*!< database connection */
|
||||
var $jrn_def_id; /*!< the jr, 0 means all the ledger*/
|
||||
var $p_id; /*!< pk of parm_periode */
|
||||
var $status; /*!< status is CL for closed, OP for
|
||||
open and CE for centralized */
|
||||
function __construct($p_cn) {
|
||||
$this->cn=$p_cn;
|
||||
}
|
||||
function set_jrn($p_jrn) {
|
||||
$this->jrn_def_id=$p_jrn;
|
||||
}
|
||||
function set_periode($pp_id){
|
||||
$this->p_id=$pp_id;
|
||||
}
|
||||
function is_closed() {
|
||||
if ( $this->jrn_def_id != 0 )
|
||||
$sql="select status from jrn_periode ".
|
||||
" where jrn_def_id=".$this->jrn_def_id.
|
||||
" and p_id =".$this->p_id;
|
||||
else
|
||||
$sql="select p_closed as status from parm_periode ".
|
||||
" where ".
|
||||
" p_id =".$this->p_id;
|
||||
$res=ExecSql($this->cn,$sql);
|
||||
$status=pg_fetch_result($res,0,0);
|
||||
echo_debug(__FILE__.':'.__LINE__.'- is_closed','return ',$status);
|
||||
if ( $status == 'CL' || $status=='t' ||$status=='CE')
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
function is_open() {
|
||||
if ( $this->jrn_def_id != 0 )
|
||||
$sql="select status from jrn_periode ".
|
||||
" where jrn_def_id=".$this->jrn_def_id.
|
||||
" and p_id =".$this->p_id;
|
||||
else
|
||||
$sql="select p_closed as status from parm_periode ".
|
||||
" where ".
|
||||
" p_id =".$this->p_id;
|
||||
$res=ExecSql($this->cn,$sql);
|
||||
$status=pg_fetch_result($res,0,0);
|
||||
if ( $status == 'OP' || $status=='f' )
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
function is_centralized() {
|
||||
if ( $this->jrn_def_id != 0 )
|
||||
$sql="select status from jrn_periode ".
|
||||
" where jrn_def_id=".$this->jrn_def_id.
|
||||
" and p_id =".$this->p_id;
|
||||
else
|
||||
$sql="select p_centralized as status from parm_periode ".
|
||||
" where ".
|
||||
" p_id =".$this->p_id;
|
||||
$res=ExecSql($this->cn,$sql);
|
||||
$status=pg_fetch_result($res,0,0);
|
||||
if ( $status == 'CE' || $status=='t' )
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
function close() {
|
||||
if ( $this->jrn_def_id == 0 ) {
|
||||
ExecSql($this->cn,"update parm_periode set p_closed=true where p_id=".
|
||||
$this->p_id);
|
||||
ExecSql($this->cn,"update jrn_periode set status='CL' ".
|
||||
" where p_id = ".$this->p_id);
|
||||
|
||||
return;
|
||||
}else {
|
||||
ExecSql($this->cn,"update jrn_periode set status='CL' ".
|
||||
" where jrn_def_id=".$this->jrn_def_id." and ".
|
||||
" p_id = ".$this->p_id);
|
||||
/* if all ledgers have this periode closed then synchro with
|
||||
the table parm_periode
|
||||
*/
|
||||
$nJrn=CountSql( $this->cn,"select * from jrn_periode where ".
|
||||
" p_id=".$this->p_id);
|
||||
$nJrnPeriode=CountSql( $this->cn,"select * from jrn_periode where ".
|
||||
" p_id=".$this->p_id." and status='CL'");
|
||||
|
||||
if ( $nJrnPeriode==$nJrn)
|
||||
ExecSql($this->cn,"update parm_periode set p_closed=true where p_id=".$this->p_id);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
function centralized() {
|
||||
if ( $this->jrn_def_id == 0 ) {
|
||||
ExecSql($this->cn,"update parm_periode set p_central=true");
|
||||
return;
|
||||
}else {
|
||||
ExecSql($this->cn,"update jrn_periode set status='CE' ".
|
||||
" where ".
|
||||
" p_id = ".$this->p_id);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
/*!
|
||||
* \brief Show all the periode and their status
|
||||
*
|
||||
* \param $p_cn database connection
|
||||
*
|
||||
* \return nothing
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
function display_form_periode() {
|
||||
$str_dossier=dossier::get();
|
||||
|
||||
if ( $this->jrn_def_id==0 ) {
|
||||
$Res=ExecSql($this->cn,"select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,p_central,p_closed,p_exercice
|
||||
from parm_periode order by p_start,p_end");
|
||||
$Max=pg_NumRows($Res);
|
||||
echo '<TABLE ALIGN="CENTER">';
|
||||
echo "</TR>";
|
||||
echo '<TH> Date début </TH>';
|
||||
echo '<TH> Date fin </TH>';
|
||||
echo '<TH> Exercice </TH>';
|
||||
echo "</TR>";
|
||||
|
||||
for ($i=0;$i<$Max;$i++) {
|
||||
$l_line=pg_fetch_array($Res,$i);
|
||||
echo '<TR>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['date_start'].'</TD>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['date_end'].'</TD>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['p_exercice'].'</TD>';
|
||||
|
||||
if ( $l_line['p_closed'] == 't' ) {
|
||||
$closed=($l_line['p_central']=='t')?'<TD>Centralisée</TD>':'<TD>Fermée</TD>';
|
||||
$change='<TD></TD>';
|
||||
$remove='<TD></TD>';
|
||||
} else {
|
||||
$closed='<TD class="mtitle">';
|
||||
$closed.='<A class="mtitle" HREF="?p_action=periode&action=closed&p_per='.$l_line['p_id'].'&'.$str_dossier.'"> Cloturer</A>';
|
||||
$change='<TD class="mtitle">';
|
||||
$change.='<A class="mtitle" HREF="?p_action=periode&action=change_per&p_per='.
|
||||
$l_line['p_id']."&p_date_start=".$l_line['date_start'].
|
||||
"&p_date_end=".$l_line['date_end']."&p_exercice=".
|
||||
$l_line['p_exercice']."&$str_dossier\"> Changer</A>";
|
||||
$remove='<TD class="mtitle">';
|
||||
$remove.='<A class="mtitle" HREF="?p_action=periode&action=delete_per&p_per='.
|
||||
$l_line['p_id']."&$str_dossier\"> Efface</A>";
|
||||
|
||||
}
|
||||
echo "$closed";
|
||||
echo $change;
|
||||
|
||||
echo $remove;
|
||||
|
||||
echo '</TR>';
|
||||
|
||||
}
|
||||
echo '<TR> <FORM ACTION="?p_action=periode" METHOD="POST">';
|
||||
echo dossier::hidden();
|
||||
echo '<TD> <INPUT TYPE="text" NAME="p_date_start" SIZE="10"></TD>';
|
||||
echo '<TD> <INPUT TYPE="text" NAME="p_date_end" SIZE="10"></TD>';
|
||||
echo '<TD> <INPUT TYPE="text" NAME="p_exercice" SIZE="10"></TD>';
|
||||
echo '<TD> <INPUT TYPE="SUBMIT" NAME="add_per" Value="Ajout"</TD>';
|
||||
echo '<TD></TD>';
|
||||
echo '<TD></TD>';
|
||||
echo '</FORM></TR>';
|
||||
|
||||
echo '</TABLE>';
|
||||
|
||||
} else {
|
||||
$Res=ExecSql($this->cn,"select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,status,p_exercice
|
||||
from parm_periode join jrn_periode using (p_id) where jrn_def_id=".$this->jrn_def_id."
|
||||
order by p_start,p_end");
|
||||
$Max=pg_NumRows($Res);
|
||||
$r=ExecSql($this->cn,'select jrn_Def_name from jrn_Def where jrn_Def_id='.
|
||||
$this->jrn_def_id);
|
||||
$jrn_name=pg_fetch_result($r,0,0);
|
||||
echo '<h2> Journal '.$jrn_name.'</h2>';
|
||||
echo '<TABLE ALIGN="CENTER">';
|
||||
echo "</TR>";
|
||||
echo '<TH> Date début </TH>';
|
||||
echo '<TH> Date fin </TH>';
|
||||
echo '<TH> Exercice </TH>';
|
||||
echo "</TR>";
|
||||
|
||||
for ($i=0;$i<$Max;$i++) {
|
||||
$l_line=pg_fetch_array($Res,$i);
|
||||
echo '<TR>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['date_start'].'</TD>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['date_end'].'</TD>';
|
||||
echo '<TD ALIGN="CENTER"> '.$l_line['p_exercice'].'</TD>';
|
||||
|
||||
if ( $l_line['status'] != 'OP' ) {
|
||||
$closed=($l_line['status']=='CE')?'<TD>Centralisee</TD>':'<TD>Fermée</TD>';
|
||||
} else {
|
||||
$closed='<TD class="mtitle">';
|
||||
$closed.='<A class="mtitle" HREF="?p_action=periode&action=closed&p_per='.$l_line['p_id'].'&'.$str_dossier.'&jrn_def_id='.$this->jrn_def_id.'"> Cloturer</A>';
|
||||
$closed.='</td>';
|
||||
}
|
||||
echo "$closed";
|
||||
|
||||
echo '</TR>';
|
||||
|
||||
}
|
||||
echo '</TABLE>';
|
||||
|
||||
}
|
||||
}
|
||||
function insert($p_date_start,$p_date_end,$p_exercice) {
|
||||
if (isDate($p_date_start) == null ||
|
||||
isDate($p_date_end) == null ||
|
||||
strlen (trim($p_exercice)) == 0 ||
|
||||
(string) $p_exercice != (string)(int) $p_exercice)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
$p_id=NextSequence($this->cn,'s_periode');
|
||||
$sql=sprintf(" insert into parm_periode(p_id,p_start,p_end,p_closed,p_exercice)".
|
||||
"values (%d,to_date('%s','DD.MM.YYYY'),to_date('%s','DD.MM.YYYY')".
|
||||
",'f','%s')",
|
||||
$p_id,
|
||||
$p_date_start,
|
||||
$p_date_end,
|
||||
$p_exercice);
|
||||
try {
|
||||
StartSql($this->cn);
|
||||
$Res=ExecSql($this->cn,$sql);
|
||||
$Res=ExecSql($this->cn,"insert into jrn_periode (jrn_def_id,p_id,status) ".
|
||||
"select jrn_def_id,$p_id,'OP' from jrn_def");
|
||||
Commit($this->cn);
|
||||
} catch (Exception $e) {
|
||||
Rollback($this->cn);
|
||||
echo_debug(__FILE__.':'.__LINE__.'- Periode insert','Exception ',$e);
|
||||
echo_debug(__FILE__.':'.__LINE__.'- Periode insert','Exception ',$e->getMessage());
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
static function test_me() {
|
||||
$cn=DbConnect(dossier::id());
|
||||
$obj=new Periode($cn);
|
||||
$obj->set_jrn(1);
|
||||
$obj->display_form_periode();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
# clean all phpcompta related DB.
|
||||
DOMAIN="beta_"
|
||||
DOMAIN="rel4102_"
|
||||
export PGPASSWORD="dany"
|
||||
export PGUSER="phpcompta"
|
||||
export PGHOST=localhost
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
*.html
|
||||
*.pdf
|
||||
*.txt
|
||||
|
|
@ -1,329 +0,0 @@
|
|||
<!doctype linuxdoc system>
|
||||
<article>
|
||||
<title> PhpCompta Installation</title>
|
||||
<author>
|
||||
<name>originally written by Dany De Bontridder </name>
|
||||
</author>
|
||||
<date>$Revision$ $Date$</date>
|
||||
<abstract>
|
||||
Ce document décrit l'installation complète de PhpCompta et explique comment
|
||||
ont été installés les programmes dont PhpCompta dépend.
|
||||
PhpCompta <url url="http://www.phpcompta.org" name="PhpCompta">,
|
||||
site savannah
|
||||
<url url="http://savannah.nongnu.org/projects/phpcompta/" name="PhpCompta Savannah">
|
||||
<!-- Table of contents -->
|
||||
<toc>
|
||||
<sect>Avertissement
|
||||
<p> Si vous installez sur Linux, l'installation d'apache, postgres et php doit se
|
||||
faire avec les "packages" standards
|
||||
fournis; ces "packages" sont largement suffisants. Les explications
|
||||
données ici sur l'installation de ces produits sont destinées à des
|
||||
utilisateurs avancés. En général vous pourrez l'installer assez facilement
|
||||
<url url= "http://www.phpcompta.org/pmwiki.php/Documentation/InstallationRapide" name="Installation Rapide">
|
||||
Il existe aussi un manuel d'installation exhaustif pour Debian, pleins d'informations utiles
|
||||
<url url="http://www.blanchin.eu/?p=12" Name="Manuel pour Debian">.
|
||||
|
||||
|
||||
<p>Si vous installez sous Windows, il est assez compliqué de recompiler.
|
||||
Il est préférable d'utiliser les programmes fournis sur
|
||||
<url url="http://www.postgresql.org" name="Postgres"> et
|
||||
<url url="http://www.easyphp.org/" name="EasyPhp">.
|
||||
|
||||
|
||||
<p> Cependant, les configurations des différents produits sont importantes
|
||||
et devraient être lues avant d'appeler à l'aide.
|
||||
|
||||
</sect>
|
||||
|
||||
<sect>Postgresql (version 8.0.1 minimum)
|
||||
<sect1>Installation
|
||||
<p>
|
||||
Soit avec des binaires préparés, soit à partir du code source
|
||||
</p>
|
||||
<p> Le plus simple est d'utiliser les binaires de votre distribution, ne
|
||||
compiler ces programmes que si vraiment vous devez le faire ou que vous préfèrez
|
||||
avoir la dernière version disponible.
|
||||
</p>
|
||||
<p>
|
||||
Si vous décidez de le compiler vous-même, les
|
||||
options suivantes fonctionnent
|
||||
<verb>
|
||||
./configure -with-tk --with-python --with-perl --prefix=/ou_vous_voulez
|
||||
</verb>
|
||||
</p>
|
||||
</sect1>
|
||||
<sect1>Configuration et démarrage de PostgreSql <label id="configuration">
|
||||
<p>
|
||||
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 données
|
||||
(variable env. PGDATA),
|
||||
exemple
|
||||
<tscreen><verb>
|
||||
root#mkdir /data/psql
|
||||
root#chown postgres /data/psql
|
||||
root#su - postgres
|
||||
postgres#initdb -D /data/psql
|
||||
postgres#pg_ctl -D /data/psql -o '-i' start
|
||||
</verb></tscreen>
|
||||
</p>
|
||||
<p>
|
||||
Il est impératif que dans le fichier postmaster.conf vous ayez les options
|
||||
<verb>
|
||||
tcpip_socket = true
|
||||
port=5432
|
||||
</verb>
|
||||
D'autres options sont conseillées pour l'optimisation de Postgresql
|
||||
</p>
|
||||
<p>
|
||||
ne pas oublier d'ajouter dans le PATH, l'endroit où se trouve les
|
||||
binaires de postgres
|
||||
<verb>
|
||||
export PATH=$PATH:/opt/psql/bin
|
||||
</verb>
|
||||
</p>
|
||||
<p>
|
||||
Il est impératif d'avoir soit l'option -i soit la directive tcpip_socket=true
|
||||
, sinon le server HTTP ne pourra pas contacter PostgreSql.
|
||||
</p>
|
||||
<P>
|
||||
Dans PGDATA,vous trouverez le fichier nommé pg_hba.conf qui
|
||||
vous permettra de régler la sécurité<newline>
|
||||
|
||||
Ce fichier doit au moins contenir la ligne:
|
||||
<verb>
|
||||
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
|
||||
host all phpcompta 172.16.30.0 255.255.255.0 local
|
||||
</verb>
|
||||
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
|
||||
</p>
|
||||
</sect1>
|
||||
<sect1>Optimisation
|
||||
<p> Posgresql est une base de données très rapide, cependant, il vous faudra configurer
|
||||
pour pouvoir en bénéficier. Les paramètres par défaut sont prévus pour une machine qui n'a
|
||||
que 16 Mb de RAM... Donc, aller voir la documentation sur Postgresql.org, chapitre
|
||||
Run-time Configuration.
|
||||
|
||||
<p> Les paramètres que vous pouvez utiliser si vous avez une machine d'au moins 256 Mb:
|
||||
<itemize>
|
||||
<item> Augmenter la zone mémoire pour les tri (dans postgres.conf) work_mem = 8192; cette
|
||||
zone mémoire est important car elle a trait à la mémoire utilisée pour les tris et les
|
||||
jointures! attention ce paramètre donne la consommation mémoire par session !
|
||||
</item>
|
||||
<item> Faites tourner régulièrement vacumdb -a -z grâce au crontab(une fois par jour)</item>
|
||||
<item> Dans postgres.conf, les shared_buffers: calculées en page de 8Kb,
|
||||
la valeur par défaut
|
||||
est de seulement 64, ce qui correspond à 512Kb, une meilleure valeur est 640 </item>
|
||||
|
||||
</itemize>
|
||||
</sect1>
|
||||
<sect1> Pour la sécurité
|
||||
<p>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
|
||||
<verb>
|
||||
changement mot de passe
|
||||
alter user .1. password '.2.'
|
||||
</verb>
|
||||
|
||||
<verb>
|
||||
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
|
||||
</verb>
|
||||
Ensuite soit vous utilisez la variable d'environnement PGPASSWORD qui contient
|
||||
votre mot de passe soit avec le fichier .pgpass dont la syntaxe est
|
||||
<verb>
|
||||
host:port:database:username:password
|
||||
</verb>
|
||||
N'oubliez pas de mettre ce fichier en mode 600 !!!! Pour executer sans demande
|
||||
de mot de passe host = localhost
|
||||
|
||||
</sect>
|
||||
|
||||
<sect> Apache
|
||||
<sect1>Installation d'Apache
|
||||
<p>
|
||||
Si vous décidez de le compiler vous-même, les
|
||||
options suivantes fonctionnent
|
||||
<verb>
|
||||
./configure --prefix=/opt/http2/ \
|
||||
--enable-ssl \
|
||||
--enable-http \
|
||||
--enable-cgi \
|
||||
--enable-so \
|
||||
--enable-usertrack \
|
||||
--enable-headers \
|
||||
--enable-info
|
||||
</verb>
|
||||
</p>
|
||||
</sect1>
|
||||
|
||||
<sect1> Configuration d'Apache
|
||||
<P>
|
||||
Le fichier httpd.conf doit au moins contenir.
|
||||
<verb>
|
||||
LoadModule php4_module modules/libphp4.so
|
||||
AddType application/x-httpd-php .php4 .php3 .php .phtml
|
||||
</verb>
|
||||
Et si vous décidez d'avoir la même configuration que moi, mais ce
|
||||
n'est pas obligatoire
|
||||
Il est possible d'utiliser les virtuals hosts ainsi
|
||||
<verb>
|
||||
<VirtualHost *>
|
||||
Servername ...
|
||||
DocumentRoot /var/www/acapulco/htdocs
|
||||
<Directory /var/www/acapulco/htdocs/phpcompta/html/>
|
||||
AddDefaultCharset iso-8859-1
|
||||
php_value include_path .:../../include:../include:addon
|
||||
php_flag magic_quotes_gpc off
|
||||
php_flag session.auto_start on
|
||||
php_value session.save_path /tmp
|
||||
php_value max_execution_time 120
|
||||
php_flag short_open_tag on
|
||||
php_flag session.use_trans_sid on
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
</verb>
|
||||
|
||||
<p>
|
||||
Actuellement, le répertoire html, contient un fichier .htaccess
|
||||
qui contient le nécessaire pour que les variables php soient
|
||||
correctes (voir <ref id="htaccess" name="configuration de .htaccess">).
|
||||
|
||||
<p>
|
||||
Apache se démarre avec apachectl start
|
||||
</p>
|
||||
<p>
|
||||
Remarque : Pour plus d'information, voir le manuel d'Apache.
|
||||
|
||||
</sect1>
|
||||
</sect>
|
||||
|
||||
|
||||
<sect>PHP
|
||||
<sect1>Installation de PHP 4.3.1
|
||||
<p>
|
||||
Il doit être compilé le dernier !!!
|
||||
Si vous décidez de le compiler vous-même, les
|
||||
options suivantes fonctionnent
|
||||
<tscreen><verb>
|
||||
./configure --prefix=/opt/php431 \
|
||||
--with-apxs2=/opt/http2/bin/apxs \
|
||||
--with-fastcgi \
|
||||
--with-zlib \
|
||||
--with-pgsql=/usr/local/psql \
|
||||
--with-mysql \
|
||||
--with-apache2=/software/httpd-2.0.44
|
||||
</verb></tscreen>
|
||||
|
||||
le répertoire /software/httpd-2.0.44 est le répertoire ou vous installer
|
||||
les sources d'apache
|
||||
</p>
|
||||
</sect1>
|
||||
|
||||
<sect1>Configuration de PHP : Fichier php.ini
|
||||
<P>
|
||||
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é php de la même manière que moi, il se trouve
|
||||
dans /opt/php431/lib.
|
||||
Recopier simplement le fichier fourni à cet endroit.
|
||||
|
||||
Sinon, adaptez votre fichier, il doit avoir au minimum les options
|
||||
suivantes
|
||||
<verb>
|
||||
|
||||
magic_quotes_gpc = Off
|
||||
magic_quotes_runtime = Off
|
||||
magic_quotes_sybase = Off
|
||||
|
||||
|
||||
[Session]
|
||||
session.save_handler = files ; handler used to store/retrieve data
|
||||
session.save_path = /tmp ; argument passed to save_handler
|
||||
; in the case of files, this is the
|
||||
; path where data files are stored
|
||||
session.use_cookies = 1 ; whether to use cookies
|
||||
session.name = PHPSESSID
|
||||
; name of the session
|
||||
; is used as cookie name
|
||||
session.auto_start = 1 ; initialize session on request startup
|
||||
session.cookie_lifetime = 0 ; lifetime in seconds of cookie
|
||||
; or if 0, until browser is restarted
|
||||
session.cookie_path = /tmp ; the path the cookie is valid for
|
||||
|
||||
allow_call_time_pass_reference = on
|
||||
register_argc_argv = on
|
||||
session.bug_compat_42 = 1
|
||||
session.bug_compat_warn = 0
|
||||
session.use_trans_sid = 1
|
||||
include_path=".:../include:addon"
|
||||
</verb>
|
||||
</p>
|
||||
<sect1> configuration de .htaccess <label id="htaccess">
|
||||
<p>Dans le cas où vous ne pouvez pas changer le fichier php.ini, il faut
|
||||
simplement modifier ls fichier PHPCOMPTA/html/.htaccess qui contient.
|
||||
|
||||
<verb>
|
||||
php_value include_path ".:../include:addon"
|
||||
php_value session.use_trans_sid true
|
||||
php_value session.auto_start true
|
||||
php_value max_execution_time 120
|
||||
php_value magic_quotes_gpc 0
|
||||
</verb>
|
||||
Note:Normalement, vous ne devez pas changer ce fichier.
|
||||
|
||||
|
||||
</sect1>
|
||||
</sect>
|
||||
<sect>Installation de PhpCompta
|
||||
<sect1>Première installation
|
||||
<p>
|
||||
On suppose que postgresql est installé correctement
|
||||
|
||||
<p>Etape
|
||||
<itemize>
|
||||
<item> Se connecter en tant que postgres et taper les commandes
|
||||
<verb>
|
||||
createuser -h localhost -d -P postgres phpcompta
|
||||
</verb>
|
||||
|
||||
<item>Décompacter le package dans le répertoire de votre choix, et configurer Apache pour qu'il
|
||||
puisse accèder au sous-répertoire html. (voir plus haut la directive DocumentRoot)
|
||||
<item>Eventuellement changer dans constant.php votre domaine (voir manuel : Domaine)
|
||||
<item>
|
||||
Vous devez vous connecter sur http://votre_server/admin/setup.php
|
||||
</itemize>
|
||||
</sect1>
|
||||
<sect1>Mise à jour
|
||||
<p>Etape
|
||||
<itemize>
|
||||
<item> Faite un backup de toutes vos bases de données (cf pg_dumpall)
|
||||
<item>Décompacter le package dans le répertoire de votre choix,
|
||||
et configurer Apache pour qu'il
|
||||
puisse accèder au sous-répertoire html. (voir plus haut la directive DocumentRoot)
|
||||
<item>
|
||||
Vous devez connecter sur http://votre_server/admin/setup.php
|
||||
</itemize>
|
||||
</sect1>
|
||||
</sect>
|
||||
<sect>Conclusion
|
||||
<p>
|
||||
En vous connectant à l'adresse
|
||||
http://votre_server/admin/setup.php; vous installerez
|
||||
tout ce qu'il faut, testerez votre installation et surtout met à jour
|
||||
les bases de données dans le cas d'une mise à jour. En cas de problème,
|
||||
signalez-le nous.
|
||||
|
||||
<p>
|
||||
IMPORTANT Vous devez effacer le répertoire html/admin après installation ou mise
|
||||
à jour !!!!
|
||||
</p>
|
||||
</sect>
|
||||
|
||||
|
||||
</article>
|
||||
18
doc/Makefile
18
doc/Makefile
|
|
@ -2,26 +2,12 @@
|
|||
# html, txt format
|
||||
# $Revision$
|
||||
|
||||
.PHONY: all html .pdf clean .txt devel
|
||||
.PHONY: clean devel
|
||||
|
||||
all: manuel html INSTALL-fr.pdf INSTALL-fr.txt devel
|
||||
all: devel
|
||||
|
||||
devel:
|
||||
cd developper && ./create_doc.sh
|
||||
html:
|
||||
linuxdoc -B html --charset=latin INSTALL-fr.sgml
|
||||
manuel:
|
||||
cp manuel-fr.pdf ../manuel-fr.pdf
|
||||
|
||||
INSTALL-fr.pdf:INSTALL-fr.sgml
|
||||
linuxdoc -B latex --papersize=a4 --charset=latin --output=pdf INSTALL-fr.sgml
|
||||
|
||||
INSTALL-fr.txt: INSTALL-fr.sgml
|
||||
linuxdoc -B txt --charset=latin INSTALL-fr.sgml
|
||||
cp INSTALL-fr.txt ..
|
||||
clean:
|
||||
rm -f *~
|
||||
rm -f FAQ-fr.txt FAQ-fr*.html FAQ-fr.pdf FAQ-fr.dvi FAQ-fr.tex
|
||||
rm -f manuel-fr.txt manuel-fr*.html manuel-fr.pdf manuel-fr.dvi manuel-fr.tex
|
||||
rm -f INSTALL-fr.txt INSTALL-fr*.html INSTALL-fr.pdf INSTALL-fr.dvi INSTALL-fr.tex
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
html/*
|
||||
latex/*
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
doxygen
|
||||
postgresql_autodoc -d mod1
|
||||
postgresql_autodoc -d account_repository
|
||||
cd html; sed -i "s/utf-8/utf-8/g" *
|
||||
if [ ! -z "$PGUSER" ] ; then
|
||||
postgresql_autodoc -u $PGUSER --password $PGPASSWORD -h localhost -d mod1
|
||||
postgresql_autodoc -u $PGUSER --password $PGPASSWORD -h localhost -d account_repository
|
||||
fi
|
||||
|
|
|
|||
2
doc/developper/html/.htaccess
Normal file
2
doc/developper/html/.htaccess
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
AddDefaultCharset utf-8
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
doc/manuel.odt
BIN
doc/manuel.odt
Binary file not shown.
BIN
doc/manuel_win2.odt
Normal file
BIN
doc/manuel_win2.odt
Normal file
Binary file not shown.
|
|
@ -1,18 +0,0 @@
|
|||
Testing of PhpCompta scenario
|
||||
-----------------------------
|
||||
For each month
|
||||
add invoice, card, expense
|
||||
|
||||
print journal -> pdf, csv
|
||||
|
||||
retrieve operation
|
||||
|
||||
Upload piece
|
||||
|
||||
create an user
|
||||
create an modele
|
||||
create an folder based on the last modele
|
||||
grant to user
|
||||
check security (what the user can do, check privilege)
|
||||
|
||||
|
||||
|
|
@ -6,6 +6,6 @@ php_value session.save_path /tmp
|
|||
php_value max_execution_time 240
|
||||
php_value memory_limit 12M
|
||||
# for php 5 php_value upload_tmp_dir /tmp
|
||||
AddDefaultCharset latin1
|
||||
AddDefaultCharset utf-8
|
||||
php_value session.use_trans_sid 1
|
||||
|
||||
php_value error_reporting 10239
|
||||
|
|
|
|||
142
html/access.php
142
html/access.php
|
|
@ -0,0 +1,142 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision: 1615 $ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief first page
|
||||
*/
|
||||
require_once ('constant.php');
|
||||
require_once ('ac_common.php');
|
||||
require_once ('class_user.php');
|
||||
require_once('class_acc_report.php');
|
||||
require_once('class_periode.php');
|
||||
require_once ('user_menu.php');
|
||||
require_once ('class_dossier.php');
|
||||
require_once('class_todo_list.php');
|
||||
|
||||
|
||||
$cn=DbConnect(dossier::id());
|
||||
$user=new User($cn);
|
||||
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
echo '<div class="u_tmenu">';
|
||||
echo menu_tool('access');
|
||||
echo '</div>';
|
||||
echo '<div class="content">';
|
||||
/*
|
||||
* Todo list
|
||||
*/
|
||||
echo JS_PROTOTYPE;
|
||||
echo JS_TODO;
|
||||
if ( isset($_REQUEST['save_todo_list'])) {
|
||||
/* Save the new elt */
|
||||
$add_todo=new Todo_List($cn);
|
||||
$add_todo->set_parameter('id',$_REQUEST['tl_id']);
|
||||
$add_todo->set_parameter('title',$_REQUEST['p_title']);
|
||||
$add_todo->set_parameter('desc',$_REQUEST['p_desc']);
|
||||
$add_todo->set_parameter('date',$_REQUEST['p_date']);
|
||||
$add_todo->save();
|
||||
}
|
||||
$todo=new Todo_List($cn);
|
||||
$array=$todo->load_all();
|
||||
echo '<div style="float:left;width:40%">';
|
||||
echo '<fieldset> <legend>Liste des tâches</legend>';
|
||||
echo '<div id="add_todo_list" style="display:none;text-align:left;line-height:3em">';
|
||||
echo '<form method="post">';
|
||||
$wDate=new widget('js_date','','p_date');
|
||||
$wTitle=new widget('text','','p_title');
|
||||
$wDesc=new widget('textarea','','p_desc');
|
||||
$wDesc->heigh=5;
|
||||
echo "Date ".$wDate->IOValue().'<br>';
|
||||
echo "Titre ".$wTitle->IOValue().'<br>';
|
||||
echo "Description<br>".$wDesc->IOValue().'<br>';
|
||||
echo widget::hidden('phpsessid',$_REQUEST['PHPSESSID']);
|
||||
echo dossier::hidden();
|
||||
echo widget::hidden('tl_id',0);
|
||||
echo widget::submit('save_todo_list','Sauve','onClick="$(\'add_todo_list\').hide();$(\'add\').show();return true;"');
|
||||
echo widget::button('hide','Annuler','onClick="$(\'add_todo_list\').hide();$(\'add\').show();"');
|
||||
echo '</form>';
|
||||
|
||||
echo '</div>';
|
||||
echo widget::button('add','Ajout','onClick="add_todo()"');
|
||||
if ( ! empty ($array) ) {
|
||||
echo '<table id="table_todo" width="100%">';
|
||||
$nb=0;
|
||||
foreach ($array as $row) {
|
||||
if ( $nb % 2 == 0 ) $odd='class="odd" '; else $odd='class="even" ';
|
||||
$nb++;
|
||||
echo '<tr id="tr'.$row['tl_id'].'" '.$odd.'>'.
|
||||
'<td>'.
|
||||
$row['tl_date'].
|
||||
'</td>'.
|
||||
'<td>'.
|
||||
$row['tl_title'].
|
||||
'</td>'.
|
||||
'<td>'.
|
||||
widget::button('mod','M','onClick="todo_list_show('.$row['tl_id'].')"').
|
||||
widget::button('del','E','onClick="todo_list_remove('.$row['tl_id'].')"').
|
||||
'</td>'.
|
||||
'</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
echo '</fieldset>';
|
||||
echo '</div>';
|
||||
/*
|
||||
* Mini Report
|
||||
*/
|
||||
$report=$user->get_mini_report();
|
||||
if ( $report != 0 ) {
|
||||
$rapport=new Acc_Report($cn);
|
||||
$rapport->id=$report;
|
||||
echo '<div style="float:right">';
|
||||
echo '<fieldset style="background-color:white"><legend>'.$rapport->get_name().'</legend>';
|
||||
$exercice=$user->get_exercice();
|
||||
if ( $exercice == 0 ) {
|
||||
echo "<script>alert('Aucune periode par defaut');</script>";
|
||||
} else {
|
||||
$periode=new Periode($cn);
|
||||
$limit=$periode->limit_year($exercice);
|
||||
|
||||
$result=$rapport->get_row($limit['start'],$limit['end'],'periode');
|
||||
$ix=0;
|
||||
echo '<table border="0">';
|
||||
foreach ($result as $row) {
|
||||
$ix++;
|
||||
$bgcolor=($ix%2==0)?' style="background-color:lightgrey"':'';
|
||||
echo '<tr'.$bgcolor.'">';
|
||||
|
||||
echo '<td> '.$row['desc'].'</td>'.
|
||||
'<td>'.sprintf("% 10.2f",$row['montant'])." €</td>";
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
}
|
||||
echo '</fieldset>';
|
||||
echo '</div>';
|
||||
} else {
|
||||
echo '<div style="float:right;width:20%">';
|
||||
echo '<fieldset style="background-color:white"><legend> Aucun rapport défini</legend>';
|
||||
echo '<a href="user_pref.php?'.dossier::get().'"> Cliquez ici pour mettre à jour vos préférences</a>';
|
||||
echo '</fieldset>';
|
||||
echo '</div>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
|
@ -604,7 +604,7 @@ function ezPrvtGetTextWidth($size,$text){
|
|||
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
function ezTable(&$data,$cols='',$title='',$options=''){
|
||||
function ezTable(&$data,$cols='',$title='',$options='',$utf8decode=false){
|
||||
// add a table of information to the pdf document
|
||||
// $data is a two dimensional array
|
||||
// $cols (optional) is an associative array, the keys are the names of the columns from $data
|
||||
|
|
@ -1054,6 +1054,7 @@ function ezTable(&$data,$cols='',$title='',$options=''){
|
|||
}
|
||||
$this->y -= $options['rowGap'];
|
||||
foreach ($lines as $line){
|
||||
if($utf8decode)$line=utf8_decode($line);
|
||||
$line = $this->ezProcessText($line);
|
||||
$start=1;
|
||||
|
||||
|
|
@ -1552,4 +1553,4 @@ function uline($info){
|
|||
// ------------------------------------------------------------------------------
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1232,7 +1232,7 @@ function output($debug=0){
|
|||
$this->checkAllHere();
|
||||
|
||||
$xref=array();
|
||||
$content="%PDF-1.3\n%âãÏÓ\n";
|
||||
$content="%PDF-1.3\n%âãÏÓ\n";
|
||||
// $content="%PDF-1.3\n";
|
||||
$pos=strlen($content);
|
||||
foreach($this->objects as $k=>$v){
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ php_value session.save_path c:\temp
|
|||
php_value max_execution_time 240
|
||||
php_value memory_limit 12M
|
||||
# for php 5 php_value upload_tmp_dir /tmp
|
||||
AddDefaultCharset latin1
|
||||
AddDefaultCharset utf8
|
||||
|
||||
|
|
|
|||
|
|
@ -61,188 +61,68 @@ h2.error {
|
|||
$inc_path=get_include_path();
|
||||
if ( strpos($inc_path,";") != 0 ) {
|
||||
$new_path=$inc_path.';..\..\include;addon';
|
||||
$os=0; /* $os is 0 for unix */
|
||||
} else {
|
||||
$new_path=$inc_path.':../../include:addon';
|
||||
$os=1; /* $os is 0 for windos */
|
||||
}
|
||||
|
||||
set_include_path($new_path);
|
||||
|
||||
require_once('config_file.php');
|
||||
/* The config file is created here */
|
||||
if (isset($_POST['save_config'])) {
|
||||
$url=config_file_create($_POST);
|
||||
}
|
||||
|
||||
|
||||
/* if the config file is not found we propose to create one */
|
||||
if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) {
|
||||
echo '<h2 class="error"> On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits </h2>';
|
||||
exit();
|
||||
}
|
||||
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) {
|
||||
echo '<form method="post">';
|
||||
echo '<h1 class="info">Entrez les informations nécessaires à phpcompta</h1>';
|
||||
echo config_file_form();
|
||||
echo widget::submit('save_config','Sauver la configuration');
|
||||
echo '</form>';
|
||||
exit();
|
||||
}
|
||||
include_once('constant.php');
|
||||
include_once('postgres.php');
|
||||
include_once('debug.php');
|
||||
include_once('ac_common.php');
|
||||
/*!
|
||||
**************************************************
|
||||
* \brief Get version of a database, the content of the
|
||||
* table version
|
||||
*
|
||||
* \param $p_cn database connection
|
||||
*
|
||||
* \return version number
|
||||
*
|
||||
/* If htaccess file doesn't exists we create them here
|
||||
* if os == 1 then windows, 0 means Unix
|
||||
*/
|
||||
function GetVersion($p_cn) {
|
||||
$Res=ExecSql($p_cn,"select val from version");
|
||||
$a=pg_fetch_array($Res,0);
|
||||
return $a['val'];
|
||||
$file='..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'.htaccess';
|
||||
if ( ! file_exists ( $file) ) {
|
||||
$hFile=@fopen($file,'a+');
|
||||
if ( ! $hFile ) exit('Impossible d\'écrire dans le répertoire include');
|
||||
fwrite($hFile,'order deny,allow'."\n");
|
||||
fwrite($hFile,'deny from all'."\n");
|
||||
fclose($hFile);
|
||||
}
|
||||
/*! ExecuteScript
|
||||
**************************************************
|
||||
* \brief Execute a sql script
|
||||
*
|
||||
* \param $p_cn database
|
||||
* \param $script script name
|
||||
*/
|
||||
function ExecuteScript($p_cn,$script) {
|
||||
|
||||
if ( DEBUG=='false' ) ob_start();
|
||||
$hf=fopen($script,'r');
|
||||
if ( $hf == false ) {
|
||||
echo 'Ne peut ouvrir '.$script;
|
||||
exit();
|
||||
}
|
||||
$sql="";
|
||||
$flag_function=false;
|
||||
while (!feof($hf)) {
|
||||
$buffer=fgets($hf);
|
||||
$buffer=str_replace ("$","\$",$buffer);
|
||||
print $buffer."<br>";
|
||||
// comment are not execute
|
||||
if ( substr($buffer,0,2) == "--" ) {
|
||||
//echo "comment $buffer";
|
||||
continue;
|
||||
}
|
||||
// Blank Lines Are Skipped
|
||||
If ( Strlen($buffer)==0) {
|
||||
//echo "Blank $buffer";
|
||||
Continue;
|
||||
}
|
||||
if ( strpos(strtolower($buffer),"create function")===0 ) {
|
||||
echo "found a function";
|
||||
$flag_function=true;
|
||||
$sql=$buffer;
|
||||
continue;
|
||||
}
|
||||
if ( strpos(strtolower($buffer),"create or replace function")===0 ) {
|
||||
echo "found a function";
|
||||
$flag_function=true;
|
||||
$sql=$buffer;
|
||||
continue;
|
||||
}
|
||||
// No semi colon -> multiline command
|
||||
if ( $flag_function== false && strpos($buffer,';') == false ) {
|
||||
$sql.=$buffer;
|
||||
continue;
|
||||
}
|
||||
if ( $flag_function ) {
|
||||
if ( strpos(strtolower($buffer), "language plpgsql") === false &&
|
||||
strpos(strtolower($buffer), "language 'plpgsql'") === false ) {
|
||||
$sql.=$buffer;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// cut the semi colon
|
||||
$buffer=str_replace (';','',$buffer);
|
||||
}
|
||||
$sql.=$buffer;
|
||||
echo_debug('setup.php',__LINE__,"Execute sql $sql");
|
||||
if ( ExecSql($p_cn,$sql,false) == false ) {
|
||||
Rollback($p_cn);
|
||||
if ( DEBUG=='false' ) ob_end_clean();
|
||||
print "ERROR : $sql";
|
||||
exit();
|
||||
}
|
||||
$sql="";
|
||||
$flag_function=false;
|
||||
print "<hr>";
|
||||
} // while (feof)
|
||||
fclose($hf);
|
||||
if ( DEBUG=='false' ) ob_end_clean();
|
||||
}
|
||||
/*!\brief loop to apply all the path to a folder or
|
||||
* a template
|
||||
* \param $p_cn database connexion
|
||||
* \param $p_name database name
|
||||
*
|
||||
*/
|
||||
function apply_patch($p_cn,$p_name)
|
||||
{
|
||||
$MaxVersion=DBVERSION-1;
|
||||
echo '<ul>';
|
||||
for ( $i = 4;$i <= $MaxVersion;$i++)
|
||||
{
|
||||
$to=$i+1;
|
||||
if ( GetVersion($p_cn) <= $i ) {
|
||||
echo "<li>Patching ".$p_name.
|
||||
" from the version ".GetVersion($p_cn)." to $to</h3> </li>";
|
||||
$file='..'.DIRECTORY_SEPARATOR.'.htaccess';
|
||||
if ( ! file_exists ( $file) ) {
|
||||
$hFile=@fopen($file,'a+');
|
||||
if ( ! $hFile ) exit('Impossible d\'écrire dans le répertoire html');
|
||||
$array=array("php_flag magic_quotes_gpc off",
|
||||
"php_flag session.auto_start on",
|
||||
"php_value max_execution_time 240",
|
||||
"php_value memory_limit 12M",
|
||||
"AddDefaultCharset utf-8",
|
||||
"php_value error_reporting 10239",
|
||||
"php_flag short_open_tag on",
|
||||
"php_value upload_max_filesize 10M");
|
||||
|
||||
ExecuteScript($p_cn,'sql/patch/upgrade'.$i.'.sql');
|
||||
if ( DEBUG=='false' ) ob_start();
|
||||
// specific for version 4
|
||||
if ( $i == 4 )
|
||||
{
|
||||
$sql="select jrn_def_id from jrn_def ";
|
||||
$Res=ExecSql($p_cn,$sql);
|
||||
$Max=pg_NumRows($Res);
|
||||
for ($seq=0;$seq<$Max;$seq++) {
|
||||
$row=pg_fetch_array($Res,$seq);
|
||||
$sql=sprintf ("create sequence s_jrn_%d",$row['jrn_def_id']);
|
||||
ExecSql($p_cn,$sql);
|
||||
}
|
||||
}
|
||||
// specific to version 7
|
||||
if ( $i == 7 )
|
||||
{
|
||||
// now we use sequence instead of computing a max
|
||||
//
|
||||
$Res2=ExecSql($p_cn,'select coalesce(max(jr_grpt_id),1) as l from jrn');
|
||||
$Max2= pg_NumRows($Res2) ;
|
||||
if ( $Max2 == 1) {
|
||||
$Row=pg_fetch_array($Res2,0);
|
||||
var_dump($Row);
|
||||
$M=$Row['l'];
|
||||
ExecSql($p_cn,"select setval('s_grpt',$M,true)");
|
||||
}
|
||||
}
|
||||
// specific to version 17
|
||||
if ( $i == 17 )
|
||||
{
|
||||
ExecuteScript($p_cn,'sql/patch/upgrade17.sql');
|
||||
$max=getDbValue($p_cn,'select last_value from s_jnt_fic_att_value');
|
||||
AlterSequence($p_cn,'s_jnt_fic_att_value',$max+1);
|
||||
} // version
|
||||
|
||||
// reset sequence in the modele
|
||||
//--
|
||||
if ( $i == 30 && $p_name=="mod" )
|
||||
{
|
||||
$a_seq=array('s_jrn','s_jrn_op','s_centralized',
|
||||
's_stock_goods','c_order','s_central');
|
||||
foreach ($a_seq as $seq ) {
|
||||
$sql=sprintf("select setval('%s',1,false)",$seq);
|
||||
$Res=ExecSql($p_cn,$sql);
|
||||
}
|
||||
$sql="select jrn_def_id from jrn_def ";
|
||||
$Res=ExecSql($p_cn,$sql);
|
||||
$Max=pg_NumRows($Res);
|
||||
for ($seq=0;$seq<$Max;$seq++) {
|
||||
$row=pg_fetch_array($Res,$seq);
|
||||
$sql=sprintf ("select setval('s_jrn_%d',1,false)",$row['jrn_def_id']);
|
||||
ExecSql($p_cn,$sql);
|
||||
}
|
||||
|
||||
}
|
||||
if ( $i == 36 ) {
|
||||
/* check the country and apply the path */
|
||||
$res=ExecSql($p_cn,"select pr_value from parameter where pr_id='MY_COUNTRY'");
|
||||
$country=pg_fetch_result($res,0,0);
|
||||
ExecuteScript($p_cn,"sql/patch/upgrade36.".$country.".sql");
|
||||
ExecSql($p_cn,'update tmp_pcmn set pcm_type=find_pcm_type(pcm_val)');
|
||||
}
|
||||
if ( DEBUG == 'false') ob_end_clean();
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
if ( $os == 0 )
|
||||
fwrite($hFile,'php_value include_path .;..\..\include;..\include;addon'."\n");
|
||||
else
|
||||
fwrite($hFile,'php_value include_path .:../../include:../include:addon'."\n");
|
||||
foreach ($array as $value ) fwrite($hFile,$value."\n");
|
||||
fclose($hFile);
|
||||
}
|
||||
//----------------------------------------------------------------------
|
||||
// End functions
|
||||
|
|
@ -280,6 +160,12 @@ if ( in_array('pgsql',$module) == false )
|
|||
$flag_php++;
|
||||
}
|
||||
|
||||
if ( in_array('bcmath',$module) == false )
|
||||
{
|
||||
print '<h2 class="error">Désolé mais soit vous n\'avez pas installé le package pour bcmath soit php n\'a pas pas été compilé avec les bonnes options </h2>';
|
||||
$flag_php++;
|
||||
}
|
||||
|
||||
if ( ini_get("max_execution_time") < 60 ) {
|
||||
print '<h2 class="info"> max_execution_time should be set to 60 minimum</h2>';
|
||||
}
|
||||
|
|
@ -408,35 +294,35 @@ if ($account == 0 ) {
|
|||
|
||||
echo "Creation of ".domaine."account_repository";
|
||||
if ( DEBUG=='false') ob_start();
|
||||
ExecSql($cn,"create database ".domaine."account_repository encoding='latin1'");
|
||||
ExecSql($cn,"create database ".domaine."account_repository encoding='utf8'");
|
||||
$cn=DbConnect();
|
||||
StartSql($cn);
|
||||
ExecuteScript($cn,"sql/account_repository/schema.sql");
|
||||
ExecuteScript($cn,"sql/account_repository/data.sql");
|
||||
ExecuteScript($cn,"sql/account_repository/constraint.sql");
|
||||
execute_script($cn,"sql/account_repository/schema.sql");
|
||||
execute_script($cn,"sql/account_repository/data.sql");
|
||||
execute_script($cn,"sql/account_repository/constraint.sql");
|
||||
Commit($cn);
|
||||
|
||||
if ( DEBUG=='false') ob_end_clean();
|
||||
|
||||
echo "Creation of Modele1";
|
||||
if ( DEBUG=='false') ob_start();
|
||||
ExecSql($cn,"create database ".domaine."mod1 encoding='latin1'");
|
||||
ExecSql($cn,"create database ".domaine."mod1 encoding='utf8'");
|
||||
$cn=DbConnect(1,'mod');
|
||||
StartSql($cn);
|
||||
ExecuteScript($cn,'sql/mod1/schema.sql');
|
||||
ExecuteScript($cn,'sql/mod1/data.sql');
|
||||
ExecuteScript($cn,'sql/mod1/constraint.sql');
|
||||
execute_script($cn,'sql/mod1/schema.sql');
|
||||
execute_script($cn,'sql/mod1/data.sql');
|
||||
execute_script($cn,'sql/mod1/constraint.sql');
|
||||
Commit($cn);
|
||||
if ( DEBUG=='false') ob_end_clean();
|
||||
|
||||
echo "Creation of Modele2";
|
||||
ExecSql($cn,"create database ".domaine."mod2 encoding='latin1'");
|
||||
ExecSql($cn,"create database ".domaine."mod2 encoding='utf8'");
|
||||
$cn=DbConnect(2,'mod');
|
||||
StartSql($cn);
|
||||
if ( DEBUG=='false') { ob_start(); }
|
||||
ExecuteScript($cn,'sql/mod1/schema.sql');
|
||||
ExecuteScript($cn,'sql/mod2/data.sql');
|
||||
ExecuteScript($cn,'sql/mod1/constraint.sql');
|
||||
execute_script($cn,'sql/mod1/schema.sql');
|
||||
execute_script($cn,'sql/mod2/data.sql');
|
||||
execute_script($cn,'sql/mod1/constraint.sql');
|
||||
Commit($cn);
|
||||
|
||||
if ( DEBUG=='false') ob_end_clean();
|
||||
|
|
@ -457,7 +343,7 @@ if ( ($Res=ExecSql($a,"select * from ac_users") ) == false ) {
|
|||
exit ("<h2 class=\"error\">".__LINE__." test has failed !!!</h2>");
|
||||
} else
|
||||
print "Connect to database success <br>";
|
||||
echo "<h2 class=\"info\"> Congratulation : Installation réssie</h2>";
|
||||
echo "<h2 class=\"info\"> Félicitation : Installation réussie</h2>";
|
||||
|
||||
echo '<hr>';
|
||||
echo "<h1>Mise a jour du systeme</h1>";
|
||||
|
|
@ -500,14 +386,14 @@ echo '<hr>';
|
|||
echo "<h2>Mise à jour Repository</h2>";
|
||||
$cn=DbConnect();
|
||||
if ( DEBUG == 'false') ob_start();
|
||||
$MaxVersion=7;
|
||||
$MaxVersion=8;
|
||||
for ($i=4;$i<= $MaxVersion;$i++)
|
||||
{
|
||||
if ( GetVersion($cn) <= $i ) {
|
||||
ExecuteScript($cn,'sql/patch/ac-upgrade'.$i.'.sql');
|
||||
if ( get_version($cn) <= $i ) {
|
||||
execute_script($cn,'sql/patch/ac-upgrade'.$i.'.sql');
|
||||
}
|
||||
}
|
||||
|
||||
if (DEBUG=='false') ob_end_clean();
|
||||
echo "<h2 class=\"info\">Voilà tout est installé ;-)</h2>";
|
||||
echo "<h2 class=\"info\">Voilà tout est installé ;-) </H2>";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
SET search_path = public, pg_catalog;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
|
||||
|
|
@ -59,8 +59,8 @@ INSERT INTO ac_users (use_id, use_first_name, use_name, use_login, use_active, u
|
|||
-- Data for Name: modeledef; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO modeledef (mod_id, mod_name, mod_desc) VALUES (1, '(BE) Basique', 'Comptabilité Belge, tout doit être adaptée');
|
||||
INSERT INTO modeledef (mod_id, mod_name, mod_desc) VALUES (2, '(FR) Basique', 'Comptabilité Française, tout doit être adaptée');
|
||||
INSERT INTO modeledef (mod_id, mod_name, mod_desc) VALUES (1, '(BE) Basique', 'Comptabilité Belge, tout doit être adaptée');
|
||||
INSERT INTO modeledef (mod_id, mod_name, mod_desc) VALUES (2, '(FR) Basique', 'Comptabilité Française, tout doit être adaptée');
|
||||
|
||||
|
||||
--
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql
|
|||
awk '/CREATE VIEW/,/;/ { print $0;}' < schema.sql > view.sql
|
||||
awk '/INDEX/,/;/ { print $0;}' < schema.sql > index.sql
|
||||
(
|
||||
echo " SET client_encoding = 'LATIN1';"
|
||||
echo " SET client_encoding = 'utf8';"
|
||||
echo " SET check_function_bodies = false;"
|
||||
echo " SET client_min_messages = warning;"
|
||||
echo "SET search_path = public, pg_catalog;"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ COMMENT ON TABLE plan_analytique IS 'Plan Analytique (max 5)';
|
|||
COMMENT ON TABLE poste_analytique IS 'Poste Analytique';
|
||||
COMMENT ON TABLE quant_sold IS 'Contains about invoice for customer';
|
||||
COMMENT ON TABLE stock_goods IS 'About the goods';
|
||||
COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalisé';
|
||||
COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalisé';
|
||||
COMMENT ON TABLE tva_rate IS 'Rate of vat';
|
||||
COMMENT ON TABLE user_local_pref IS 'The user''s local parameter ';
|
||||
COMMENT ON COLUMN user_local_pref.user_id IS 'user''s login ';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
SET search_path = public, pg_catalog;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -5,7 +5,7 @@ awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql
|
|||
awk '/CREATE VIEW/,/;/ { print $0;}' < schema.sql > view.sql
|
||||
awk '/INDEX/,/;/ { print $0;}' < schema.sql > index.sql
|
||||
(
|
||||
echo " SET client_encoding = 'LATIN1';"
|
||||
echo " SET client_encoding = 'utf8';"
|
||||
echo " SET check_function_bodies = false;"
|
||||
echo " SET client_min_messages = warning;"
|
||||
echo "SET search_path = public, pg_catalog;"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
|
||||
|
|
@ -1933,7 +1933,7 @@ CREATE TABLE tmp_pcmn (
|
|||
|
||||
|
||||
|
||||
COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalisé';
|
||||
COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalisé';
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
|
||||
|
|
@ -227,24 +227,24 @@ SELECT pg_catalog.setval('seq_doc_type_9', 1, false);
|
|||
|
||||
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (4, 'Impression');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (6, 'Mise à jour Plan Comptable');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (6, 'Mise à jour Plan Comptable');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (7, 'Gestion Journaux');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (8, 'Paramètres');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (8, 'Paramètres');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (10, 'Centralise');
|
||||
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 (20, 'Voir la balance des comptes');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (21, 'Import et export des écritures d''ouverture');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (21, 'Import et export des écritures d''ouverture');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (28, 'Module Suivi Document');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (22, 'Module Client');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (24, 'Module Fournisseur');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (26, 'Module Administration');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (30, 'Module Gestion');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (1, 'Lecture du Grand-Livre');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (31, 'Gestion des périodes comptables');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (31, 'Gestion des périodes comptables');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (3, 'Lecture des fiches');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (15, 'Ajout de fiche et modification');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (5, 'Création et modifications des rapports');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (5, 'Création et modifications des rapports');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (50, 'Definir les Plans Analytiques et les postes');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (51, 'Impression CA');
|
||||
INSERT INTO "action" (ac_id, ac_description) VALUES (52, 'Operations Diverses CA');
|
||||
|
|
@ -256,28 +256,28 @@ INSERT INTO "action" (ac_id, ac_description) VALUES (52, 'Operations Diverses CA
|
|||
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (1, 'Nom');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (2, 'Taux TVA');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (3, 'Numéro de compte');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (3, 'Numéro de compte');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (4, 'Nom de la banque');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (5, 'Poste Comptable');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (6, 'Prix vente');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (7, 'Prix achat');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (8, 'Durée Amortissement');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (8, 'Durée Amortissement');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (9, 'Description');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (10, 'Date début');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (10, 'Date début');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (11, 'Montant initial');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (12, 'Personne de contact ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (13, 'numéro de tva ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (13, 'numéro de tva ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (14, 'Adresse ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (16, 'pays ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (17, 'téléphone ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (17, 'téléphone ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (18, 'email ');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (19, 'Gestion stock');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (20, 'Partie fiscalement non déductible');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (21, 'TVA non déductible');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (22, 'TVA non déductible récupérable par l''impôt');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (20, 'Partie fiscalement non déductible');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (21, 'TVA non déductible');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (22, 'TVA non déductible récupérable par l''impôt');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (23, 'Quick Code');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (24, 'Ville');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (25, 'Société');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (25, 'Société');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (26, 'Fax');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (27, 'GSM');
|
||||
INSERT INTO attr_def (ad_id, ad_text) VALUES (15, 'code postal');
|
||||
|
|
@ -381,7 +381,7 @@ INSERT INTO attr_min (frd_id, ad_id) VALUES (18, 9);
|
|||
|
||||
|
||||
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (366, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (366, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (367, '400');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (368, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (369, '');
|
||||
|
|
@ -392,13 +392,13 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (373, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (374, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (375, 'Q400');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (376, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (377, 'autres charges externes - Services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (377, 'autres charges externes - Services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (378, '101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (379, '61');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (380, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (381, 'Q61');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (393, 'Q53');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (394, 'valeurs mobilières de placement');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (394, 'valeurs mobilières de placement');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (395, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (396, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (397, '50');
|
||||
|
|
@ -457,7 +457,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (449, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (450, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (451, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (452, 'Q76');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (453, 'Charges financières');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (453, 'Charges financières');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (454, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (455, '66');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (456, '');
|
||||
|
|
@ -489,7 +489,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (475, 'achat de marchandises');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (476, '101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (477, '607');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (478, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (480, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (480, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (481, '400');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (482, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (483, '');
|
||||
|
|
@ -498,7 +498,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (485, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (486, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (487, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (488, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (489, 'Q408FACTàRECEVOIR');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (489, 'Q408FACTàRECEVOIR');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (490, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (491, 'achat de marchandises');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (492, '101');
|
||||
|
|
@ -515,7 +515,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (511, '707');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (512, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (513, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (514, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (516, 'Produits des activités annexes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (516, 'Produits des activités annexes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (517, '101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (518, '708');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (519, '');
|
||||
|
|
@ -534,17 +534,17 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (532, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (533, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (534, 'Q101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (539, 'Q62DEPLACEMENTS');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (540, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (540, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (541, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (542, '62');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (543, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (544, 'Q62FRAISMISSIONS');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (549, 'Q62FRAISTELECOM');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (545, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (545, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (546, '101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (547, '62');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (548, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (550, 'Associés - Comptes courants');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (550, 'Associés - Comptes courants');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (551, '455');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (552, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (553, '');
|
||||
|
|
@ -555,11 +555,11 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (557, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (558, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (559, 'Q455ASSOCIE1');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (560, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (535, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (535, 'autres charges externes - Autres services extérieurs');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (536, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (537, '62');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (538, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (561, 'Impôts, taxes et versements assimiles');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (561, 'Impôts, taxes et versements assimiles');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (562, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (563, '63');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (564, '');
|
||||
|
|
@ -576,7 +576,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (574, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (575, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (576, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (577, 'Q75');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (583, 'Rémunération du travail de l''exploitant');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (583, 'Rémunération du travail de l''exploitant');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (584, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (585, '644');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (586, '');
|
||||
|
|
@ -587,7 +587,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (604, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (605, '646');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (606, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (607, 'Q646');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (652, 'Personnel - Rémunérations dues');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (652, 'Personnel - Rémunérations dues');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (653, '421');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (654, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (655, '');
|
||||
|
|
@ -598,7 +598,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (659, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (660, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (661, 'Q421SALAIRENETNICOLE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (662, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (663, 'Personnel - Rémunérations dues');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (663, 'Personnel - Rémunérations dues');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (664, '421');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (665, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (666, '');
|
||||
|
|
@ -609,17 +609,17 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (670, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (671, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (672, 'Q421SALAIRENETPIERRE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (673, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (578, 'Rémunérations du personnel');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (578, 'Rémunérations du personnel');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (580, '641');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (581, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (582, 'Q641SALAIREBRUTNICOLE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (674, 'Rémunérations du personnel');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (674, 'Rémunérations du personnel');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (675, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (676, '641');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (677, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (678, 'Q641SALAIREBRUTPIERRE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (617, 'Q431RETENUESURSSAFNICOLE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (608, 'Sécurité sociale');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (608, 'Sécurité sociale');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (609, '431');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (610, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (611, '');
|
||||
|
|
@ -629,7 +629,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (614, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (615, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (616, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (618, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (679, 'Sécurité sociale');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (679, 'Sécurité sociale');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (680, '431');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (681, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (682, '');
|
||||
|
|
@ -640,7 +640,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (686, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (687, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (688, 'Q431RETENUESURSSAFPIERRE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (689, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (619, 'Cotis.Sal.+Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (619, 'Cotis.Sal.+Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (620, '43731');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (621, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (622, '');
|
||||
|
|
@ -652,7 +652,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (627, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (628, 'Q43731RETRAITESALARIESNICOLE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (629, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (699, 'Q43731RETRAITESALARIESPIERRE');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (630, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (630, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (631, '43732');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (632, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (633, '');
|
||||
|
|
@ -677,7 +677,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (730, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (731, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (732, 'Q431');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (733, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (641, 'Cotis.Sal.+Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (641, 'Cotis.Sal.+Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (642, '4374');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (643, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (644, '');
|
||||
|
|
@ -687,7 +687,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (647, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (648, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (649, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (651, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (712, 'Cotis.Sal.+Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (712, 'Cotis.Sal.+Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (713, '4374');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (714, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (715, '');
|
||||
|
|
@ -697,7 +697,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (718, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (719, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (720, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (722, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (701, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (701, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (702, '43732');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (703, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (704, '');
|
||||
|
|
@ -707,7 +707,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (707, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (708, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (709, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (711, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (690, 'Cotis.Sal.+Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (690, 'Cotis.Sal.+Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (691, '43731');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (692, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (693, '');
|
||||
|
|
@ -717,7 +717,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (696, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (697, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (698, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (700, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (734, 'Cotis.Sal. Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (734, 'Cotis.Sal. Pat. Retraite salariés dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (735, '43731');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (736, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (737, '');
|
||||
|
|
@ -729,7 +729,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (742, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (743, 'Q43731');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (744, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (754, 'Q43732');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (756, 'Cotis.Sal. Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (756, 'Cotis.Sal. Pat. Chômage dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (757, '4374');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (758, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (759, '');
|
||||
|
|
@ -740,7 +740,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (763, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (764, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (765, 'Q4374');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (766, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (745, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (745, 'Cotis.Sal.+Pat. Retraite cadres dûes');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (746, '43732');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (747, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (748, '');
|
||||
|
|
@ -750,7 +750,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (751, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (752, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (753, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (755, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (767, 'Clients et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (767, 'Clients et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (768, '410');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (769, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (770, '');
|
||||
|
|
@ -793,7 +793,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (796, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (797, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (798, 'Q410003PINAILLEUR');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (799, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (800, 'Frais d''établissement');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (800, 'Frais d''établissement');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (801, '201');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (802, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (803, '');
|
||||
|
|
@ -804,7 +804,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (807, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (808, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (809, 'Q2011');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (810, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (811, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (811, 'Fournisseurs et Comptes rattachés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (812, '400');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (813, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (814, '');
|
||||
|
|
@ -820,7 +820,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (834, 'Amortissements des immobi
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (835, '104');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (836, '281');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (837, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (839, 'Autres impôts, taxes et versements assimilés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (839, 'Autres impôts, taxes et versements assimilés');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (840, '447');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (841, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (842, '');
|
||||
|
|
@ -845,7 +845,7 @@ INSERT INTO attr_value (jft_id, av_text) VALUES (860, '');
|
|||
INSERT INTO attr_value (jft_id, av_text) VALUES (861, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (862, '');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (863, 'Q701');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (864, 'Rabais, remises et ristournes accordés par l''entreprise');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (864, 'Rabais, remises et ristournes accordés par l''entreprise');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (865, '101');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (866, '709');
|
||||
INSERT INTO attr_value (jft_id, av_text) VALUES (867, '');
|
||||
|
|
@ -874,10 +874,10 @@ INSERT INTO bilan (b_id, b_name, b_file_template, b_file_form, b_type) VALUES (1
|
|||
|
||||
|
||||
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (1, 'Envoyé');
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (1, 'Envoyé');
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (2, 'Brouillon');
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (3, 'A envoyer');
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (4, 'Reçu');
|
||||
INSERT INTO document_state (s_id, s_value) VALUES (4, 'Reçu');
|
||||
|
||||
|
||||
|
||||
|
|
@ -959,23 +959,23 @@ INSERT INTO fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id
|
|||
|
||||
|
||||
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (13, 'Dépenses non admises', 674);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (13, 'Dépenses non admises', 674);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (14, 'Administration des Finances', NULL);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (15, 'Autres fiches', NULL);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (4, 'Banque', 51);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (5, 'Prêt > a un an', 27);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (5, 'Prêt > a un an', 27);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (8, 'Fournisseurs', 400);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (6, 'Prêt < a un an', NULL);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (6, 'Prêt < a un an', NULL);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (16, 'Contact', NULL);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (1, 'Vente Service', 706);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (2, 'Achat Marchandises', 603);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (9, 'Clients', 410);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (10, 'Salaire Administrateur', 644);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (11, 'Salaire Ouvrier', 641);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (12, 'Salaire Employé', 641);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (7, 'Matériel à amortir, immobilisation corporelle', 21);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (12, 'Salaire Employé', 641);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (7, 'Matériel à amortir, immobilisation corporelle', 21);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (3, 'Achat Service et biens divers', 61);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (17, 'Escomptes accordées', 66);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (17, 'Escomptes accordées', 66);
|
||||
INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (18, 'Produits Financiers', 76);
|
||||
|
||||
|
||||
|
|
@ -983,10 +983,10 @@ INSERT INTO fiche_def_ref (frd_id, frd_text, frd_class_base) VALUES (18, 'Produi
|
|||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000398, 3000000, 1, 'Prestation [ case 03 ]', '[700%]-[7000005]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000399, 3000000, 2, 'Prestation intra [ case 47 ]', '[7000005]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000400, 3000000, 3, 'Tva due [case 54]', '[4513]+[4512]+[4511] FROM=01.2005');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000401, 3000000, 4, 'Marchandises, matière première et auxiliaire [case 81 ]', '[60%]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000401, 3000000, 4, 'Marchandises, matière première et auxiliaire [case 81 ]', '[60%]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000402, 3000000, 7, 'Service et bien divers [case 82]', '[61%]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000403, 3000000, 8, 'bien d''invest [ case 83 ]', '[2400%]');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000404, 3000000, 9, 'TVA déductible [ case 59 ]', 'abs([4117]-[411%])');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000404, 3000000, 9, 'TVA déductible [ case 59 ]', 'abs([4117]-[411%])');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000405, 3000000, 8, 'TVA non ded -> voiture', '[610022]*0.21/2');
|
||||
INSERT INTO form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) VALUES (3000406, 3000000, 9, 'Acompte TVA', '[4117]');
|
||||
|
||||
|
|
@ -1002,7 +1002,7 @@ INSERT INTO format_csv_banque (name, include_file) VALUES ('Dexia', 'dexia_be.in
|
|||
|
||||
|
||||
|
||||
INSERT INTO formdef (fr_id, fr_label) VALUES (3000000, 'TVA déclaration Belge');
|
||||
INSERT INTO formdef (fr_id, fr_label) VALUES (3000000, 'TVA déclaration Belge');
|
||||
|
||||
|
||||
|
||||
|
|
@ -1550,12 +1550,12 @@ INSERT INTO jnt_fic_attr (fd_id, ad_id, jnt_id) VALUES (4, 24, 52);
|
|||
|
||||
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (2, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (4, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (1, 'Nouvelle', 'Création d''une facture', 'user_jrn.php', 'action=insert_vente&blank', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (10, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (4, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (1, 'Nouvelle', 'Création d''une facture', 'user_jrn.php', 'action=insert_vente&blank', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (10, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (12, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (14, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (20, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (14, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (20, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (22, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (40, 'Soldes', 'Voir les soldes des comptes en banques', 'user_jrn.php', 'action=solde', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) VALUES (30, 'Nouveau', NULL, 'user_jrn.php', 'action=new&blank', 'FR', 'ODS');
|
||||
|
|
@ -1563,9 +1563,9 @@ INSERT INTO jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_
|
|||
|
||||
|
||||
|
||||
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 (4, 'Opération Diverses', NULL, NULL, NULL, NULL, 5, 5, false, NULL, 'ODS', '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 (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 (4, 'Opération Diverses', NULL, NULL, NULL, NULL, 5, 5, false, NULL, 'ODS', '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,5', '3,2,4,5', 5, 5, false, NULL, 'FIN', 'FIN-01');
|
||||
|
||||
|
||||
|
|
@ -1575,7 +1575,7 @@ INSERT INTO jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_
|
|||
|
||||
INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('VEN', 'Vente');
|
||||
INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('ACH', 'Achat');
|
||||
INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('ODS', 'Opérations Diverses');
|
||||
INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('ODS', 'Opérations Diverses');
|
||||
INSERT INTO jrn_type (jrn_type_id, jrn_desc) VALUES ('FIN', 'Banque');
|
||||
|
||||
|
||||
|
|
@ -1606,11 +1606,11 @@ INSERT INTO parameter (pr_id, pr_value) VALUES ('MY_COUNTRY', 'FR');
|
|||
|
||||
|
||||
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('BANQUE', '51', 'Poste comptable par défaut pour les banques');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('CAISSE', '53', 'Poste comptable par défaut pour les caisses');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('CUSTOMER', '410', 'Poste comptable par défaut pour les clients');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('VENTE', '707', 'Poste comptable par défaut pour les ventes');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('VIREMENT_INTERNE', '58', 'Poste comptable par défaut pour les virements internes');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('BANQUE', '51', 'Poste comptable par défaut pour les banques');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('CAISSE', '53', 'Poste comptable par défaut pour les caisses');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('CUSTOMER', '410', 'Poste comptable par défaut pour les clients');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('VENTE', '707', 'Poste comptable par défaut pour les ventes');
|
||||
INSERT INTO parm_code (p_code, p_value, p_comment) VALUES ('VIREMENT_INTERNE', '58', 'Poste comptable par défaut pour les virements internes');
|
||||
|
||||
|
||||
|
||||
|
|
@ -1651,22 +1651,22 @@ INSERT INTO parm_periode (p_id, p_start, p_end, p_exercice, p_closed, p_central)
|
|||
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1, 'comptes de capitaux', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (101, 'Capital', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (105, 'Ecarts de réévaluation', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1061, 'Réserve légale', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1063, 'Réserves statutaires ou contractuelles', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1064, 'Réserves réglementées', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1068, 'Autres réserves', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (105, 'Ecarts de réévaluation', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1061, 'Réserve légale', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1063, 'Réserves statutaires ou contractuelles', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1064, 'Réserves réglementées', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (1068, 'Autres réserves', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (108, 'Compte de l''exploitant', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (12, 'résultat de l''exercice (bénéfice ou perte)', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (145, 'Amortissements dérogatoires', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (146, 'Provision spéciale de réévaluation', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (147, 'Plus-values réinvesties', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (148, 'Autres provisions réglementées', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (12, 'résultat de l''exercice (bénéfice ou perte)', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (145, 'Amortissements dérogatoires', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (146, 'Provision spéciale de réévaluation', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (147, 'Plus-values réinvesties', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (148, 'Autres provisions réglementées', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (15, 'Provisions pour risques et charges', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (16, 'emprunts et dettes assimilees', 1);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (2, 'comptes d''immobilisations', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (20, 'immobilisations incorporelles', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (201, 'Frais d''établissement', 20);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (201, 'Frais d''établissement', 20);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (206, 'Droit au bail', 20);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (207, 'Fonds commercial', 20);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (208, 'Autres immobilisations incorporelles', 20);
|
||||
|
|
@ -1675,144 +1675,144 @@ INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (23, 'immobilisat
|
|||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (27, 'autres immobilisations financieres', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (280, 'Amortissements des immobilisations incorporelles', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (281, 'Amortissements des immobilisations corporelles', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (290, 'Provisions pour dépréciation des immobilisations incorporelles', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (291, 'Provisions pour dépréciation des immobilisations corporelles (même ventilation que celle du compte 21)', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (297, 'Provisions pour dépréciation des autres immobilisations financières', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (290, 'Provisions pour dépréciation des immobilisations incorporelles', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (291, 'Provisions pour dépréciation des immobilisations corporelles (même ventilation que celle du compte 21)', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (297, 'Provisions pour dépréciation des autres immobilisations financières', 2);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (3, 'comptes de stocks et en cours', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (31, 'matieres premières (et fournitures)', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (31, 'matieres premières (et fournitures)', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (32, 'autres approvisionnements', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (33, 'en-cours de production de biens', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (34, 'en-cours de production de services', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (35, 'stocks de produits', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (37, 'stocks de marchandises', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (391, 'Provisions pour dépréciation des matières premières (et fournitures)', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (392, 'Provisions pour dépréciation des autres approvisionnements', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (393, 'Provisions pour dépréciation des en-cours de production de biens', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (394, 'Provisions pour dépréciation des en-cours de production de services', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (395, 'Provisions pour dépréciation des stocks de produits', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (397, 'Provisions pour dépréciation des stocks de marchandises', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (391, 'Provisions pour dépréciation des matières premières (et fournitures)', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (392, 'Provisions pour dépréciation des autres approvisionnements', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (393, 'Provisions pour dépréciation des en-cours de production de biens', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (394, 'Provisions pour dépréciation des en-cours de production de services', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (395, 'Provisions pour dépréciation des stocks de produits', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (397, 'Provisions pour dépréciation des stocks de marchandises', 3);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (4, 'comptes de tiers', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (400, 'Fournisseurs et Comptes rattachés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (409, 'Fournisseurs débiteurs', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (410, 'Clients et Comptes rattachés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (419, 'Clients créditeurs', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (421, 'Personnel - Rémunérations dues', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (428, 'Personnel - Charges à payer et produits à recevoir', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43, 'Sécurité sociale et autres organismes sociaux', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (431, 'Sécurité sociale', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43731, 'Cotis.Sal.+Pat. Retraite salariés dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43732, 'Cotis.Sal.+Pat. Retraite cadres dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (4374, 'Cotis.Sal.+Pat. ASSEDIC dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (444, 'Etat - Impôts sur les bénéfices', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (400, 'Fournisseurs et Comptes rattachés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (409, 'Fournisseurs débiteurs', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (410, 'Clients et Comptes rattachés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (419, 'Clients créditeurs', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (421, 'Personnel - Rémunérations dues', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (428, 'Personnel - Charges à payer et produits à recevoir', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43, 'Sécurité sociale et autres organismes sociaux', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (431, 'Sécurité sociale', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43731, 'Cotis.Sal.+Pat. Retraite salariés dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (43732, 'Cotis.Sal.+Pat. Retraite cadres dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (4374, 'Cotis.Sal.+Pat. ASSEDIC dûes', 43);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (444, 'Etat - Impôts sur les bénéfices', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445, 'Etat - Taxes sur le chiffre d''affaires', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44562, 'T.V.A. sur immobilisations', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445661, 'T.V.A. déductible 19,6% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445662, 'T.V.A. déductible 5,5% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445663, 'T.V.A. déductible 2,1% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44571, 'T.V.A. collectée 19,6%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44572, 'T.V.A. collectée 5,5%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44573, 'T.V.A. collectée 2,1%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (447, 'Autres impôts, taxes et versements assimilés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445661, 'T.V.A. déductible 19,6% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445662, 'T.V.A. déductible 5,5% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (445663, 'T.V.A. déductible 2,1% sur autres biens et services', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44571, 'T.V.A. collectée 19,6%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44572, 'T.V.A. collectée 5,5%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (44573, 'T.V.A. collectée 2,1%', 445);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (447, 'Autres impôts, taxes et versements assimilés', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (45, 'Groupe et associes', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (455, 'Associés - Comptes courants', 45);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (46, 'Débiteurs divers et créditeurs divers', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (455, 'Associés - Comptes courants', 45);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (46, 'Débiteurs divers et créditeurs divers', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (47, 'comptes transitoires ou d''attente', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (481, 'Charges à répartir sur plusieurs exercices', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (486, 'Charges constatées d''avance', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (487, 'Produits constatés d''avance', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (491, 'Provisions pour dépréciation des comptes de clients', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (496, 'Provisions pour dépréciation des comptes de débiteurs divers', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (481, 'Charges à répartir sur plusieurs exercices', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (486, 'Charges constatées d''avance', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (487, 'Produits constatés d''avance', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (491, 'Provisions pour dépréciation des comptes de clients', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (496, 'Provisions pour dépréciation des comptes de débiteurs divers', 4);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (5, 'comptes financiers', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (50, 'valeurs mobilières de placement', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (51, 'banques, établissements financiers et assimilés', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (50, 'valeurs mobilières de placement', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (51, 'banques, établissements financiers et assimilés', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (53, 'Caisse', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (54, 'régies d''avance et accréditifs', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (54, 'régies d''avance et accréditifs', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (58, 'virements internes', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (590, 'Provisions pour dépréciation des valeurs mobilières de placement', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (590, 'Provisions pour dépréciation des valeurs mobilières de placement', 5);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6, 'comptes de charges', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (60, 'Achats (sauf 603)', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (607, 'Achats de marchandises', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (603, 'variations des stocks (approvisionnements et marchandises)', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6031, 'Variation des stocks de matières premières (et fournitures)', 603);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6031, 'Variation des stocks de matières premières (et fournitures)', 603);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6032, 'Variation des stocks des autres approvisionnements', 603);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6037, 'Variation des stocks de marchandises', 603);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (61, 'autres charges externes - Services extérieurs', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (62, 'autres charges externes - Autres services extérieurs', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (63, 'Impôts, taxes et versements assimiles', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (641, 'Rémunérations du personnel', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (644, 'Rémunération du travail de l''exploitant', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6451, 'Cotisations à l''URSSAF', 645);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (61, 'autres charges externes - Services extérieurs', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (62, 'autres charges externes - Autres services extérieurs', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (63, 'Impôts, taxes et versements assimiles', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (641, 'Rémunérations du personnel', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (644, 'Rémunération du travail de l''exploitant', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6451, 'Cotisations à l''URSSAF', 645);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6453, 'Cotisations aux caisses de retraites', 645);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6454, 'Cotisations aux ASSEDIC', 645);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (646, 'Cotisations sociales personnelles de l''exploitant', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (65, 'Autres charges de gestion courante', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (66, 'Charges financières', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (66, 'Charges financières', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (67, 'Charges exceptionnelles', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (681, 'Dotations aux amortissements et aux provisions - Charges d''exploitation', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6811, 'Dotations aux amortissements sur immobilisations incorporelles et corporelles', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6815, 'Dotations aux provisions pour risques et charges d''exploitation', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6816, 'Dotations aux provisions pour dépréciation des immobilisations incorporelles et corporelles', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6817, 'Dotations aux provisions pour dépréciation des actifs circulants', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (686, 'Dotations aux amortissements et aux provisions - Charges financières', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6816, 'Dotations aux provisions pour dépréciation des immobilisations incorporelles et corporelles', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (6817, 'Dotations aux provisions pour dépréciation des actifs circulants', 681);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (686, 'Dotations aux amortissements et aux provisions - Charges financières', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (687, 'Dotations aux amortissements et aux provisions - Charges exceptionnelles', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (691, 'Participation des salariés aux résultats', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (695, 'Impôts sur les bénéfices', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (697, 'Imposition forfaitaire annuelle des sociétés', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (699, 'Produits - Reports en arrière des déficits', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (691, 'Participation des salariés aux résultats', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (695, 'Impôts sur les bénéfices', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (697, 'Imposition forfaitaire annuelle des sociétés', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (699, 'Produits - Reports en arrière des déficits', 6);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (7, 'comptes de produits', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (701, 'Ventes de produits finis', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (706, 'Prestations de services', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (707, 'Ventes de marchandises', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (708, 'Produits des activités annexes', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (709, 'Rabais, remises et ristournes accordés par l''entreprise', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (708, 'Produits des activités annexes', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (709, 'Rabais, remises et ristournes accordés par l''entreprise', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (713, 'Variation des stocks (en-cours de production, produits)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (72, 'Production immobilisée', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (72, 'Production immobilisée', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (74, 'Subventions d''exploitation', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (75, 'Autres produits de gestion courante', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (753, 'Jetons de présence et rémunérations d''administrateurs, gérants,...', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (754, 'Ristournes perçues des coopératives (provenant des excédents)', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (755, 'Quotes-parts de résultat sur opérations faites en commun', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (753, 'Jetons de présence et rémunérations d''administrateurs, gérants,...', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (754, 'Ristournes perçues des coopératives (provenant des excédents)', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (755, 'Quotes-parts de résultat sur opérations faites en commun', 75);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (76, 'Produits financiers', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (77, 'Produits exceptionnels', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (781, 'Reprises sur amortissements et provisions (à inscrire dans les produits d''exploitation)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (786, 'Reprises sur provisions pour risques (à inscrire dans les produits financiers)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (787, 'Reprises sur provisions (à inscrire dans les produits exceptionnels)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (781, 'Reprises sur amortissements et provisions (à inscrire dans les produits d''exploitation)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (786, 'Reprises sur provisions pour risques (à inscrire dans les produits financiers)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (787, 'Reprises sur provisions (à inscrire dans les produits exceptionnels)', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (79, 'Transferts de charges', 7);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8, 'Comptes spéciaux', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8, 'Comptes spéciaux', 0);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80, 'Engagements hors bilan', 8);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (801, 'Engagements donnés par l''entité', 80);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (801, 'Engagements donnés par l''entité', 80);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8011, 'Avals, cautions, garanties', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8014, 'Effets circulant sous l''endos de l''entité', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8016, 'Redevances crédit-bail restant à courir', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80161, 'Crédit-bail mobilier', 8016);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80165, 'Crédit-bail immobilier', 8016);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8018, 'Autres engagements donnés', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (802, 'Engagements reçus par l''entité', 80);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8014, 'Effets circulant sous l''endos de l''entité', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8016, 'Redevances crédit-bail restant à courir', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80161, 'Crédit-bail mobilier', 8016);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80165, 'Crédit-bail immobilier', 8016);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8018, 'Autres engagements donnés', 801);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (802, 'Engagements reçus par l''entité', 80);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8021, 'Avals, cautions, garanties', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8024, 'Créances escomptées non échues', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8026, 'Engagements reçus pour utilisation en crédit-bail', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80261, 'Crédit-bail mobilier', 8026);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80265, 'Crédit-bail immobilier', 8026);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8028, 'Autres engagements reçus', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8024, 'Créances escomptées non échues', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8026, 'Engagements reçus pour utilisation en crédit-bail', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80261, 'Crédit-bail mobilier', 8026);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (80265, 'Crédit-bail immobilier', 8026);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8028, 'Autres engagements reçus', 802);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (809, 'Contrepartie des engagements', 80);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8091, 'Contrepartie 801', 809);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (8092, 'Contrepartie 802', 809);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (88, 'Résultat en instance d''affectation', 8);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (88, 'Résultat en instance d''affectation', 8);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (89, 'Bilan', 8);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (890, 'Bilan d''ouverture', 89);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (891, 'Bilan de clôture', 89);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (891, 'Bilan de clôture', 89);
|
||||
INSERT INTO tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent) VALUES (9, 'Comptes hors Compta', 0);
|
||||
|
||||
|
||||
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (101, 'TVAFranceNormal', 0.1960, 'TVA 19,6% - France métropolitaine - Taux normal', '445661,44571');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (102, 'TVAFranceRéduit', 0.0550, 'TVA 5,5% - France métropolitaine - Taux réduit', '445662,44572');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (103, 'TVAFranceSuperRéduit', 0.0210, 'TVA 2,1% - France métropolitaine - Taux super réduit', '445663,44573');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (104, 'TVAFranceImmos', 0.1960, 'TVA 19,6% - France métropolitaine - Taux immobilisations', '44562,0');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (105, 'TVAFranceAnciens', 0.0000, 'TVA x% - France métropolitaine - Taux anciens', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (101, 'TVAFranceNormal', 0.1960, 'TVA 19,6% - France métropolitaine - Taux normal', '445661,44571');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (102, 'TVAFranceRéduit', 0.0550, 'TVA 5,5% - France métropolitaine - Taux réduit', '445662,44572');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (103, 'TVAFranceSuperRéduit', 0.0210, 'TVA 2,1% - France métropolitaine - Taux super réduit', '445663,44573');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (104, 'TVAFranceImmos', 0.1960, 'TVA 19,6% - France métropolitaine - Taux immobilisations', '44562,0');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (105, 'TVAFranceAnciens', 0.0000, 'TVA x% - France métropolitaine - Taux anciens', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (201, 'TVADomNormal', 0.0850, 'TVA 8,5% - DOM - Taux normal', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (202, 'TVADomNPR', 0.0850, 'TVA 8,5% - DOM - Taux normal NPR', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (203, 'TVADomRéduit', 0.0210, 'TVA 2,1% - DOM - Taux réduit', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (203, 'TVADomRéduit', 0.0210, 'TVA 2,1% - DOM - Taux réduit', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (204, 'TVADom-I', 0.0175, 'TVA 1,75% - DOM - Taux I', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (205, 'TVADomPresse', 0.0105, 'TVA 1,05% - DOM - Taux publications de presse', '445,445');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (206, 'TVADomOctroi', 0.0000, 'TVA x% - DOM - Taux octroi de mer', '445,445');
|
||||
|
|
@ -1826,7 +1826,7 @@ INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUE
|
|||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (402, 'TVAacquisIntracomImmos', 0.0000, 'TVA x% - Acquisitions intracommunautaires immobilisations/Pays', '445,0');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (501, 'TVAfranchise', 0.0000, 'TVA x% - Non imposable : Achats en franchise', '');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (502, 'TVAexport', 0.0000, 'TVA x% - Non imposable : Exports hors CE/Pays', '');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (503, 'TVAautres', 0.0000, 'TVA x% - Non imposable : Autres opérations', '');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (503, 'TVAautres', 0.0000, 'TVA x% - Non imposable : Autres opérations', '');
|
||||
INSERT INTO tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) VALUES (504, 'TVAlivrIntracom', 0.0000, 'TVA x% - Non imposable : Livraisons intracommunautaires/Pays', '');
|
||||
|
||||
|
||||
|
|
|
|||
6
html/admin/sql/patch/ac-upgrade8.sql
Normal file
6
html/admin/sql/patch/ac-upgrade8.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
begin;
|
||||
update modeledef set mod_desc='Comptabilité Belge, à adapter' where mod_id=1;
|
||||
update modeledef set mod_desc='Comptabilité Française, à adapter' where mod_id=2;
|
||||
update version set val=9;
|
||||
commit;
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
begin;
|
||||
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
|
||||
update fiche_def_ref set frd_class_base=2400 where frd_id=7;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@ create table parm_code (
|
|||
p_comment text
|
||||
);
|
||||
|
||||
INSERT INTO parm_code VALUES ('DNA', '6740', 'Dépense non déductible');
|
||||
INSERT INTO parm_code VALUES ('DNA', '6740', 'Dépense non déductible');
|
||||
INSERT INTO parm_code VALUES ('CUSTOMER', '400', 'Poste comptable de base pour les clients');
|
||||
INSERT INTO parm_code VALUES ('COMPTE_TVA', '451', 'TVA à payer');
|
||||
INSERT INTO parm_code VALUES ('COMPTE_TVA', '451', 'TVA à payer');
|
||||
INSERT INTO parm_code VALUES ('BANQUE', '550', 'Poste comptable de base pour les banques');
|
||||
INSERT INTO parm_code VALUES ('VIREMENT_INTERNE', '58', 'Poste Comptable pour les virements internes');
|
||||
INSERT INTO parm_code VALUES ('COMPTE_COURANT', '56', 'Poste comptable pour le compte courant');
|
||||
INSERT INTO parm_code VALUES ('CAISSE', '57', 'Poste comptable pour la caisse');
|
||||
INSERT INTO parm_code VALUES ('TVA_DNA', '6740', 'Tva non déductible s');
|
||||
INSERT INTO parm_code VALUES ('TVA_DED_IMPOT', '619000', 'Tva déductible par l''impôt');
|
||||
INSERT INTO parm_code VALUES ('TVA_DNA', '6740', 'Tva non déductible s');
|
||||
INSERT INTO parm_code VALUES ('TVA_DED_IMPOT', '619000', 'Tva déductible par l''impôt');
|
||||
INSERT INTO parm_code VALUES ('VENTE ', '70', 'Poste comptable de base pour les ventes');
|
||||
|
||||
-- Function: tva_delete(p_tva_id int4)
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ language plpgsql ;
|
|||
delete from form where fo_fr_id=3000000;
|
||||
delete from formdef where fr_id=3000000;
|
||||
|
||||
INSERT INTO formdef (fr_id, fr_label) VALUES (3000000, 'TVA déclaration Belge');
|
||||
INSERT INTO formdef (fr_id, fr_label) VALUES (3000000, 'TVA déclaration Belge');
|
||||
--
|
||||
-- Data for TOC entry 2 (OID 315304)
|
||||
-- Name: formdef; Type: TABLE DATA; Schema: public; Owner: dany
|
||||
|
|
@ -376,10 +376,10 @@ INSERT INTO formdef (fr_id, fr_label) VALUES (3000000, 'TVA d
|
|||
INSERT INTO form VALUES (3000398, 3000000, 1, 'Prestation [ case 03 ]', '[700%]-[7000005]');
|
||||
INSERT INTO form VALUES (3000399, 3000000, 2, 'Prestation intra [ case 47 ]', '[7000005]');
|
||||
INSERT INTO form VALUES (3000400, 3000000, 3, 'Tva due [case 54]', '[4513]+[4512]+[4511] FROM=01.2005');
|
||||
INSERT INTO form VALUES (3000401, 3000000, 4, 'Marchandises, matière première et auxiliaire [case 81 ]', '[60%]');
|
||||
INSERT INTO form VALUES (3000401, 3000000, 4, 'Marchandises, matière première et auxiliaire [case 81 ]', '[60%]');
|
||||
INSERT INTO form VALUES (3000402, 3000000, 7, 'Service et bien divers [case 82]', '[61%]');
|
||||
INSERT INTO form VALUES (3000403, 3000000, 8, 'bien d''invest [ case 83 ]', '[2400%]');
|
||||
INSERT INTO form VALUES (3000404, 3000000, 9, 'TVA déductible [ case 59 ]', 'abs([4117]-[411%])');
|
||||
INSERT INTO form VALUES (3000404, 3000000, 9, 'TVA déductible [ case 59 ]', 'abs([4117]-[411%])');
|
||||
INSERT INTO form VALUES (3000405, 3000000, 8, 'TVA non ded -> voiture', '[610022]*0.21/2');
|
||||
INSERT INTO form VALUES (3000406, 3000000, 9, 'Acompte TVA', '[4117]');
|
||||
|
||||
|
|
@ -414,10 +414,10 @@ COMMENT ON TABLE document_state IS 'State of the document';
|
|||
SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('document_state', 's_id'), 3, true);
|
||||
|
||||
|
||||
INSERT INTO document_state VALUES (1, 'Envoyé');
|
||||
INSERT INTO document_state VALUES (1, 'Envoyé');
|
||||
INSERT INTO document_state VALUES (2, 'Brouillon');
|
||||
INSERT INTO document_state VALUES (3, 'A envoyer');
|
||||
INSERT INTO document_state VALUES (4, 'Reçu');
|
||||
INSERT INTO document_state VALUES (4, 'Reçu');
|
||||
|
||||
ALTER TABLE ONLY document_state ADD CONSTRAINT document_state_pkey PRIMARY KEY (s_id);
|
||||
alter sequence s_attr_def restart with 24;
|
||||
|
|
@ -453,7 +453,7 @@ comment on table action_gestion is 'Action for Managing';
|
|||
alter sequence s_fiche_def_ref restart 16;
|
||||
insert into fiche_def_ref(frd_text) values ('Contact');
|
||||
|
||||
insert into attr_def(ad_text) values ('Société');
|
||||
insert into attr_def(ad_text) values ('Société');
|
||||
insert into attr_def(ad_text) values ('Fax');
|
||||
insert into attr_min values(16,1);
|
||||
insert into attr_min values(16,17);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ alter table import_tmp add constraint chk_status check (status in ('n','w','d',
|
|||
|
||||
alter table import_tmp drop column ok ;
|
||||
comment on table import_tmp is 'Table temporaire pour l''importation des banques en format CSV';
|
||||
comment on column import_tmp.status is 'Status doit être w pour en attente, t pour transfèrer ou d à effacer';
|
||||
comment on column import_tmp.status is 'Status doit être w pour en attente, t pour transfèrer ou d à effacer';
|
||||
|
||||
|
||||
create or replace function trim_cvs_quote() returns trigger as $trim$
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ delete from action where ac_id=9;
|
|||
delete from action where ac_id=19;
|
||||
delete from action where ac_id=18;
|
||||
update action set ac_description='Lecture du Grand-Livre' where ac_id=1;
|
||||
insert into action values (31,'Gestion des périodes comptables');
|
||||
insert into action values (31,'Gestion des périodes comptables');
|
||||
update action set ac_description = 'Lecture des fiches' where ac_id=3;
|
||||
update action set ac_description = 'Ajout de fiche et modification' where ac_id=15;
|
||||
update action set ac_description = 'Création et modifications des rapports' where ac_id=5;
|
||||
update action set ac_description = 'Création et modifications des rapports' where ac_id=5;
|
||||
|
||||
update version set val=29;
|
||||
commit;
|
||||
|
|
@ -219,7 +219,6 @@ CREATE TABLE poste_analytique (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.poste_analytique OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE poste_analytique; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -285,7 +284,6 @@ CREATE TABLE operation_analytique (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.operation_analytique OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE operation_analytique; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -392,7 +390,6 @@ CREATE TABLE bilan (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.bilan OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE bilan; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -498,7 +495,6 @@ CREATE TABLE op_predef (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.op_predef OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE op_predef; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -576,7 +572,6 @@ CREATE TABLE op_predef_detail (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.op_predef_detail OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE op_predef_detail; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
SET client_encoding = 'LATIN1';
|
||||
SET client_encoding = 'utf8';
|
||||
SET standard_conforming_strings = off;
|
||||
SET check_function_bodies = false;
|
||||
SET client_min_messages = warning;
|
||||
|
|
|
|||
|
|
@ -221,7 +221,6 @@ CREATE SEQUENCE bud_card_bc_id_seq
|
|||
CACHE 1;
|
||||
|
||||
|
||||
ALTER TABLE public.bud_card_bc_id_seq OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: bc_id; Type: DEFAULT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -265,7 +264,6 @@ CREATE TABLE bud_detail (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.bud_detail OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE bud_detail; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -313,7 +311,6 @@ CREATE SEQUENCE bud_detail_bd_id_seq
|
|||
CACHE 1;
|
||||
|
||||
|
||||
ALTER TABLE public.bud_detail_bd_id_seq OWNER TO phpcompta;
|
||||
|
||||
|
||||
--
|
||||
|
|
@ -374,7 +371,6 @@ CREATE TABLE bud_detail_periode (
|
|||
);
|
||||
|
||||
|
||||
ALTER TABLE public.bud_detail_periode OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: TABLE bud_detail_periode; Type: COMMENT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -409,7 +405,6 @@ CREATE SEQUENCE bud_detail_periode_bdp_id_seq
|
|||
CACHE 1;
|
||||
|
||||
|
||||
ALTER TABLE public.bud_detail_periode_bdp_id_seq OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: bdp_id; Type: DEFAULT; Schema: public; Owner: phpcompta
|
||||
|
|
@ -470,7 +465,6 @@ NEW.bc_code:=sCode;
|
|||
return NEW;
|
||||
end;$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
ALTER FUNCTION bud_card_ins_upd() OWNER TO phpcompta;
|
||||
|
||||
--
|
||||
-- Name: t_bud_card_ins_up; Type: TRIGGER; Schema: public; Owner: phpcompta
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ comment on table jrn_type is 'Type of journal (Sell, Buy, Financial...)';
|
|||
comment on table parm_money is 'Currency conversion';
|
||||
comment on table parm_periode is 'Periode definition';
|
||||
comment on table stock_goods is 'About the goods';
|
||||
comment on table tmp_pcmn is 'Plan comptable minimum normalisé';
|
||||
comment on table tmp_pcmn is 'Plan comptable minimum normalisé';
|
||||
comment on table tva_rate is 'Rate of vat';
|
||||
create sequence s_central;
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ alter table jrn add jr_pj_type text;
|
|||
delete from user_sec_act WHERE ua_act_id =14;
|
||||
delete from action where ac_id=14;
|
||||
insert into action values (18,'Devise');
|
||||
insert into action values (19,'Période');
|
||||
insert into action values (19,'Période');
|
||||
insert into action values (20,'Voir la balance des comptes');
|
||||
|
||||
-- task 3374
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
begin;
|
||||
|
||||
insert into parm_code values ('DEP_PRIV',4890,'Depense a charge du gerant');
|
||||
insert into attr_def values (31,'Depense à charge du gérant (partie privée)');
|
||||
insert into attr_def values (31,'Depense à charge du gérant (partie privée)');
|
||||
alter table quant_purchase add qp_dep_priv numeric(20,4) default 0.0;
|
||||
|
||||
CREATE FUNCTION insert_quant_purchase(p_internal text, p_j_id numeric, p_fiche character varying, p_quant numeric, p_price numeric, p_vat numeric, p_vat_code integer, p_nd_amount numeric, p_nd_tva numeric, p_nd_tva_recup numeric,p_dep_priv numeric , p_client character varying) RETURNS void
|
||||
|
|
|
|||
71
html/admin/sql/patch/upgrade48.sql
Normal file
71
html/admin/sql/patch/upgrade48.sql
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
begin;
|
||||
create sequence s_tva start with 1000;
|
||||
alter table tva_rate alter tva_id set default nextval('s_tva');
|
||||
alter table form drop constraint "$1";
|
||||
alter table form add constraint formdef_fk foreign key (fo_fr_id) references formdef(fr_id) on update cascade on delete cascade;
|
||||
drop function tva_insert(integer,text,numeric,text,text);
|
||||
|
||||
CREATE or replace FUNCTION tva_insert( text, numeric, text, text)
|
||||
RETURNS integer
|
||||
AS $_$
|
||||
declare
|
||||
l_tva_id integer;
|
||||
p_tva_label alias for $1;
|
||||
p_tva_rate alias for $2;
|
||||
p_tva_comment alias for $3;
|
||||
p_tva_poste alias for $4;
|
||||
debit text;
|
||||
credit text;
|
||||
nCount integer;
|
||||
begin
|
||||
if length(trim(p_tva_label)) = 0 then
|
||||
return 3;
|
||||
end if;
|
||||
|
||||
if length(trim(p_tva_poste)) != 0 then
|
||||
if position (',' in p_tva_poste) = 0 then return 4; end if;
|
||||
debit = split_part(p_tva_poste,',',1);
|
||||
credit = split_part(p_tva_poste,',',2);
|
||||
select count(*) into nCount from tmp_pcmn where pcm_val=debit;
|
||||
if nCount = 0 then return 4; end if;
|
||||
select count(*) into nCount from tmp_pcmn where pcm_val=credit;
|
||||
if nCount = 0 then return 4; end if;
|
||||
|
||||
end if;
|
||||
select into l_tva_id nextval('s_tva') ;
|
||||
insert into tva_rate(tva_id,tva_label,tva_rate,tva_comment,tva_poste)
|
||||
values (l_tva_id,p_tva_label,p_tva_rate,p_tva_comment,p_tva_poste);
|
||||
return 0;
|
||||
end;
|
||||
$_$
|
||||
LANGUAGE plpgsql;
|
||||
|
||||
CREATE TABLE todo_list (
|
||||
tl_id integer NOT NULL,
|
||||
tl_date date NOT NULL,
|
||||
tl_title text NOT NULL,
|
||||
tl_desc text,
|
||||
use_login text NOT NULL
|
||||
);
|
||||
|
||||
|
||||
COMMENT ON TABLE todo_list IS 'Todo list';
|
||||
|
||||
|
||||
CREATE SEQUENCE todo_list_tl_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER TABLE todo_list ALTER COLUMN tl_id SET DEFAULT nextval('todo_list_tl_id_seq'::regclass);
|
||||
|
||||
|
||||
ALTER TABLE ONLY todo_list ADD CONSTRAINT todo_list_pkey PRIMARY KEY (tl_id);
|
||||
|
||||
update version set val=49;
|
||||
|
||||
commit;
|
||||
|
||||
23
html/admin/sql/patch/upgrade49.sql
Normal file
23
html/admin/sql/patch/upgrade49.sql
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
begin;
|
||||
alter table jnt_fic_attr add column jnt_order int;
|
||||
update jnt_fic_attr set jnt_order = 1;
|
||||
alter table jnt_fic_attr alter jnt_order set not null;
|
||||
update jnt_fic_attr set jnt_order = 4 where ad_id=5;
|
||||
update jnt_fic_attr set jnt_order = 120 where ad_id=6;
|
||||
update jnt_fic_attr set jnt_order = 130 where ad_id=7;
|
||||
update jnt_fic_attr set jnt_order = 20 where ad_id=9;
|
||||
update jnt_fic_attr set jnt_order = 30 where ad_id=13;
|
||||
update jnt_fic_attr set jnt_order = 40 where ad_id=14;
|
||||
update jnt_fic_attr set jnt_order = 70 where ad_id=16;
|
||||
update jnt_fic_attr set jnt_order = 80 where ad_id=17;
|
||||
update jnt_fic_attr set jnt_order = 90 where ad_id=18;
|
||||
update jnt_fic_attr set jnt_order = 400 where ad_id=23;
|
||||
update jnt_fic_attr set jnt_order = 60 where ad_id=24;
|
||||
update jnt_fic_attr set jnt_order = 100 where ad_id=26;
|
||||
update jnt_fic_attr set jnt_order = 110 where ad_id=27;
|
||||
update jnt_fic_attr set jnt_order = 50 where ad_id=15;
|
||||
update jnt_fic_attr set jnt_order = 30 where ad_id=5;
|
||||
update jnt_fic_attr set jnt_order = 0 where ad_id=1;
|
||||
|
||||
update version set val=50;
|
||||
commit;
|
||||
57
html/admin/sql/patch/upgrade50.sql
Normal file
57
html/admin/sql/patch/upgrade50.sql
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
begin;
|
||||
|
||||
CREATE OR REPLACE FUNCTION insert_jrnx(p_date character varying, p_montant numeric, p_poste poste_comptable, p_grpt integer, p_jrn_def integer, p_debit boolean, p_tech_user text, p_tech_per integer, p_qcode text)
|
||||
RETURNS void AS
|
||||
$BODY$
|
||||
declare
|
||||
sCode varchar;
|
||||
nCount_qcode integer;
|
||||
begin
|
||||
sCode=trim(p_qcode);
|
||||
|
||||
-- if p_qcode is empty try to find one
|
||||
if length(sCode) = 0 or p_qcode is null then
|
||||
|
||||
select count(*) into nCount_qcode
|
||||
from vw_poste_qcode where j_poste=p_poste::text;
|
||||
-- if we find only one q_code for a accountancy account
|
||||
-- then retrieve it
|
||||
if nCount_qcode = 1 then
|
||||
select j_qcode::text into sCode
|
||||
from vw_poste_qcode where j_poste=p_poste::text;
|
||||
else
|
||||
sCode=NULL;
|
||||
end if;
|
||||
|
||||
end if;
|
||||
|
||||
insert into jrnx
|
||||
(
|
||||
j_date,
|
||||
j_montant,
|
||||
j_poste,
|
||||
j_grpt,
|
||||
j_jrn_def,
|
||||
j_debit,
|
||||
j_tech_user,
|
||||
j_tech_per,
|
||||
j_qcode
|
||||
) values
|
||||
(
|
||||
to_date(p_date,'DD.MM.YYYY'),
|
||||
p_montant,
|
||||
p_poste,
|
||||
p_grpt,
|
||||
p_jrn_def,
|
||||
p_debit,
|
||||
p_tech_user,
|
||||
p_tech_per,
|
||||
sCode
|
||||
);
|
||||
|
||||
return;
|
||||
end;
|
||||
$BODY$
|
||||
LANGUAGE 'plpgsql' VOLATILE;
|
||||
update version set val=51;
|
||||
commit;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
begin;
|
||||
--make sure that p_start < p_end
|
||||
ALTER TABLE parm_periode ADD CHECK (p_end >= p_start);
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
|
||||
|
||||
update version set val=7;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
begin;
|
||||
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
insert into tva_rate values (5,'0%',0, 'Pas soumis à la TVA',null);
|
||||
|
||||
update fiche_def_ref set frd_class_base=2400 where frd_id=7;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
begin;
|
||||
|
||||
insert into action values (21,'Import et export des écritures d''ouverture');
|
||||
insert into action values (21,'Import et export des écritures d''ouverture');
|
||||
create sequence s_quantity;
|
||||
|
||||
|
||||
|
|
@ -100,11 +100,11 @@ $trim$ language plpgsql;
|
|||
|
||||
create trigger trim_quote before insert or update on import_tmp FOR EACH ROW execute procedure trim_cvs_quote();
|
||||
alter sequence s_attr_def restart 20;
|
||||
insert into attr_def(ad_text) values ('Partie fiscalement non déductible');
|
||||
insert into attr_def(ad_text) values ('TVA non déductible');
|
||||
insert into attr_def(ad_text) values ('TVA non déductible récupérable par l''impôt');
|
||||
insert into tmp_pcmn( pcm_val,pcm_lib,pcm_val_parent,pcm_country) select distinct 6190,'TVA récupérable par l''impôt',61,'BE' from tmp_pcmn where pcm_country='BE';
|
||||
insert into tmp_pcmn( pcm_val,pcm_lib,pcm_val_parent,pcm_country) select distinct 6740,'Dépense non admise',67,'BE' from tmp_pcmn where pcm_country='BE' and not exists (select pcm_val from tmp_pcmn where pcm_val=6740);
|
||||
insert into attr_def(ad_text) values ('Partie fiscalement non déductible');
|
||||
insert into attr_def(ad_text) values ('TVA non déductible');
|
||||
insert into attr_def(ad_text) values ('TVA non déductible récupérable par l''impôt');
|
||||
insert into tmp_pcmn( pcm_val,pcm_lib,pcm_val_parent,pcm_country) select distinct 6190,'TVA récupérable par l''impôt',61,'BE' from tmp_pcmn where pcm_country='BE';
|
||||
insert into tmp_pcmn( pcm_val,pcm_lib,pcm_val_parent,pcm_country) select distinct 6740,'Dépense non admise',67,'BE' from tmp_pcmn where pcm_country='BE' and not exists (select pcm_val from tmp_pcmn where pcm_val=6740);
|
||||
-- Change for Stan alter table tmp_pcmn alter pcm_val type text;
|
||||
update version set val=9;
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ include_once("ac_common.php");
|
|||
include_once("postgres.php");
|
||||
require_once ('class_dossier.php');
|
||||
if ( ! file_exists('authorized_debug') ) {
|
||||
echo "Pour pouvoir utiliser ce fichier vous devez créer un fichier nomme authorized_debug
|
||||
echo "Pour pouvoir utiliser ce fichier vous devez créer un fichier nomme authorized_debug
|
||||
dans le repertoire html du server";
|
||||
exit();
|
||||
|
||||
|
|
|
|||
|
|
@ -74,10 +74,10 @@ $b=$a->GetRow('1','9999','off');
|
|||
|
||||
|
||||
|
||||
echo 'class_jrn il y a '.count($b[0]).' données trouvée<br>';
|
||||
echo 'class_jrn il y a '.count($b[0]).' données trouvée<br>';
|
||||
|
||||
$b=$a->GetRow('1','9999','on');
|
||||
echo 'Class_jrn il y a '.sizeof($b[0]).' données Centralisees trouvée<br>';
|
||||
echo 'Class_jrn il y a '.sizeof($b[0]).' données Centralisees trouvée<br>';
|
||||
echo '<h1> $a->GetRowSimple</H1>';
|
||||
$per_from=67;$per_to=70;$jrn=3;
|
||||
$c=0;
|
||||
|
|
@ -99,7 +99,7 @@ foreach ($b as $line) {
|
|||
echo '<hr>';
|
||||
}
|
||||
|
||||
echo "Il y a $c données trouvées par GetRowSimple ";
|
||||
echo "Il y a $c données trouvées par GetRowSimple ";
|
||||
$s=sql_filter_per($cn,$per_from,$per_to,'p_id','jr_tech_per');
|
||||
$count_rowS=GetArray($cn,"select count(*) as mcount from jrn where $s and jr_def_id=$jrn");
|
||||
if ( $c != $count_rowS[0]['mcount'] ) {
|
||||
|
|
@ -138,11 +138,11 @@ echo '<h1>Poste->GetRow</h1>';
|
|||
$a=new poste($cn,4511); // grand livre
|
||||
$b=$a->GetRow('1','9999');
|
||||
|
||||
echo 'class_poste il y a '.sizeof($b[0]).' données trouvée<br>';
|
||||
echo 'class_poste il y a '.sizeof($b[0]).' données trouvée<br>';
|
||||
|
||||
$a=new Balance($cn,4519); // grand livre
|
||||
$b=$a->GetRow('1','9999');
|
||||
echo 'class_balance il y a '.sizeof($b).' données trouvée<br>';
|
||||
echo 'class_balance il y a '.sizeof($b).' données trouvée<br>';
|
||||
|
||||
echo_debug('Testing echo_debug');
|
||||
echo_error('Testing echo_error');
|
||||
|
|
|
|||
|
|
@ -51,29 +51,33 @@ echo "<div>".MenuAdmin()."</div>";
|
|||
?>
|
||||
<DIV >
|
||||
<?php
|
||||
if ( isset ($_GET["action"]) ) {
|
||||
if ( $_GET["action"]=="user_mgt" )
|
||||
if ( isset ($_REQUEST["action"]) ) {
|
||||
if ( $_REQUEST["action"]=="user_mgt" )
|
||||
{
|
||||
//----------------------------------------------------------------------
|
||||
// User management
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
require_once("user.inc.php");
|
||||
}
|
||||
// action=user_mgt
|
||||
if ( $_GET["action"]=="dossier_mgt")
|
||||
if ( $_REQUEST["action"]=="dossier_mgt")
|
||||
{
|
||||
//-----------------------------------------------------------------------
|
||||
// action = dossier_mgt
|
||||
//-----------------------------------------------------------------------
|
||||
require_once("dossier.inc.php");
|
||||
}
|
||||
if ( $_GET["action"] == "modele_mgt" )
|
||||
if ( $_REQUEST["action"] == "modele_mgt" )
|
||||
{
|
||||
//-----------------------------------------------------------------------
|
||||
// Template Management
|
||||
//-----------------------------------------------------------------------
|
||||
require_once("modele.inc.php");
|
||||
} // action is set
|
||||
if ( $_REQUEST['action'] == 'restore') {
|
||||
// Backup and restaure folders
|
||||
require_once("restore.inc.php");
|
||||
}
|
||||
}// action = modele_mgt
|
||||
|
||||
?>
|
||||
|
|
|
|||
68
html/ajax_report.php
Normal file
68
html/ajax_report.php
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision: 1992 $ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief Fid for the ajax request for cards
|
||||
*/
|
||||
|
||||
|
||||
require_once ("constant.php");
|
||||
require_once ("postgres.php");
|
||||
require_once ("user_common.php");
|
||||
require_once ("debug.php");
|
||||
require_once('class_dossier.php');
|
||||
require_once('class_acc_report.php');
|
||||
if ( ! isset($_GET['gDossier']) ||
|
||||
! isset($_GET['f']) )
|
||||
{
|
||||
$a='{"answer":"nok"}';
|
||||
header("Content-type: text/html; charset: utf8",true);
|
||||
print $a;
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$gDossier=dossier::id();
|
||||
if ( ! is_dir('tmp') ) {
|
||||
mkdir ('tmp');
|
||||
}
|
||||
|
||||
$cn=DbConnect($gDossier);
|
||||
if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1)
|
||||
{
|
||||
$rap=new Acc_Report($cn,$_GET['f']);
|
||||
|
||||
$name=tempnam('tmp','report_').'.bin';
|
||||
$file= fopen($name,"a+");
|
||||
$rap->export($file);
|
||||
fclose ($file);
|
||||
$name=dirname($_SERVER['REQUEST_URI']).DIRECTORY_SEPARATOR.$name;
|
||||
|
||||
$a='{"answer":"ok","link":"'.$name.'"}';
|
||||
|
||||
}
|
||||
else
|
||||
$a='{"answer":"nok"}';
|
||||
echo_debug("fid.php",__LINE__,"Answer is \n $a");
|
||||
header("Content-type: text/html; charset: utf8",true);
|
||||
print $a;
|
||||
?>
|
||||
|
|
@ -136,7 +136,7 @@ if ($p_id != -1 ) { // A
|
|||
if ( $p_id != -1 ) { //B
|
||||
// Test whether date of the operation is in a closed periode
|
||||
// get the period_id
|
||||
$p=ExecSql($cn,"select jr_tech_per from jrn where jr_grpt_id=".$_REQUEST['jrn_op']);
|
||||
$p=ExecSqlParam($cn,"select jr_tech_per from jrn where jr_grpt_id=$1",array($_REQUEST['jrn_op']));
|
||||
$period_id=pg_fetch_result($p,0,0);
|
||||
// thanks jrn_op (jrn.jr_id) we find out the concerned ledger
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ if ($p_id != -1 ) { // A
|
|||
from
|
||||
jrn
|
||||
where jr_grpt_id=".$_POST['p_id'];
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
// Check return code
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -187,7 +187,7 @@ if ($p_id != -1 ) { // A
|
|||
from
|
||||
jrnx
|
||||
where j_grpt=".$_POST['p_id'];
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
// Check return code
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -196,7 +196,7 @@ if ($p_id != -1 ) { // A
|
|||
// Mark the operation invalid into the ledger
|
||||
// to avoid to nullify twice the same op.
|
||||
$sql="update jrn set jr_comment='Annule : '||jr_comment where jr_grpt_id=".$_POST['p_id'];
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
// Check return code
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -206,16 +206,16 @@ if ($p_id != -1 ) { // A
|
|||
|
||||
|
||||
$Res=ExecSql($cn,"update quant_sold set ".
|
||||
" qs_valid='A' where qs_internal='".$l_array['jr_internal']."'",
|
||||
false);
|
||||
" qs_valid='A' where qs_internal='".$l_array['jr_internal']."'"
|
||||
);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
||||
|
||||
$Res=ExecSql($cn,"update quant_purchase set ".
|
||||
" qp_valid='A' where qp_internal='".$l_array['jr_internal']."'",
|
||||
false);
|
||||
" qp_valid='A' where qp_internal='".$l_array['jr_internal']."'"
|
||||
);
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
||||
|
|
@ -235,7 +235,7 @@ if ($p_id != -1 ) { // A
|
|||
// also in the stock table
|
||||
$sql="delete from stock_goods where sg_id = any ( select sg_id
|
||||
from stock_goods natural join jrnx where j_grpt=".$_POST['p_id'].")";
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
// Check return code
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -284,7 +284,7 @@ self.opener.RefreshMe();
|
|||
// delete from the rapt table
|
||||
$sql="delete from jrn_rapt where jr_id = any (select jr_id from jrn ".
|
||||
" where jr_grpt_id = ".$_POST['p_id'].")";
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -292,16 +292,16 @@ self.opener.RefreshMe();
|
|||
|
||||
|
||||
$Res=ExecSql($cn,"delete from quant_sold ".
|
||||
" where qs_internal='".$l_array['jr_internal']."'",
|
||||
false);
|
||||
" where qs_internal='".$l_array['jr_internal']."'"
|
||||
);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
||||
|
||||
$Res=ExecSql($cn,"delete from quant_purchase ".
|
||||
" where qp_internal='".$l_array['jr_internal']."'",
|
||||
false);
|
||||
" where qp_internal='".$l_array['jr_internal']."'"
|
||||
);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
|
@ -318,27 +318,27 @@ self.opener.RefreshMe();
|
|||
// delete from the stock table
|
||||
$sql="delete from stock_goods where sg_id = any ( select sg_id
|
||||
from stock_goods natural join jrnx where j_grpt=".$_POST['p_id'].")";
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
// delete from CA
|
||||
$sql="delete from operation_analytique where j_id in (select j_id from";
|
||||
$sql.=" jrnx where j_grpt=".$_POST['p_id'].")";
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
||||
// delete from jrnx & jrn
|
||||
$sql="delete from jrnx where j_grpt=".$_POST['p_id'];
|
||||
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__."sql a echoue [ $sql ]"));
|
||||
|
||||
// build the sql stmt for jrn
|
||||
$sql= "delete from jrn where jr_grpt_id=".$_POST['p_id'];
|
||||
$Res=ExecSql($cn,$sql,false);
|
||||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
if ( $Res == false)
|
||||
throw (new Exception(__FILE__.__LINE__." sql a echoue [ $sql ]"));
|
||||
|
|
|
|||
75
html/backup.php
Normal file
75
html/backup.php
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
require_once("constant.php");
|
||||
require_once("postgres.php");
|
||||
require_once("class_widget.php");
|
||||
require_once ("class_user.php");
|
||||
require_once ("debug.php");
|
||||
|
||||
$rep=DbConnect();
|
||||
$User=new User($rep);
|
||||
$User->Check();
|
||||
|
||||
|
||||
if ($User->admin != 1) {
|
||||
echo "<script>alert('"."Vous n\'êtes pas administrateur"."') </script>";
|
||||
return;
|
||||
}
|
||||
|
||||
/*!\file
|
||||
* \brief Make and restore backup
|
||||
*/
|
||||
if ( isset ($_REQUEST['sa']) ) {
|
||||
if ( ! isset ($_REQUEST['d']) ||
|
||||
! isset($_REQUEST['t']))
|
||||
{
|
||||
echo "Erreur : paramètre manquant ";
|
||||
exit();
|
||||
}
|
||||
|
||||
$sa=$_REQUEST['sa'];
|
||||
// backup
|
||||
if ( $sa=='b') {
|
||||
$cmd=escapeshellcmd (PG_DUMP);
|
||||
putenv("PGPASSWORD=".phpcompta_password);
|
||||
putenv("PGUSER=".phpcompta_user);
|
||||
|
||||
if ( $_REQUEST['t'] == 'd' ) {
|
||||
$database=domaine."dossier".$_REQUEST['d'];
|
||||
$args= " -Fc -Z9 -p ".phpcompta_psql_port." ".$database;
|
||||
header('Content-type: application/octet');
|
||||
header('Content-Disposition:attachment;filename="'.$database.'.bin"',FALSE);
|
||||
|
||||
passthru ($cmd.$args,$a);
|
||||
|
||||
}
|
||||
|
||||
if ( $_REQUEST['t'] == 'm' ) {
|
||||
$database=domaine."mod".$_REQUEST['d'];
|
||||
$args= " -Fc -Z9 -p ".phpcompta_psql_port." ".$database;
|
||||
header('Content-type: bin/x-application');
|
||||
header('Content-Disposition: attachment;filename="'.$database.'.bin"',FALSE);
|
||||
$a=passthru ($cmd.$args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ $t_cent="";
|
|||
//$per=join(',',$periode);
|
||||
if ( isset($_POST['central']) ) {
|
||||
$bal->central='Y';
|
||||
$t_cent="centralisée";
|
||||
$t_cent="centralisée";
|
||||
}
|
||||
else
|
||||
$bal->central='N';
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ if ( $_POST['action'] == 'delete') {
|
|||
$obj->bd_id=$bd_id;
|
||||
$obj->delete_by_bd_id();
|
||||
}
|
||||
header("Content-type: application/json charset=\"ISO8859-1\"",true);
|
||||
header("Content-type: application/json charset=\"utf8\"",true);
|
||||
echo '{"bd_id":"0","form_id":"'.$form_id.'"}';
|
||||
|
||||
}
|
||||
|
|
@ -60,7 +60,7 @@ if ( $_POST['action'] == 'save' ) {
|
|||
$obj->update();
|
||||
|
||||
}
|
||||
header("Content-type: application/json charset=\"ISO8859-1\"",true);
|
||||
header("Content-type: application/json charset=\"utf8\"",true);
|
||||
echo '{"bd_id":"'.$obj->bd_id.'","form_id":"'.$form_id.'"}';
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ echo '<TABLE>';
|
|||
echo '<TR>';
|
||||
|
||||
|
||||
echo '<TD> Libellé ou poste comptable</TD>';
|
||||
echo '<TD> Libellé ou poste comptable</TD>';
|
||||
echo '<TD> contient </TD>';
|
||||
if ( ! isset ($p_comment) ) $p_comment="";
|
||||
echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD></TR>';
|
||||
|
|
|
|||
|
|
@ -79,16 +79,17 @@ $p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:"";
|
|||
echo '<div style="float:left">';
|
||||
echo ShowItem(array(
|
||||
array('?p_action=client&'.$str_dossier,'Client'),
|
||||
array('?p_action=facture&'.$str_dossier,'Vente/Facture'),
|
||||
array('?p_action=ven&'.$str_dossier,'Vente/Facture'),
|
||||
array('?p_action=fournisseur&'.$str_dossier,'Fournisseur'),
|
||||
array('?p_action=depense&'.$str_dossier,'Achat/Dépense'),
|
||||
array('?p_action=ach&'.$str_dossier,'Achat/Dépense'),
|
||||
array('?p_action=bank&'.$str_dossier,'Banque'),
|
||||
array('?p_action=quick_writing&'.$str_dossier,'Ecriture directe'),
|
||||
array('?p_action=impress&'.$str_dossier,'Impression'),
|
||||
array('?p_action=stock&'.$str_dossier,'Stock'),
|
||||
array('?p_action=bank&'.$str_dossier,'Banque'),
|
||||
array('?p_action=fiche&'.$str_dossier,'Fiche'),
|
||||
array('?p_action=periode&'.$str_dossier,'Ferm. Periode'),
|
||||
array('?p_action=central&'.$str_dossier,'Centralisation'),
|
||||
array('?p_action=defreport&'.$str_dossier,'Rapport'),
|
||||
array('?p_action=contact&'.$str_dossier,'Contact'),
|
||||
array('?p_action=suivi_courrier&'.$str_dossier,'Suivi Courrier'),
|
||||
),
|
||||
|
|
@ -111,6 +112,7 @@ if ( $p_action == "pref" )
|
|||
{
|
||||
require_once("pref.inc.php");
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
// p_action == client
|
||||
//-----------------------------------------------------
|
||||
|
|
@ -124,6 +126,7 @@ if ( $p_action == 'fournisseur')
|
|||
{
|
||||
require_once("supplier.inc.php");
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
// action
|
||||
if ( $p_action == 'suivi_courrier')
|
||||
|
|
@ -133,9 +136,9 @@ if ( $p_action == 'suivi_courrier')
|
|||
//-----------------------------------------------------
|
||||
// p_action == facture
|
||||
//-----------------------------------------------------
|
||||
if ( $p_action == "facture" )
|
||||
if ( $p_action == "ven" )
|
||||
{
|
||||
require_once("facture.inc.php");
|
||||
require_once("compta_ven.inc.php");
|
||||
}
|
||||
//-----------------------------------------------------
|
||||
// Contact
|
||||
|
|
@ -145,15 +148,16 @@ if ( $p_action == 'contact')
|
|||
}
|
||||
//-----------------------------------------------------
|
||||
// Expense
|
||||
if ( $p_action == 'depense')
|
||||
if ( $p_action == 'ach')
|
||||
{
|
||||
require_once("depense.inc.php");
|
||||
require_once("compta_ach.inc.php");
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
// Banque
|
||||
if ( $p_action == 'bank')
|
||||
{
|
||||
require_once("bank.inc.php");
|
||||
require_once("compta_fin.inc.php");
|
||||
}
|
||||
if ( $p_action=='quick_writing') {
|
||||
require_once ('quick_writing.inc.php');
|
||||
|
|
@ -183,3 +187,9 @@ if ( $p_action=='periode') {
|
|||
if ( $p_action=='central') {
|
||||
require_once ('central.inc.php');
|
||||
}
|
||||
//-----------------------------------------------------
|
||||
// Expense
|
||||
if ( $p_action == 'defreport')
|
||||
{
|
||||
require_once("report.inc.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,12 +21,31 @@
|
|||
/* $Revision$ */
|
||||
|
||||
/*! \file
|
||||
* \brief Main page for the printing
|
||||
* \brief Main page for accountancy
|
||||
*/
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
include_once ("ac_common.php");
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
$action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:'';
|
||||
$use_html=1;
|
||||
//----------------------------------------------------------------------
|
||||
/*!\todo find a way to improve performance : the calendar must not
|
||||
* always be loaded and takes at least 50KB
|
||||
*/
|
||||
if ( $action == 'ven' && ! isset ($_REQUEST['sa']) )
|
||||
$use_html=1;
|
||||
|
||||
if ( ! isset ($_SESSION['g_theme'])) {
|
||||
echo '<h2 class="error"> Vous êtes déconnecté</h2>';
|
||||
exit();
|
||||
}
|
||||
if ( $action == 'ven' && isset ($_REQUEST['sa']) && in_array($_REQUEST['sa'],array('n','p') ))
|
||||
$use_html=1;
|
||||
if ( $use_html == 1)
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
else
|
||||
html_min_page_start($_SESSION['g_theme']);
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
||||
include_once ("postgres.php");
|
||||
|
|
@ -41,7 +60,7 @@ $User->Check();
|
|||
require_once ("check_priv.php");
|
||||
include_once ("user_menu.php");
|
||||
echo '<div class="u_tmenu">';
|
||||
$action=$_REQUEST['p_action'];
|
||||
|
||||
echo ShowMenuCompta("user_advanced.php?".dossier::get());
|
||||
|
||||
echo '</div>';
|
||||
|
|
@ -56,6 +75,7 @@ if ( $action == 'impress' ) {
|
|||
|
||||
require_once('impress.inc.php');
|
||||
}
|
||||
|
||||
if ( $action == 'fiche') {
|
||||
|
||||
require_once('fiche.inc.php');
|
||||
|
|
@ -67,5 +87,20 @@ if ( $action == 'stock') {
|
|||
if ( $action=='quick_writing') {
|
||||
require_once ('quick_writing.inc.php');
|
||||
}
|
||||
if ( $action == 'gl' ) {
|
||||
require_once ('user_action_gl.php');
|
||||
}
|
||||
if ( $action == 'ven' ||
|
||||
$action == 'client') {
|
||||
require_once ('compta_ven.inc.php');
|
||||
}
|
||||
if ( $action == 'ach' ||
|
||||
$action == 'fournisseur') {
|
||||
require_once ('compta_ach.inc.php');
|
||||
}
|
||||
if ( $action == 'bank') {
|
||||
require_once ('compta_fin.inc.php');
|
||||
}
|
||||
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
|
|||
67
html/compute.php
Normal file
67
html/compute.php
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief respond ajax request, the get contains
|
||||
* the value :
|
||||
* - c for qcode
|
||||
* - t for tva_id
|
||||
* - p for price
|
||||
* - q for quantity
|
||||
* - n for number of the ctrl
|
||||
* - gDossier
|
||||
* - PHPSESSID
|
||||
* Must return at least tva, htva and tvac
|
||||
* \todo must add the security
|
||||
*/
|
||||
|
||||
require_once ('constant.php');
|
||||
require_once ('postgres.php');
|
||||
require_once ('debug.php');
|
||||
require_once ('class_acc_compute.php');
|
||||
require_once('class_dossier.php');
|
||||
require_once ('class_acc_tva.php');
|
||||
|
||||
// Check if the needed field does exist
|
||||
extract ($_GET);
|
||||
foreach (array('t','c','p','q','n','gDossier') as $a) {
|
||||
if ( ! isset (${$a}) ) { echo "error $a is not set "; exit();}
|
||||
}
|
||||
$cn=DbConnect(dossier::id());
|
||||
|
||||
// Retrieve the rate of vat
|
||||
|
||||
$tva_rate=new Acc_Tva($cn);
|
||||
$tva_rate->set_parameter('id',$t);
|
||||
$tva_rate->load();
|
||||
|
||||
$total=new Acc_Compute();
|
||||
bcscale(4);
|
||||
$amount=bcmul($p,$q);
|
||||
$total->set_parameter('amount',$amount);
|
||||
$total->set_parameter('amount_vat_rate',$tva_rate->get_parameter('rate'));
|
||||
$total->compute_vat();
|
||||
$tvac=bcadd($total->get_parameter('amount_vat'),$amount);
|
||||
header("Content-type: text/html; charset: utf8",true);
|
||||
echo '{"ctl":"'.$n.'","htva":"'.$amount.'","tva":"'.$total->get_parameter('amount_vat').'","tvac":"'.$tvac.'"}';
|
||||
?>
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ html_page_start($User->theme,'onLoad="window.focus();"');
|
|||
$User->Check();
|
||||
if ($User->admin != 1) {
|
||||
|
||||
print "<H2 class=\"error\"> Désolé mais vous n' êtes pas administrateur</H2>";
|
||||
print "<H2 class=\"error\"> Désolé mais vous n' êtes pas administrateur</H2>";
|
||||
|
||||
html_page_stop();
|
||||
return;
|
||||
|
|
@ -46,9 +46,9 @@ if ( ! isset ($_REQUEST['p_type'] ) ||
|
|||
! isset ($_REQUEST['ob_id']))
|
||||
{
|
||||
print '<H2 CLASS="error">';
|
||||
print "Désolé vous n'avez pas appelé cette fonction avec les bons paramètres";
|
||||
print "Désolé vous n'avez pas appelé cette fonction avec les bons paramètres";
|
||||
print '</H2>';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
return;
|
||||
}
|
||||
$cn=DbConnect();
|
||||
|
|
@ -61,31 +61,31 @@ switch($_REQUEST['p_type'])
|
|||
if ( strlen(trim($name)) == 0 )
|
||||
{
|
||||
echo "<h2 class=\"error\"> $msg inexistant</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
return;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'mod':
|
||||
$msg="modèle";
|
||||
$msg="modèle";
|
||||
$name=getDbValue($cn,"select mod_name from modeledef where mod_id=".$_REQUEST['ob_id']);
|
||||
if ( strlen(trim($name)) == 0 )
|
||||
{
|
||||
echo "<h2 class=\"error\"> $msg inexistant</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
return;
|
||||
}
|
||||
if ( $_REQUEST['ob_id'] < 3 ) {
|
||||
echo "<h2 class=\"error\">Désolé mais vous ne pouvez pas effacer les modèles de base</H2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
echo "<h2 class=\"error\">Désolé mais vous ne pouvez pas effacer les modèles de base</H2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
return;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
print '<H2 CLASS="error">';
|
||||
print "Désolé mais que voulez-vous effacer ? ";
|
||||
print "Désolé mais que voulez-vous effacer ? ";
|
||||
print '</H2>';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
return;
|
||||
|
||||
}
|
||||
|
|
@ -106,17 +106,17 @@ if ( isset($_POST['remove']) )
|
|||
ob_end_clean();
|
||||
|
||||
echo "<h2 class=\"error\">
|
||||
Base de donnée ".domaine."mod".$_POST['ob_id']." est accèdée, déconnectez-vous d'abord</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
Base de donnée ".domaine."mod".$_POST['ob_id']." est accèdée, déconnectez-vous d'abord</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
exit;
|
||||
}
|
||||
ob_flush();
|
||||
$sql="delete from modeledef where mod_id=".$_POST['ob_id'];
|
||||
ExecSql($cn,$sql);
|
||||
print '<h2 class="info">';
|
||||
print "Voilà le modèle $name est effacé";
|
||||
print "Voilà le modèle $name est effacé";
|
||||
print "<h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
break;
|
||||
case 'db':
|
||||
$sql="drop database ".domaine."dossier".$_POST['ob_id'];
|
||||
|
|
@ -125,8 +125,8 @@ if ( isset($_POST['remove']) )
|
|||
ob_end_clean();
|
||||
|
||||
echo "<h2 class=\"error\">
|
||||
Base de donnée ".domaine."mod".$_POST['ob_id']." est accèdée, déconnectez-vous d'abord</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
Base de donnée ".domaine."mod".$_POST['ob_id']." est accèdée, déconnectez-vous d'abord</h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
exit;
|
||||
}
|
||||
ob_flush();
|
||||
|
|
@ -137,20 +137,20 @@ if ( isset($_POST['remove']) )
|
|||
$sql="delete from ac_dossier where dos_id=".$_REQUEST['ob_id'];
|
||||
ExecSql($cn,$sql);
|
||||
print '<h2 class="info">';
|
||||
print "Voilà le modèle $name est effacé";
|
||||
print "Voilà le modèle $name est effacé";
|
||||
print "<h2>";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<h2 class="info">';
|
||||
print "$msg $name n'est pas effacé";
|
||||
print "$msg $name n'est pas effacé";
|
||||
print '</h2>';
|
||||
print "<hr>";
|
||||
print "Vous n'avez pas coché la case";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
print "Vous n'avez pas coché la case";
|
||||
print '<hr><INPUT TYPE="BUTTON" VALUE="Fermez la fenêtre" onclick="window.close();">';
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,12 @@ switch ($m) {
|
|||
case 'pref':
|
||||
get_redirect('user_pref.php?'.dossier::get().$phpsessid);
|
||||
break;
|
||||
case 'home':
|
||||
get_redirect('user_login.php'.$phpsessid);
|
||||
break;
|
||||
case 'access':
|
||||
get_redirect('access.php?'.dossier::get().$phpsessid);
|
||||
break;
|
||||
|
||||
case 'logout':
|
||||
get_redirect('logout.php');
|
||||
|
|
|
|||
|
|
@ -1,199 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
/*!\file
|
||||
* \brief for reporting the saldo of account to the next year.
|
||||
*/
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
include_once ("ac_common.php");
|
||||
require_once('class_widget.php');
|
||||
require_once('class_acc_account_ledger.php');
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
||||
include_once ("postgres.php");
|
||||
/* Admin. Dossier */
|
||||
include_once ("class_user.php");
|
||||
$cn=DbConnect($gDossier);
|
||||
$User=new User($cn);
|
||||
$User->Check();
|
||||
|
||||
include_once ("check_priv.php");
|
||||
|
||||
include_once ("user_menu.php");
|
||||
echo '<div class="u_tmenu">';
|
||||
echo ShowMenuCompta("user_advanced.php?".dossier::get());
|
||||
echo '</div>';
|
||||
// \todo add a check for permission
|
||||
|
||||
|
||||
echo ShowMenuAdvanced(8);
|
||||
|
||||
$User->can_request($cn,EXP_IMP_ECR);
|
||||
|
||||
|
||||
echo '<div class="lmenu">';
|
||||
$str_dossier=dossier::get();
|
||||
echo ShowItem ( array (
|
||||
array ("ecrit_ouv.php?export&".$str_dossier,"Export"),
|
||||
array ("ecrit_ouv.php?import&".$str_dossier,"Import")
|
||||
),'V');
|
||||
echo '</div>';
|
||||
echo '<div class="u_redcontent">';
|
||||
//-----------------------------------------------------
|
||||
//EXPORT
|
||||
////////////////////////////////////////////
|
||||
if ( isset ($_GET['export'])) {
|
||||
// if the year is not set, ask it
|
||||
// ask the exercice and do the export
|
||||
$periode=make_array($cn,"select distinct p_exercice,p_exercice from parm_periode order by p_exercice");
|
||||
echo '<form method="GET" ACTION="export_ouv.php">';
|
||||
$w=new widget('select');
|
||||
$w->table=0;
|
||||
$w->label='Periode';
|
||||
$w->readonly=false;
|
||||
$w->value=$periode;
|
||||
$w->name="p_periode";
|
||||
echo 'Période : '.$w->IOValue();
|
||||
echo widget::submit('export','Export');
|
||||
echo dossier::hidden();
|
||||
echo "</form>";
|
||||
exit(0);
|
||||
}
|
||||
//----------------------------------------------------- IMPORT
|
||||
////////////////////////////////////////////
|
||||
if ( isset ($_GET['import'])) {
|
||||
// show a form to upload the file
|
||||
// that form will parse the file, create an ods operation
|
||||
// and ask you to validate it
|
||||
// if no file is given
|
||||
if ( ! isset ($_REQUEST['p_submit']) ) {
|
||||
?>
|
||||
<FORM NAME="form_detail" enctype="multipart/form-data" ACTION="ecrit_ouv.php?import" METHOD="POST">
|
||||
<?php
|
||||
echo dossier::hidden();
|
||||
|
||||
// TODO propose ODS ledger
|
||||
$ods=make_array($cn,"select jrn_def_id,jrn_def_name from jrn_def where jrn_def_type = 'ODS'");
|
||||
$x=new widget("select");
|
||||
$x->name='p_jrn';
|
||||
$x->value=$ods;
|
||||
echo "Choississez votre journal ".$x->IOValue();
|
||||
|
||||
$w=new widget("file");
|
||||
$w->name='import_file';
|
||||
$w->label='p_file';
|
||||
echo $w->IOValue();
|
||||
echo widget::submit('p_submit','Charger le fichier');
|
||||
?>
|
||||
</FORM>
|
||||
<?php
|
||||
exit(0);
|
||||
} else {
|
||||
require_once("user_form_ods.php");
|
||||
require_once("jrn.php");
|
||||
// a file is given, so we upload it
|
||||
$new_name=tempnam($_ENV['TMP'],'import');
|
||||
if ( strlen ( $_FILES['import_file']['tmp_name']) != 0 ) {
|
||||
if ( move_uploaded_file($_FILES['import_file']['tmp_name'],$new_name) ) {
|
||||
// upload succeed
|
||||
$h_file=fopen($new_name,'r') ;
|
||||
// test if the file is opened
|
||||
if ( $h_file == false) { echo 'Je ne peux ouvrir pas ce fichier';exit(-1);}
|
||||
// Analyze the file and store result into array
|
||||
$valid=false;
|
||||
$end=false;
|
||||
$idx=0;
|
||||
while ( !feof($h_file) ) {
|
||||
|
||||
$line=fgets($h_file);
|
||||
if ( strpos($line,'ATTENTION')===0 ) {
|
||||
echo $line.'<br>';
|
||||
$end=true;
|
||||
continue;
|
||||
}
|
||||
if ( $end ) {
|
||||
echo $line."<br>";
|
||||
continue;
|
||||
}
|
||||
// check if the first line contains the signature
|
||||
if ( $valid )
|
||||
{
|
||||
// skip blank line
|
||||
if (strlen (trim($line)) == 0 ) continue;
|
||||
// put the line into several array with the same index
|
||||
echo_debug('ecrit_ouv',__LINE__," line $line");
|
||||
list($sign,$poste,$label,$amount)=explode(";",$line);
|
||||
$asign[$idx]=$sign; $aposte[$idx]=$poste;$aamount[$idx]=$amount;
|
||||
$alabel[$idx]=$label;
|
||||
$idx++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$valid = strpos($line, "OUVERTURE") !== false;
|
||||
|
||||
}
|
||||
} // read the file
|
||||
// if valid is still false then there is nothing to do
|
||||
if ( ! $valid) { echo 'Aucun enregistrement valide'; return ;}
|
||||
// compose the array for the function FormODS
|
||||
$array_ods['e_comm']='Ecriture d\'ouverture';
|
||||
for ($i=0;$i<$idx;$i++) {
|
||||
$n="e_account$i";
|
||||
$array_ods[$n]=$aposte[$i];
|
||||
$n="e_account".$i."_type";
|
||||
$array_ods[$n]=$asign[$i];
|
||||
$n="e_account".$i."_amount";
|
||||
$array_ods[$n]=$aamount[$i];
|
||||
}
|
||||
// Check if all the poste exist
|
||||
// otherwise create it
|
||||
for ($i=0;$i<$idx;$i++)
|
||||
{
|
||||
|
||||
$p=new Acc_Account_Ledger($cn,$aposte[$i]);
|
||||
|
||||
// if the poste exists then check the next one
|
||||
if ( $p->load() == true ) continue;
|
||||
echo 'Attention creation de '.$p->id.' '.$alabel[$i].'<br>';
|
||||
$sql=sprintf("select account_add(%d,'%s')",
|
||||
$p->id,$alabel[$i]);
|
||||
|
||||
ExecSql($cn,$sql);
|
||||
}
|
||||
|
||||
// submit button in the form
|
||||
$submit='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout Poste">
|
||||
<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Sauver">';
|
||||
$r=FormODS($cn,$_POST['p_jrn'],$User->get_periode(),$submit,
|
||||
$array_ods,false,$idx,$p_saved=false);
|
||||
|
||||
echo $r;
|
||||
echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."<div>";
|
||||
|
||||
}
|
||||
}
|
||||
} // else -> a file is given
|
||||
}// if import
|
||||
// IF import and export are not set then the choice is proposed
|
||||
echo '</div>';
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
@ -45,7 +45,7 @@ $cn=DbConnect($gDossier);
|
|||
$User->can_request($cn,EXP_IMP_ECR);
|
||||
|
||||
if ( !isset ($_GET['p_periode'])) {
|
||||
echo 'Erreur : aucune periode demandée';
|
||||
echo 'Erreur : aucune periode demandée';
|
||||
exit(0);
|
||||
}
|
||||
$sql_from=get_array($cn,"select min(p_id) from parm_periode where p_exercice=".$_GET['p_periode']);
|
||||
|
|
@ -59,7 +59,7 @@ $ret=get_array($cn,"select distinct j_poste::text
|
|||
j_tech_per <= ".$sql_to[0]['max']." and j_poste::text not like '7%'
|
||||
and j_poste::text not like '6%'
|
||||
order by j_poste::text");
|
||||
if ( $ret == null ) {echo 'Rien à exporter'; exit();}
|
||||
if ( $ret == null ) {echo 'Rien à exporter'; exit();}
|
||||
printf ("OUVERTURE\n");
|
||||
// check if the account are balanced
|
||||
$sum=0;
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ $r="";
|
|||
if ( isset ($_POST["add_line"]) ) {
|
||||
$r= '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
$r.= "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
$r.= "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$fiche_def=new fiche_def($cn,$_REQUEST['fd_id']);
|
||||
|
|
@ -114,7 +114,7 @@ if ( isset ($_POST["add_line"]) ) {
|
|||
if ( isset ($_POST["change_name"] ) ) {
|
||||
$r= '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
$r.= "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
$r.= "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$fiche_def=new fiche_def($cn,$_REQUEST['fd_id']);
|
||||
|
|
@ -150,7 +150,7 @@ if ( isset ( $_GET["action"]) ) {
|
|||
$t=false;
|
||||
if ( $write == 0)
|
||||
{
|
||||
echo '<H2 class="info"> Vos changements ne seront pas sauvés</h2>';
|
||||
echo '<H2 class="info"> Vos changements ne seront pas sauvés</h2>';
|
||||
$t=true;
|
||||
}
|
||||
$str="";
|
||||
|
|
@ -196,7 +196,7 @@ if ( isset ( $_GET["action"]) ) {
|
|||
if ($action == "modifier" ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ if ( isset ( $_GET["action"]) ) {
|
|||
if ( sizeof($all) != 0 )
|
||||
{
|
||||
echo '<DIV class="u_redcontent">';
|
||||
echo "Nombre de résultat : ".sizeof($all).'<br>';
|
||||
echo "Nombre de résultat : ".sizeof($all).'<br>';
|
||||
foreach ($all as $f_id){
|
||||
$fiche=new fiche($cn,$f_id['f_id']);
|
||||
echo '<A class="mtitle" href="?p_action=fiche&action=detail&fiche_id='.$f_id['f_id'].
|
||||
|
|
@ -248,7 +248,7 @@ if ( isset ( $_GET["action"]) ) {
|
|||
echo "Recherche :".$w->IOValue('search_text',$search_text);
|
||||
echo widget::submit('submit','Rechercher');
|
||||
echo '</form>';
|
||||
echo "Aucun résultat trouvé";
|
||||
echo "Aucun résultat trouvé";
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
|
@ -259,7 +259,7 @@ if ( isset ( $_GET["action"]) ) {
|
|||
if ( isset ($_POST["fiche"]) && isset ($_POST["add"] ) ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$url=$_SERVER['REQUEST_URI'];
|
||||
|
|
@ -282,7 +282,7 @@ if ( isset ($_POST["fiche"]) && isset ($_POST["add"] ) ) {
|
|||
if (isset($_POST['delete']) ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$fiche=new fiche($cn,$_POST["f_id"]);
|
||||
|
|
@ -300,7 +300,7 @@ if ( isset ($_POST["add_fiche"]) ) {
|
|||
echo '<DIV class="u_redcontent">';
|
||||
|
||||
if ( $write ==0)
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$fiche=new fiche($cn);
|
||||
|
|
@ -318,7 +318,7 @@ if ( isset ($_POST["add_fiche"]) ) {
|
|||
if ( isset ($_POST["update_fiche"]) ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
if ( $write ==0)
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
echo "<h2 class=\"error\"> Pas d'accès </h2>";
|
||||
else
|
||||
{
|
||||
$fiche=new fiche($cn,$_POST['f_id']);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with PHPCOMPTA; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
*/
|
||||
// Auteur Dany De Bontridder ddebontridder@yahoo.fr
|
||||
include_once ("ac_common.php");
|
||||
include_once ("postgres.php");
|
||||
|
|
@ -25,6 +25,10 @@ require_once("class_fiche_def.php");
|
|||
|
||||
/*! \file
|
||||
* \brief Create a new card in a popup window
|
||||
* \note parameter (GET) e_type (deb, cred, filter) if filter is
|
||||
* specified, you can give a p_jrn parameter, otherwise e_type
|
||||
* contains a list of value
|
||||
*
|
||||
*/
|
||||
|
||||
/* $Revision$ */
|
||||
|
|
@ -34,7 +38,7 @@ include_once ("class_user.php");
|
|||
$User=new User($rep);
|
||||
$User->Check();
|
||||
|
||||
html_page_start($User->theme,"onLoad='window.focus();'");
|
||||
html_min_page_start($User->theme,"onLoad='window.focus();'");
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
||||
|
|
@ -56,7 +60,7 @@ foreach ($_GET as $key=>$element) {
|
|||
echo_debug('fiche_new.php',__LINE__,"e_$key =$element<br>");
|
||||
|
||||
}
|
||||
|
||||
echo JS_TVA;
|
||||
function new_fiche($p_cn,$p_type) {
|
||||
$fiche=new fiche($p_cn);
|
||||
$r='<FORM action="fiche_new.php" method="post">';
|
||||
|
|
@ -69,7 +73,7 @@ function new_fiche($p_cn,$p_type) {
|
|||
|
||||
$r.= '<H2 class="info"> '.$fiche_def->label.'<br>Nouveau </H2>';
|
||||
$r.= $fiche->blank($p_type);
|
||||
$r.='<INPUT TYPE="SUBMIT" name="add_fiche" value="Mis à jour">';
|
||||
$r.='<INPUT TYPE="SUBMIT" name="add_fiche" value="Mis à jour">';
|
||||
|
||||
$r.='</FORM>';
|
||||
return $r;
|
||||
|
|
@ -109,11 +113,11 @@ if ( isset($_POST['add_fiche'])) {
|
|||
} else { // We have to find it from the database
|
||||
if ( $e_type == 'deb' ) {
|
||||
$get='jrn_def_fiche_deb';
|
||||
$sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn'];
|
||||
$sql="select $get as fiche from jrn_def where jrn_def_id=$1";
|
||||
}
|
||||
if ( $e_type == 'cred' ) {
|
||||
$get='jrn_def_fiche_cred';
|
||||
$sql="select $get as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn'];
|
||||
$sql="select $get as fiche from jrn_def where jrn_def_id=$1";
|
||||
}
|
||||
if ($e_type=='filter') {
|
||||
|
||||
|
|
@ -121,13 +125,13 @@ if ( isset($_POST['add_fiche'])) {
|
|||
|
||||
$get_deb='jrn_def_fiche_deb';
|
||||
|
||||
$sql="select $get_cred||','||$get_deb as fiche from jrn_def where jrn_def_id=".$_GET['p_jrn'];
|
||||
$sql="select $get_cred||','||$get_deb as fiche from jrn_def where jrn_def_id=$1";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$Res=ExecSql($cn,$sql);
|
||||
$Res=ExecSqlParam($cn,$sql,array($_GET['p_jrn']));
|
||||
|
||||
// fetch it
|
||||
$Max=pg_NumRows($Res);
|
||||
|
|
@ -138,7 +142,7 @@ if ( isset($_POST['add_fiche'])) {
|
|||
// Normally Max must be == 1
|
||||
$list=pg_fetch_array($Res,0);
|
||||
if ( $list['fiche']=="") {
|
||||
echo_warning("Journal mal paramètré");
|
||||
echo_warning("Journal mal paramètré");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -165,7 +169,7 @@ if ( isset($_POST['cat'])) {
|
|||
// recharger avec var. cat
|
||||
if ( sizeof($a)>1 and !isset ($_POST['cat']))
|
||||
{
|
||||
echo "Choix catégories fiche";
|
||||
echo "Choix catégories fiche";
|
||||
echo '<FORM METHOD="POST" ACTION="'.$_SERVER['REQUEST_URI'].'">';
|
||||
echo dossier::hidden();
|
||||
foreach ($a as $element) {
|
||||
|
|
|
|||
|
|
@ -31,14 +31,15 @@ $rep=DbConnect();
|
|||
include_once ("class_user.php");
|
||||
$User=new User($rep);
|
||||
$User->Check();
|
||||
|
||||
echo JS_SEARCH_CARD;
|
||||
echo JS_MINTOOLKIT;
|
||||
//determine focus:
|
||||
if ( isset ( $_GET['search']) )
|
||||
{
|
||||
html_page_start($User->theme,"onLoad=\"window.focus();SetFocus('select0',0)\"");
|
||||
html_min_page_start($User->theme,"onLoad=\"window.focus();SetFocus('select0',0)\"");
|
||||
} else
|
||||
{
|
||||
html_page_start($User->theme,"onLoad=\"window.focus();SetFocus('fic_search',0)\"");
|
||||
html_min_page_start($User->theme,"onLoad=\"window.focus();SetFocus('fic_search',0)\"");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -51,7 +52,7 @@ $cn=DbConnect($gDossier);
|
|||
// Get The priv on the selected folder
|
||||
if ( $User->check_action($cn,FICHE_READ) == 0 ){
|
||||
/* Cannot Access */
|
||||
echo '<h2 class="error"> Vous n\' avez pas accès</h2>';
|
||||
echo '<h2 class="error"> Vous n\' avez pas accès</h2>';
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +70,7 @@ function get_list_fiche($p_cn,$get,$p_jrn)
|
|||
// Normally Max must be == 1
|
||||
$list=pg_fetch_array($Res,0);
|
||||
if ( $list['fiche']=="") {
|
||||
echo_warning("Journal mal paramètré");
|
||||
echo_warning("Journal mal paramètré");
|
||||
exit();
|
||||
}
|
||||
$list_fiche=$list['fiche'];
|
||||
|
|
@ -79,12 +80,18 @@ function get_list_fiche($p_cn,$get,$p_jrn)
|
|||
<script language="javascript">
|
||||
function SetData (name_ctl,value,value_2,value_3,value_4,value_5,value_6) {
|
||||
self.opener.SetData(name_ctl,value,value_2,value_3,value_4,value_5,value_6);
|
||||
window.close();
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$cn=DbConnect($gDossier);
|
||||
$r="";
|
||||
$add_card=new widget('button');
|
||||
$add_card->javascript=sprintf("NewCard('%s','%s','%s')",
|
||||
$_REQUEST['PHPSESSID'],
|
||||
$_GET['type'],
|
||||
"fic_search");
|
||||
$add_card->label="Ajout d'une fiche";
|
||||
|
||||
foreach ($_GET as $key=>$element) {
|
||||
// The value are e_name e_type e_PHPSESSID
|
||||
|
|
@ -95,9 +102,11 @@ foreach ($_GET as $key=>$element) {
|
|||
$e_fic_search=(isset ($_REQUEST['fic_search']))?$_REQUEST['fic_search']:"";
|
||||
|
||||
$r.="<FORM METHOD=\"GET\" >";
|
||||
$r.="Recherche : ".'<INPUT TYPE="TEXT" NAME="fic_search" VALUE="'.$e_fic_search.'">';
|
||||
$r.="Recherche : ".'<INPUT TYPE="TEXT" id="fic_search" NAME="fic_search" VALUE="'.$e_fic_search.'">';
|
||||
$r.='<INPUT TYPE="submit" name="search" value="Go">';
|
||||
|
||||
if ( isset ($_REQUEST['p_jrn']))
|
||||
echo widget::hidden('p_jrn',$_REQUEST ['p_jrn']);
|
||||
echo dossier::hidden();
|
||||
$r.="<div>";
|
||||
echo $r;
|
||||
$r="";
|
||||
|
|
@ -150,8 +159,7 @@ if (
|
|||
// if e_type contains a list of value for filtering on fiche_def_ref.frd_id
|
||||
else{
|
||||
$list_fiche=$e_type;
|
||||
$sql="select * from vw_fiche_attr where frd_id in ( $list_fiche )";
|
||||
// $sql="select * from vw_fiche_attr ";
|
||||
$sql="select * from vw_fiche_attr where fd_id in ( $list_fiche )";
|
||||
}
|
||||
|
||||
// e_fic_search contains the pattern
|
||||
|
|
@ -166,7 +174,8 @@ if (
|
|||
|
||||
// Test whether rows are returned
|
||||
if ( ($Max = pg_NumRows($Res) ) == 0 ) {
|
||||
echo_warning("Pas de fiche trouvée");
|
||||
echo_warning("Pas de fiche trouvée");
|
||||
echo $add_card->IOValue();
|
||||
return;
|
||||
}
|
||||
// Show the cards
|
||||
|
|
@ -212,6 +221,6 @@ echo $r;
|
|||
?>
|
||||
|
||||
<?php
|
||||
|
||||
echo $add_card->IOValue();
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
|
|||
21
html/fid.php
21
html/fid.php
|
|
@ -36,16 +36,16 @@ echo_debug('fid.php',__LINE__,"Recherche fid.php".$_GET["FID"]);
|
|||
$cn=DbConnect($gDossier);
|
||||
if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1)
|
||||
{
|
||||
$d=$_GET['d'];
|
||||
$jrn=$_GET['j'];
|
||||
$d=FormatString($_GET['d']);
|
||||
$jrn=FormatString($_GET['j']);
|
||||
|
||||
switch ($d) {
|
||||
case 'cred':
|
||||
$filter_jrn=getDbValue($cn,"select jrn_def_fiche_cred from jrn_def where jrn_def_id=$jrn");
|
||||
$filter_jrn=getDbValue($cn,"select jrn_def_fiche_cred from jrn_def where jrn_def_id=$1",array($jrn));
|
||||
$filter_card="and fd_id in ($filter_jrn)";
|
||||
break;
|
||||
case 'deb':
|
||||
$filter_jrn=getDbValue($cn,"select jrn_def_fiche_deb from jrn_def where jrn_def_id=$jrn");
|
||||
$filter_jrn=getDbValue($cn,"select jrn_def_fiche_deb from jrn_def where jrn_def_id=$1",array($jrn));
|
||||
$filter_card="and fd_id in ($filter_jrn)";
|
||||
break;
|
||||
case 'all':
|
||||
|
|
@ -56,7 +56,7 @@ if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1)
|
|||
|
||||
$get_deb='jrn_def_fiche_deb';
|
||||
|
||||
$filter_jrn=getDbValue($cn,"select $get_cred||','||$get_deb as fiche from jrn_def where jrn_def_id=$jrn");
|
||||
$filter_jrn=getDbValue($cn,"select $get_cred||','||$get_deb as fiche from jrn_def where jrn_def_id=$1",array($jrn));
|
||||
|
||||
$filter_card="and fd_id in ($filter_jrn)";
|
||||
break;
|
||||
|
|
@ -64,11 +64,12 @@ if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1)
|
|||
$filter_card="and frd_id in ($d)";
|
||||
}
|
||||
|
||||
|
||||
$array=get_array($cn,"select vw_name,vw_addr,vw_cp,vw_buy,vw_sell,tva_id
|
||||
$sql="select vw_name,vw_addr,vw_cp,vw_buy,vw_sell,tva_id
|
||||
from vw_fiche_attr
|
||||
where quick_code=upper('".$_GET['FID']."') $filter_card"
|
||||
);
|
||||
where quick_code=upper($1)". $filter_card;
|
||||
|
||||
$array=get_array($cn,$sql, array($_GET['FID']));
|
||||
|
||||
echo_debug("fid",__LINE__,$array);
|
||||
$name=$array[0]['vw_name']." ".$array[0]['vw_addr']." ".$array[0]['vw_cp'];
|
||||
$sell=$array[0]['vw_sell'] ;
|
||||
|
|
@ -87,6 +88,6 @@ if ( isset($_SESSION['isValid']) && $_SESSION['isValid'] == 1)
|
|||
else
|
||||
$a='{"answer":"nok"}';
|
||||
echo_debug("fid.php",__LINE__,"Answer is \n $a");
|
||||
header("Content-type: text/html; charset: ISO8859-1",true);
|
||||
header("Content-type: text/html; charset: utf8",true);
|
||||
print $a;
|
||||
?>
|
||||
|
|
|
|||
109
html/form.php
109
html/form.php
|
|
@ -1,109 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
/*! \file
|
||||
* \brief handle your own report: create or view report
|
||||
*/
|
||||
include_once ("ac_common.php");
|
||||
include_once ("user_menu.php");
|
||||
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
||||
include_once ("postgres.php");
|
||||
/* Admin. Dossier */
|
||||
$rep=DbConnect();
|
||||
include_once ("class_user.php");
|
||||
$User=new User($rep);
|
||||
$User->Check();
|
||||
|
||||
include_once("form_inc.php");
|
||||
|
||||
include_once ("user_menu.php");
|
||||
echo '<div class="u_tmenu">';
|
||||
echo ShowMenuCompta("user_advanced.php?".dossier::get());
|
||||
echo '</div>';
|
||||
|
||||
include ("check_priv.php");
|
||||
|
||||
$cn=DbConnect($gDossier);
|
||||
echo ShowMenuAdvanced(6);
|
||||
// Get The priv on the selected folder
|
||||
$User->can_request($cn,FORM);
|
||||
|
||||
|
||||
|
||||
|
||||
if ( isset ($_POST["record"] )) {
|
||||
// echo '<DIV class="u_redcontent">';
|
||||
AddForm($cn,$_POST);
|
||||
//echo "</DIV>";
|
||||
}
|
||||
if ( isset ($_POST["del_form"]) ) {
|
||||
// echo '<DIV class="u_redcontent">';
|
||||
DeleteForm($cn,$_POST['fr_id']);
|
||||
// echo "</DIV>";
|
||||
}
|
||||
|
||||
ShowMenuComptaForm();
|
||||
|
||||
if ( isset( $_REQUEST['PHPSESSID'])) {
|
||||
$sessid = $_REQUEST['PHPSESSID'];
|
||||
}
|
||||
|
||||
|
||||
if ( isset ($_GET["action"]) ) {
|
||||
$action=$_GET["action"];
|
||||
if ($action == "add" )
|
||||
{
|
||||
echo '<DIV class="u_redcontent">';
|
||||
EncodeForm(10,$sessid);
|
||||
echo "</DIV>";
|
||||
}
|
||||
if ($action=="view" ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
if ( ! $_GET["fr_id"] ) {
|
||||
echo_error("fr_id n'est pas donné");
|
||||
return;
|
||||
}
|
||||
ViewForm($cn,$sessid,$_GET["fr_id"]);
|
||||
echo "</DIV>";
|
||||
}
|
||||
} // if $_GET
|
||||
if ( isset ($_POST["add_line"]) ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
$line=$_POST["line"];
|
||||
EncodeForm($line+1,$sessid,$_POST);
|
||||
echo "</DIV>";
|
||||
}
|
||||
if ( isset ($_POST["update"]) ) {
|
||||
echo '<DIV class="u_redcontent">';
|
||||
UpdateForm($cn,$_POST);
|
||||
ViewForm($cn,$sessid,$_POST["fr_id"]);
|
||||
|
||||
echo "</DIV>";
|
||||
}
|
||||
|
||||
|
||||
//echo "</DIV>";
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
include_once("ac_common.php");
|
||||
include_once ("postgres.php");
|
||||
include ('class_user.php');
|
||||
require_once("class_rapport.php");
|
||||
require_once("class_acc_report.php");
|
||||
require_once("impress_inc.php");
|
||||
header('Content-type: application/csv');
|
||||
header('Content-Disposition: attachment;filename="rapport.csv"',FALSE);
|
||||
|
|
@ -39,7 +39,7 @@ $User=new User($cn);
|
|||
$User->Check();
|
||||
|
||||
|
||||
$Form=new rapport($cn,$_GET['form_id']);
|
||||
$Form=new Acc_Report($cn,$_GET['form_id']);
|
||||
$Form->get_name();
|
||||
// Step ?
|
||||
//--
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
* \brief Send a report in PDF
|
||||
*/
|
||||
|
||||
include_once("class_rapport.php");
|
||||
include_once("class_acc_report.php");
|
||||
include_once("ac_common.php");
|
||||
include_once("postgres.php");
|
||||
include_once("class.ezpdf.php");
|
||||
|
|
@ -32,6 +32,8 @@ include_once("impress_inc.php");
|
|||
require_once('class_user.php');
|
||||
require_once ('header_print.php');
|
||||
require_once('class_dossier.php');
|
||||
require_once('class_acc_report.php');
|
||||
|
||||
$gDossier=dossier::id();
|
||||
|
||||
$cn=DbConnect($gDossier);
|
||||
|
|
@ -45,7 +47,7 @@ $pdf=new Cezpdf();
|
|||
$pdf->selectFont('./addon/fonts/Helvetica.afm');
|
||||
header_pdf($cn,$pdf);
|
||||
|
||||
$Form=new rapport($cn,$form_id);
|
||||
$Form=new Acc_Report($cn,$form_id);
|
||||
// Step ??
|
||||
//--
|
||||
if ( $_GET['p_step'] == 0 )
|
||||
|
|
@ -72,7 +74,7 @@ if ( $_GET['p_step'] == 0 )
|
|||
|
||||
}
|
||||
|
||||
$Libelle=sprintf("(%s) %s ",$Form->id,$Form->get_name());
|
||||
$Libelle=utf8_decode(sprintf("(%s) %s ",$Form->id,$Form->get_name()));
|
||||
|
||||
$pdf->ezText($Libelle,30);
|
||||
// without step
|
||||
|
|
@ -81,13 +83,14 @@ if ( $_GET['p_step'] == 0 )
|
|||
if ( $_GET['type_periode'] == 0 ) {
|
||||
$q=getPeriodeName($cn,$from_periode);
|
||||
if ( $from_periode != $to_periode){
|
||||
$periode=sprintf("Période %s à %s",$q,getPeriodeName($cn,$to_periode));
|
||||
$periode=sprintf("Période %s à %s",$q,getPeriodeName($cn,$to_periode));
|
||||
} else {
|
||||
$periode=sprintf("Période %s",$q);
|
||||
$periode=sprintf("Période %s",$q);
|
||||
}
|
||||
} else {
|
||||
$periode=sprintf("Date %s jusque %s",$_GET['from_date'],$_GET['to_date']);
|
||||
}
|
||||
$periode=utf8_decode($periode);
|
||||
$pdf->ezText($periode,25);
|
||||
$pdf->ezTable($array,
|
||||
array ('desc'=>'Description',
|
||||
|
|
@ -95,7 +98,7 @@ if ( $_GET['p_step'] == 0 )
|
|||
),$Libelle,
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('montant'=> array('justification'=>'right'),
|
||||
)));
|
||||
)),true);
|
||||
//New page
|
||||
//$pdf->ezNewPage();
|
||||
//}
|
||||
|
|
@ -113,7 +116,7 @@ if ( $_GET['p_step'] == 0 )
|
|||
),$Libelle,
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('montant'=> array('justification'=>'right'),
|
||||
)));
|
||||
)),true);
|
||||
}
|
||||
}
|
||||
$pdf->ezStream();
|
||||
|
|
|
|||
64
html/get_predef.php
Normal file
64
html/get_predef.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief respond ajax request, the get contains
|
||||
* the value :
|
||||
* - l for ledger
|
||||
* - gDossier
|
||||
* - PHPSESSID
|
||||
* Must return at least tva, htva and tvac
|
||||
* \todo must add the security
|
||||
*/
|
||||
|
||||
require_once ('constant.php');
|
||||
require_once ('postgres.php');
|
||||
require_once ('debug.php');
|
||||
require_once('class_dossier.php');
|
||||
require_once('class_pre_operation.php');
|
||||
// Check if the needed field does exist
|
||||
extract ($_GET);
|
||||
foreach (array('l','t','d','gDossier') as $a) {
|
||||
if ( ! isset (${$a}) ) { echo "error $a is not set "; exit();}
|
||||
}
|
||||
$cn=DbConnect(dossier::id());
|
||||
$op=new Pre_operation_detail($cn);
|
||||
$op->set('ledger',$l);
|
||||
$op->set('ledger_type',$t);
|
||||
$op->set('direct',$d);
|
||||
$array=$op->get_operation();
|
||||
$string='{"count":"'.count($array).'"';
|
||||
$idx=0;
|
||||
if (! empty($array))
|
||||
foreach ($array as $a) {
|
||||
$string.=',"value'.$idx.'":"'.$a['value'].'",';
|
||||
$string.='"label'.$idx.'":"'.$a['label'].'"';
|
||||
$idx++;
|
||||
}
|
||||
$string.="}";
|
||||
|
||||
header("Content-type: text/json; charset: utf8",true);
|
||||
echo $string;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -5,5 +5,5 @@ php_value session.save_path c:\temp
|
|||
php_value max_execution_time 240
|
||||
php_value memory_limit 12M
|
||||
# for php 5 php_value upload_tmp_dir /tmp
|
||||
AddDefaultCharset latin1
|
||||
AddDefaultCharset utf8
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ $User=new User($cn);
|
|||
$User->Check();
|
||||
|
||||
html_page_start($User->theme);
|
||||
echo JS_PROTOTYPE_JS;
|
||||
echo JS_PROTOTYPE;
|
||||
|
||||
/* Admin. Dossier */
|
||||
|
||||
|
|
@ -89,6 +89,7 @@ if ( isset ($_GET["action"]) ) {
|
|||
if ($action == "transfer" ) {
|
||||
|
||||
echo '<DIV class="u_redcontent">';
|
||||
echo '<span class="notice"> Seulement les opérations de la période par défaut (voir préférence) seront transfèrées</span><hr>';
|
||||
// TransferCSV($cn,
|
||||
ConfirmTransfert($cn,$User->get_periode());
|
||||
echo "</DIV>";
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@
|
|||
*
|
||||
* \section intro_sec Introduction
|
||||
*
|
||||
* Cette partie contient de la documentation pour les développeurs.
|
||||
* Cette partie contient de la documentation pour les développeurs.
|
||||
*
|
||||
* \section convention_code Convention de codage
|
||||
* <p>
|
||||
* Quelques conventions de codage pour avoir un code plus ou moins
|
||||
* homogène
|
||||
* homogène
|
||||
* <ol>
|
||||
* <li>Tant que possible réutiliser ce qui existe déjà, </li>
|
||||
* <li>Améliorer ce qui existe déjà et vérifier que cela fonctionne toujours</li>
|
||||
* <li>Tant que possible réutiliser ce qui existe déjà, </li>
|
||||
* <li>Améliorer ce qui existe déjà et vérifier que cela fonctionne toujours</li>
|
||||
* <li>Documenter avec les tags doxygen votre nouveau code,</li>
|
||||
* <li>Dans le répertoire include: Les noms de fichiers sont *.inc.php pour les fichiers à éxécuter</li>
|
||||
* <li>Dans le répertoire include: Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement</li>
|
||||
* <li>Dans le répertoire include: Les noms de fichier sont class_*.php pour les fichiers contenant des classes.</li>
|
||||
* <li>Utiliser sql/upgrade.sql comme fichier temporaire pour modifier la base de données, en général
|
||||
* <li>Dans le répertoire include: Les noms de fichiers sont *.inc.php pour les fichiers à éxécuter</li>
|
||||
* <li>Dans le répertoire include: Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement</li>
|
||||
* <li>Dans le répertoire include: Les noms de fichier sont class_*.php pour les fichiers contenant des classes.</li>
|
||||
* <li>Utiliser sql/upgrade.sql comme fichier temporaire pour modifier la base de données, en général
|
||||
* ce fichier deviendra l'un des patch </li>
|
||||
* <li>Faire de la doc </li>
|
||||
* </ol>
|
||||
|
|
@ -28,24 +28,30 @@
|
|||
* </p>
|
||||
* \section conseil Conseils
|
||||
* <p>
|
||||
* Utiliser cette documentation, elle est générée automatiquement avec Doxygen,
|
||||
* Utiliser cette documentation, elle est générée automatiquement avec Doxygen,
|
||||
* <ul>
|
||||
* <li>Related contient tous les \\todo</li>
|
||||
* <li>Global -> function pour lire toute la doc sur les fonctions</li>
|
||||
* <li>Regarder dans dossier1.html et account_repository.html pour la doc des base de données
|
||||
* <li>Regarder dans dossier1.html et account_repository.html pour la doc des base de données
|
||||
*</ul>
|
||||
* et il ne faut connaître que 7 tags
|
||||
* et il ne faut connaître que 7 tags
|
||||
* <ul>
|
||||
* <li> \\file en début de fichier</li>
|
||||
* <li> \\file en début de fichier</li>
|
||||
* <li> \\todo ajouter un todo </li>
|
||||
* <li> \\enum pour commenter une variable</li>
|
||||
* <li> \\param pour commenter le paramètre d'une fonction</li>
|
||||
* <li> \\param pour commenter le paramètre d'une fonction</li>
|
||||
* <li> \\brief Commentaire du fichier, de la fonction ou de la classe</li>
|
||||
* <li> \\note des notes, des exemples</li>
|
||||
* <li> \\return ce que la fonction retourne</li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) {
|
||||
$p_string='admin/setup.php';
|
||||
echo '<HTML><head><META HTTP-EQUIV="REFRESH" content="0;url='.$p_string.'"></head><body> Connecting... </body></html>';
|
||||
|
||||
}
|
||||
|
||||
echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
|
||||
|
||||
<HTML>
|
||||
|
|
@ -75,9 +81,13 @@ BODY {
|
|||
</style>
|
||||
<script src="js/scripts.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<BODY onLoad="SetFocus(\'login\',0)">
|
||||
<BODY onLoad="SetFocus(\'login\',0)">';
|
||||
|
||||
|
||||
|
||||
echo '
|
||||
<span style="background-color:#879ed4;color:white;padding-left:4px;padding-right:4px;">
|
||||
version 4.0.2
|
||||
version 4.1.0
|
||||
</span>
|
||||
<BR>
|
||||
<BR>
|
||||
|
|
@ -93,11 +103,11 @@ version 4.0.2
|
|||
<TABLE><TR><TD>
|
||||
<TABLE BORDER=0 CELLSPACING=0>
|
||||
<TR>
|
||||
<TD class="cell">Login</TD>
|
||||
<TD class="cell">utilisateur</TD>
|
||||
<TD><input type="text" name="p_user" tabindex="1"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD> Password</TD>
|
||||
<TD> mot de passe </TD>
|
||||
<TD><INPUT TYPE="PASSWORD" NAME="p_pass" tabindex="2"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,10 @@
|
|||
// $Revision$
|
||||
/*! \file
|
||||
* \brief Send a ledger in a pdf format
|
||||
*/
|
||||
*
|
||||
*\todo for the pdf, which doesn't support unicode you must
|
||||
translate all the string to latin-1 with the utf8-decode function
|
||||
*/
|
||||
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
|
@ -42,10 +45,10 @@ require_once ('header_print.php');
|
|||
echo_debug('jrn_pdf.php',__LINE__,"imp pdf journaux");
|
||||
$cn=DbConnect($gDossier);
|
||||
$l_type="JRN";
|
||||
$centr=" Non centralisé";
|
||||
$centr=" Non centralisé";
|
||||
$l_centr=0;
|
||||
if ($_GET['central'] == 'on' ) {
|
||||
$centr=" centralisé ";
|
||||
$centr=utf8_decode(" centralisé ");
|
||||
$l_centr=1;
|
||||
}
|
||||
$Jrn=new Acc_Ledger($cn,$_GET['jrn_id']);
|
||||
|
|
@ -102,44 +105,45 @@ if ( $Jrn->id==0 || $jrn_type=='FIN' || $jrn_type=='ODS' || $_REQUEST['p_simple
|
|||
$pdf->ezText($Jrn->name,30);
|
||||
|
||||
if ( $l_centr == 1 ) {
|
||||
// si centralisé montre les montants de rappel
|
||||
$str_debit=sprintf( "report Débit % 10.2f",$rap_deb);
|
||||
$str_credit=sprintf("report Crédit % 10.2f",$rap_cred);
|
||||
// si centralisé montre les montants de rappel
|
||||
$str_debit=utf8_decode(sprintf( "report Débit % 10.2f",$rap_deb));
|
||||
$str_credit=utf8_decode(sprintf("report Crédit % 10.2f",$rap_cred));
|
||||
$pdf->ezText($str_debit,12,array('justification'=>'right'));
|
||||
$pdf->ezText($str_credit,12,array('justification'=>'right'));
|
||||
}
|
||||
|
||||
$pdf->ezTable($a_jrn,
|
||||
array ('j_id'=>' Numéro',
|
||||
array ('j_id'=>utf8_decode(' Numéro'),
|
||||
'j_date' => 'Date',
|
||||
'poste'=>'Poste',
|
||||
'description' => 'Description',
|
||||
'deb_montant'=> 'Débit',
|
||||
'cred_montant'=>'Crédit')," ",
|
||||
'deb_montant'=>utf8_decode( 'Débit'),
|
||||
'cred_montant'=>utf8_decode('Crédit')),
|
||||
" ",
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('deb_montant'=> array('justification'=>'right'),
|
||||
'cred_montant'=> array('justification'=>'right'))));
|
||||
'cred_montant'=> array('justification'=>'right'))),
|
||||
true);
|
||||
$a=1;
|
||||
// Total Page
|
||||
$apage=array(array('deb'=>sprintf("%8.2f",$tot_deb),'cred'=>$tot_cred));
|
||||
foreach ($apage as $key=>$element) echo_debug('jrn_pdf.php',__LINE__,"apage $key => $element");
|
||||
$pdf->ezTable($apage,
|
||||
array (
|
||||
'deb'=> 'Total Débit',
|
||||
'cred'=>'Total Crédit')," ",
|
||||
'deb'=>utf8_decode( 'Total Débit'),
|
||||
'cred'=>utf8_decode('Total Crédit'))," ",
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>200,
|
||||
'xPos'=>'right','xOrientation'=>'left',
|
||||
'cols'=>array('deb'=> array('justification'=>'right'),
|
||||
'cred'=> array('justification'=>'right'))));
|
||||
'cred'=> array('justification'=>'right'))),true);
|
||||
|
||||
$count=count($a_jrn)-1;
|
||||
$last_id=$a_jrn[$count]['int_j_id'];
|
||||
$Exercice=get_exercice($cn,$a_jrn[$count]['periode']);
|
||||
if ( $l_centr == 1) {
|
||||
// Montant de rappel si centralisé
|
||||
// Montant de rappel si centralisé
|
||||
list($rap_deb,$rap_cred)=get_rappel($cn,$last_id,$Jrn->id,$Exercice,LAST,$filter,$l_centr);
|
||||
$str_debit=sprintf( "à reporter Débit % 10.2f",$rap_deb);
|
||||
$str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);
|
||||
$str_debit=utf8_decode(sprintf( "à reporter Débit % 10.2f",$rap_deb));
|
||||
$str_credit=utf8_decode(sprintf("à reporter Crédit % 10.2f",$rap_cred));
|
||||
$pdf->ezText($str_debit,12,array('justification'=>'right'));
|
||||
$pdf->ezText($str_credit,12,array('justification'=>'right'));
|
||||
}
|
||||
|
|
@ -152,25 +156,25 @@ if ( $Jrn->id==0 || $jrn_type=='FIN' || $jrn_type=='ODS' || $_REQUEST['p_simple
|
|||
$apage=array('deb'=>$tot_deb,'cred'=>$tot_cred);
|
||||
$pdf->ezTable($apage,
|
||||
array (
|
||||
'deb'=> 'Total Débit',
|
||||
'cred'=>'Total Crédit')," ",
|
||||
'deb'=>utf8_decode( 'Total Débit'),
|
||||
'cred'=>utf8_decode('Total Crédit'))," ",
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('deb'=> array('justification'=>'right'),
|
||||
'cred'=> array('justification'=>'right'))));
|
||||
'cred'=> array('justification'=>'right'))),true);
|
||||
$count=count($a_jrn)-1;
|
||||
$last_id=$a_jrn[$count]['int_j_id'];
|
||||
$Exercice=get_exercice($cn,$a_jrn[$count]['periode']);
|
||||
|
||||
list($rap_deb,$rap_cred)=get_rappel($cn,$last_id,$Jrn->id,$Exercice,LAST,$filter,$l_centr);
|
||||
$str_debit=sprintf( "à reporter Débit % 10.2f",$rap_deb);
|
||||
$str_credit=sprintf("à reporter Crédit % 10.2f",$rap_cred);
|
||||
$str_debit=utf8_decode(sprintf( "à reporter Débit % 10.2f",$rap_deb));
|
||||
$str_credit=utf8_deccode(sprintf("à reporter Crédit % 10.2f",$rap_cred));
|
||||
$pdf->ezText($str_debit,12,array('justification'=>'right'));
|
||||
$pdf->ezText($str_credit,12,array('justification'=>'right'));
|
||||
|
||||
}
|
||||
$pdf->ezStream();
|
||||
exit(0);
|
||||
} // impression detaillé
|
||||
} // impression detaillé
|
||||
//----------------------------------------------------------------------
|
||||
// Simple Printing
|
||||
//---------------------------------------------------------------------
|
||||
|
|
@ -196,9 +200,12 @@ if ( ($jrn_type=='ACH' || $jrn_type=='VEN' ) && $_REQUEST['p_simple']== 1 )
|
|||
$tmp1=$line_tva['tva_label'];
|
||||
$rap_tva[$tmp1]=0.0;
|
||||
if ( $space == 0 )
|
||||
$col_tva=str_repeat(" ",6).$line_tva['tva_label'];
|
||||
else
|
||||
$col_tva.=str_repeat(" ",$space-strlen($line_tva['tva_label'])).$line_tva['tva_label'];
|
||||
$col_tva=str_repeat(" ",6).utf8_decode($line_tva['tva_label']);
|
||||
else {
|
||||
$ecart=$space-strlen($line_tva['tva_label']);
|
||||
$ecart=($ecart<0)?0:$ecart;
|
||||
$col_tva.=str_repeat(" ",$ecart).utf8_decode($line_tva['tva_label']);
|
||||
}
|
||||
$space=9;
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +229,7 @@ if ( ($jrn_type=='ACH' || $jrn_type=='VEN' ) && $_REQUEST['p_simple']== 1 )
|
|||
// page Header
|
||||
$t=sprintf("Rappel TVAC = %.2f HTVA= %.2f",$total_TVAC,$total_HTVA);
|
||||
foreach($rap_tva as $idx=>$am) {
|
||||
$t.=sprintf('[ %s = % .2f]',$idx,$am);
|
||||
$t.=utf8_decode(sprintf('[ %s = % .2f]',$idx,$am));
|
||||
}
|
||||
$pdf->ezText($t,9,array('justification'=>'left'));
|
||||
|
||||
|
|
@ -239,7 +246,7 @@ if ( ($jrn_type=='ACH' || $jrn_type=='VEN' ) && $_REQUEST['p_simple']== 1 )
|
|||
|
||||
|
||||
$pdf->ezTable($a_jrn,
|
||||
array('num'=>'Numéro',
|
||||
array('num'=>utf8_decode('Numéro'),
|
||||
'date'=>'Date',
|
||||
'client'=>'Client',
|
||||
'jr_internal'=>'Int.',
|
||||
|
|
@ -247,8 +254,9 @@ if ( ($jrn_type=='ACH' || $jrn_type=='VEN' ) && $_REQUEST['p_simple']== 1 )
|
|||
'HTVA'=>'HTVA',
|
||||
'TVA_INLINE'=>$col_tva,
|
||||
'TVAC'=>'TVAC'),
|
||||
$Jrn->name,
|
||||
array('shaded'=>0,'showHeadings'=>1,'fontSize'=>8,'width'=>750,'Maxwidth'=>750)
|
||||
utf8_decode($Jrn->name),
|
||||
array('shaded'=>0,'showHeadings'=>1,'fontSize'=>8,'width'=>750,'Maxwidth'=>750),
|
||||
true
|
||||
|
||||
|
||||
|
||||
|
|
@ -274,13 +282,13 @@ if ( ($jrn_type=='ACH' || $jrn_type=='VEN' ) && $_REQUEST['p_simple']== 1 )
|
|||
//total page
|
||||
$t=sprintf("total page TVAC = %.2f HTVA= %.2f",$total_tvac_page,$total_htva_page);
|
||||
foreach($page_tva as $idx=>$am) {
|
||||
$t.=sprintf('[ %s = % .2f ]',$idx,$am);
|
||||
$t.=utf8_decode(sprintf('[ %s = % .2f ]',$idx,$am));
|
||||
}
|
||||
$pdf->ezText($t,9,array('justification'=>'left'));
|
||||
|
||||
$t=sprintf("total à reporter TVAC = %.2f HTVA= %.2f",$total_TVAC,$total_HTVA);
|
||||
$t=utf8_decode(sprintf("total à reporter TVAC = %.2f HTVA= %.2f",$total_TVAC,$total_HTVA));
|
||||
foreach($rap_tva as $idx=>$am) {
|
||||
$t.=sprintf('[ %s = % .2f ]',$idx,$am);
|
||||
$t.=utf8_decode(sprintf('[ %s = % .2f ]',$idx,$am));
|
||||
}
|
||||
$pdf->ezText($t,9,array('justification'=>'left'));
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ $User=new User($rep);
|
|||
$User->Check();
|
||||
|
||||
|
||||
html_page_start($User->theme,"onLoad='window.focus();'");
|
||||
html_min_page_start($User->theme,"onLoad='window.focus();'");
|
||||
|
||||
require_once('class_dossier.php');
|
||||
$gDossier=dossier::id();
|
||||
|
|
@ -144,9 +144,9 @@ echo "</TR>";
|
|||
|
||||
echo '</TABLE>';
|
||||
echo '<INPUT TYPE="submit" name="search" value="cherche">';
|
||||
echo '<input type="button" name="update_concerned" value="Mise à jour des réconciliation" onClick="updateJrn(\''.$p_ctl.'\')">';
|
||||
echo '<input type="button" name="update_concerned" value="Mise à jour des réconciliation" onClick="updateJrn(\''.$p_ctl.'\')">';
|
||||
echo '</FORM>';
|
||||
echo '<div class="u_content">';
|
||||
echo '<div class="content">';
|
||||
// if a search is asked otherwise don't show all the rows
|
||||
if ( isset ($_GET["search"]) ) {
|
||||
$sql="select j_id,to_char(j_date,'DD.MM.YYYY') as j_date,
|
||||
|
|
@ -184,7 +184,7 @@ echo '<form id="form_jrn_concerned">';
|
|||
echo '<TABLE ALIGN="center" BORDER="0" CELLSPACING="O" width="100%">';
|
||||
$l_id="";
|
||||
// if ( $MaxLine > 250 ) {
|
||||
// echo "Trop de lignes redéfinir la recherche";
|
||||
// echo "Trop de lignes redéfinir la recherche";
|
||||
// html_page_stop();
|
||||
// return;
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -53,21 +53,24 @@ function errorFid(request,json) {
|
|||
* \param p_ctl the ctrl to fill
|
||||
* \param p_deb if debit of credit
|
||||
* \param p_jrn the ledger
|
||||
* \param phpsessid
|
||||
*/
|
||||
function ajaxFid(p_ctl,p_deb,p_jrn)
|
||||
function ajaxFid(p_ctl,p_deb,phpsessid)
|
||||
{
|
||||
var gDossier=$('gDossier').value;
|
||||
var ctl_value=$(p_ctl).value;
|
||||
var ctl_value=trim($(p_ctl).value);
|
||||
$(p_ctl).value=ctl_value;
|
||||
var p_jrn=$('p_jrn').value;
|
||||
if ( trim(ctl_value)==0 ) {
|
||||
nLabel=p_ctl+"_label";
|
||||
$(nLabel).value="";
|
||||
$(nLabel).innerHTML="";
|
||||
$(nLabel).innerHTML=" ";
|
||||
clean_Fid(p_ctl);
|
||||
return;
|
||||
}
|
||||
queryString="?FID="+ctl_value;
|
||||
queryString=queryString+"&d="+p_deb+"&j="+p_jrn+'&gDossier='+gDossier;
|
||||
queryString=queryString+'&ctl='+p_ctl;
|
||||
queryString=queryString+'&ctl='+p_ctl+'&PHPSESSID='+phpsessid;
|
||||
/* alert(queryString); */
|
||||
var action=new Ajax.Request (
|
||||
"fid.php",
|
||||
|
|
@ -92,9 +95,6 @@ function successFid(request,json) {
|
|||
var buy=answer.buy;
|
||||
var tva_id=answer.tva_id;
|
||||
var ctl=answer.ctl;
|
||||
|
||||
/* alert('data:'+data+' sell:'+sell+' Tva id:'+tva_id); */
|
||||
|
||||
var toSet=ctl+'_label';
|
||||
if (trim(data) == "" ) {
|
||||
$(toSet).innerHTML="Fiche Inconnue";
|
||||
|
|
@ -112,7 +112,7 @@ function successFid(request,json) {
|
|||
if ( $(nSell ) ) {
|
||||
$(nSell).value=sell;
|
||||
}
|
||||
$(nBuy).value=buy;
|
||||
if ( $(nBuy) ) $(nBuy).value=buy;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function checkTotalDirect() {
|
|||
var total_cred=0.0;
|
||||
|
||||
|
||||
var nb_item_id=document.getElementById('nb');
|
||||
var nb_item_id=document.getElementById('nb_item');
|
||||
if ( ! nb_item_id )
|
||||
{return; }
|
||||
|
||||
|
|
|
|||
54
html/js/infobulle.js
Normal file
54
html/js/infobulle.js
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/*!\file
|
||||
* \brief create the infobulle, the internalization is not yet implemented
|
||||
*/
|
||||
|
||||
var posX=0,posy=0,offsetX=10,offsetY=10;
|
||||
document.onmousemove=getPosition;
|
||||
content[0]="Donnez le quickcode ou tapez une partie du nom de la fiche puis cliquer sur rechercher, si la recherche ne donne rien, il vous sera proposé de créer une nouvelle fiche";
|
||||
content[1]="(optionnel) La description est un commentaire libre qui sert à identifier cette opération";
|
||||
content[2]="Selectionnez le journal où l'opération doit être sauvée";
|
||||
content[3]="Les périodes comptables servent comme un second contrôle pour la date de l'opération. Modifiez dans vos préférence pour avoir une autre période par défaut";
|
||||
content[4]="(optionnel) L'échéance est la date limite de paiement";
|
||||
content[5]="(optionnel)Le numéro d'extrait permet de retrouver plus facilement l'extrait de banque";
|
||||
content[6]="Indiquez ici le prix hors tva si vous êtes affilié à la tva et que vous pouvez la déduire , sinon indiquez ici le total tva incluse et utilisez un taux tva de 0%";
|
||||
content[7]="(optionnel) Ces champs servent à contrôler que les montants correspondent à l'extrait";
|
||||
content[8]="(optionnel) Ce montant correspond au total tva, si vous le laissez à vide, il sera calculé automatiquement en fonction du taux";
|
||||
content[9]="Tapez le numéro de poste ou une partie du poste ou du libellé puis sur recherche, Si vous avez donné un quickcode, le poste comptable ne sera pas utilisé";
|
||||
function showBulle(p_ctl) {
|
||||
d=document.getElementById('bulle');
|
||||
d.innerHTML=content[p_ctl];
|
||||
d.style.top=posY+offsetY;
|
||||
d.style.left=posX+offsetX;
|
||||
d.style.visibility="visible";
|
||||
}
|
||||
function getPosition(e) {
|
||||
if (document.all) {
|
||||
posX=event.x+document.body.scrollLeft;
|
||||
posY=event.y+document.body.scrollTop;
|
||||
}
|
||||
else {
|
||||
posX=e.pageX;
|
||||
posY=e.pageY;
|
||||
}
|
||||
}
|
||||
function hideBulle(p_ctl) {
|
||||
d=document.getElementById('bulle');
|
||||
d.style.visibility="hidden";
|
||||
}
|
||||
226
html/js/mintoolkit.js
Normal file
226
html/js/mintoolkit.js
Normal file
|
|
@ -0,0 +1,226 @@
|
|||
function $(element) {
|
||||
if (arguments.length > 1) {
|
||||
for (var i = 0, elements = [], length = arguments.length; i < length; i++)
|
||||
elements.push($(arguments[i]));
|
||||
return elements;
|
||||
}
|
||||
if (Object.isString(element))
|
||||
element = document.getElementById(element);
|
||||
return Element.extend(element);
|
||||
}
|
||||
Object.extend = function(destination, source) {
|
||||
for (var property in source)
|
||||
destination[property] = source[property];
|
||||
return destination;
|
||||
};
|
||||
|
||||
Object.extend(Object, {
|
||||
inspect: function(object) {
|
||||
try {
|
||||
if (object === undefined) return 'undefined';
|
||||
if (object === null) return 'null';
|
||||
return object.inspect ? object.inspect() : object.toString();
|
||||
} catch (e) {
|
||||
if (e instanceof RangeError) return '...';
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
|
||||
toJSON: function(object) {
|
||||
var type = typeof object;
|
||||
switch (type) {
|
||||
case 'undefined':
|
||||
case 'function':
|
||||
case 'unknown': return;
|
||||
case 'boolean': return object.toString();
|
||||
}
|
||||
|
||||
if (object === null) return 'null';
|
||||
if (object.toJSON) return object.toJSON();
|
||||
if (Object.isElement(object)) return;
|
||||
|
||||
var results = [];
|
||||
for (var property in object) {
|
||||
var value = Object.toJSON(object[property]);
|
||||
if (value !== undefined)
|
||||
results.push(property.toJSON() + ': ' + value);
|
||||
}
|
||||
|
||||
return '{' + results.join(', ') + '}';
|
||||
},
|
||||
|
||||
toQueryString: function(object) {
|
||||
return $H(object).toQueryString();
|
||||
},
|
||||
|
||||
toHTML: function(object) {
|
||||
return object && object.toHTML ? object.toHTML() : String.interpret(object);
|
||||
},
|
||||
|
||||
keys: function(object) {
|
||||
var keys = [];
|
||||
for (var property in object)
|
||||
keys.push(property);
|
||||
return keys;
|
||||
},
|
||||
|
||||
values: function(object) {
|
||||
var values = [];
|
||||
for (var property in object)
|
||||
values.push(object[property]);
|
||||
return values;
|
||||
},
|
||||
|
||||
clone: function(object) {
|
||||
return Object.extend({ }, object);
|
||||
},
|
||||
|
||||
isElement: function(object) {
|
||||
return object && object.nodeType == 1;
|
||||
},
|
||||
|
||||
isArray: function(object) {
|
||||
return object && object.constructor === Array;
|
||||
},
|
||||
|
||||
isHash: function(object) {
|
||||
return object instanceof Hash;
|
||||
},
|
||||
|
||||
isFunction: function(object) {
|
||||
return typeof object == "function";
|
||||
},
|
||||
|
||||
isString: function(object) {
|
||||
return typeof object == "string";
|
||||
},
|
||||
|
||||
isNumber: function(object) {
|
||||
return typeof object == "number";
|
||||
},
|
||||
|
||||
isUndefined: function(object) {
|
||||
return typeof object == "undefined";
|
||||
}
|
||||
});
|
||||
|
||||
Object.extend(Function.prototype, {
|
||||
argumentNames: function() {
|
||||
var names = this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");
|
||||
return names.length == 1 && !names[0] ? [] : names;
|
||||
},
|
||||
|
||||
bind: function() {
|
||||
if (arguments.length < 2 && arguments[0] === undefined) return this;
|
||||
var __method = this, args = $A(arguments), object = args.shift();
|
||||
return function() {
|
||||
return __method.apply(object, args.concat($A(arguments)));
|
||||
}
|
||||
},
|
||||
|
||||
bindAsEventListener: function() {
|
||||
var __method = this, args = $A(arguments), object = args.shift();
|
||||
return function(event) {
|
||||
return __method.apply(object, [event || window.event].concat(args));
|
||||
}
|
||||
},
|
||||
|
||||
curry: function() {
|
||||
if (!arguments.length) return this;
|
||||
var __method = this, args = $A(arguments);
|
||||
return function() {
|
||||
return __method.apply(this, args.concat($A(arguments)));
|
||||
}
|
||||
},
|
||||
|
||||
delay: function() {
|
||||
var __method = this, args = $A(arguments), timeout = args.shift() * 1000;
|
||||
return window.setTimeout(function() {
|
||||
return __method.apply(__method, args);
|
||||
}, timeout);
|
||||
},
|
||||
|
||||
wrap: function(wrapper) {
|
||||
var __method = this;
|
||||
return function() {
|
||||
return wrapper.apply(this, [__method.bind(this)].concat($A(arguments)));
|
||||
}
|
||||
},
|
||||
|
||||
methodize: function() {
|
||||
if (this._methodized) return this._methodized;
|
||||
var __method = this;
|
||||
return this._methodized = function() {
|
||||
return __method.apply(null, [this].concat($A(arguments)));
|
||||
};
|
||||
}
|
||||
});
|
||||
var Prototype = {
|
||||
Version: '1.6.0_rc1',
|
||||
|
||||
Browser: {
|
||||
IE: !!(window.attachEvent && !window.opera),
|
||||
Opera: !!window.opera,
|
||||
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
|
||||
Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
|
||||
MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
|
||||
},
|
||||
|
||||
BrowserFeatures: {
|
||||
XPath: !!document.evaluate,
|
||||
ElementExtensions: !!window.HTMLElement,
|
||||
SpecificElementExtensions:
|
||||
document.createElement('div').__proto__ !==
|
||||
document.createElement('form').__proto__
|
||||
},
|
||||
|
||||
ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
|
||||
JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
|
||||
|
||||
emptyFunction: function() { },
|
||||
K: function(x) { return x }
|
||||
};
|
||||
|
||||
if (Prototype.Browser.MobileSafari)
|
||||
Prototype.BrowserFeatures.SpecificElementExtensions = false;
|
||||
|
||||
if (Prototype.Browser.WebKit)
|
||||
Prototype.BrowserFeatures.XPath = false;
|
||||
Element.extend = (function() {
|
||||
if (Prototype.BrowserFeatures.SpecificElementExtensions)
|
||||
return Prototype.K;
|
||||
|
||||
var Methods = { }, ByTag = Element.Methods.ByTag;
|
||||
|
||||
var extend = Object.extend(function(element) {
|
||||
if (!element || element._extendedByPrototype ||
|
||||
element.nodeType != 1 || element == window) return element;
|
||||
|
||||
var methods = Object.clone(Methods),
|
||||
tagName = element.tagName, property, value;
|
||||
|
||||
// extend methods for specific tags
|
||||
if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);
|
||||
|
||||
for (property in methods) {
|
||||
value = methods[property];
|
||||
if (Object.isFunction(value) && !(property in element))
|
||||
element[property] = value.methodize();
|
||||
}
|
||||
|
||||
element._extendedByPrototype = Prototype.emptyFunction;
|
||||
return element;
|
||||
|
||||
}, {
|
||||
refresh: function() {
|
||||
// extend methods for all tags (Safari doesn't need this)
|
||||
if (!Prototype.BrowserFeatures.ElementExtensions) {
|
||||
Object.extend(Methods, Element.Methods);
|
||||
Object.extend(Methods, Element.Methods.Simulated);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
extend.refresh();
|
||||
return extend;
|
||||
})();
|
||||
4408
html/js/prototype.js
vendored
4408
html/js/prototype.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -26,7 +26,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
//scripts library.
|
||||
trim = function(p_value) {
|
||||
return p_value.replace(/^\s+|\s+$/g,"");
|
||||
}//scripts library.
|
||||
|
||||
// Set the focus to the specified field,
|
||||
// and select it if requested by SelectIt
|
||||
|
|
@ -123,9 +125,7 @@ function add_row(p_table,p_seq,p_count) {
|
|||
var cell=document.createElement("TD");
|
||||
var col=document.getElementById(p_table+"td"+i+'c1');
|
||||
var txt=col.innerHTML;
|
||||
// alert (txt);
|
||||
txt=txt.replace(/row_1/g,"row_"+new_value);
|
||||
//alert(txt);
|
||||
cell.innerHTML=txt;
|
||||
|
||||
row.appendChild(cell); }
|
||||
|
|
@ -148,33 +148,32 @@ function add_row(p_table,p_seq,p_count) {
|
|||
|
||||
function verify_ca(p_style) {
|
||||
var nb_item=document.getElementById('nb_item').value;
|
||||
for ( var item=0;item<=nb_item-1;item++) {
|
||||
var nb_row=1*document.getElementById('nb_t'+item).value;
|
||||
var amount=1*document.getElementById('amount_t'+item).value;
|
||||
var get=0;
|
||||
for (var row=1;row <= nb_row;row++) {
|
||||
|
||||
if ( document.getElementById('ta_'+item+'o1row_'+row).value != -1) {
|
||||
val=document.getElementById('val'+item+'l'+row).value;
|
||||
if ( isNaN(val)) { continue;}
|
||||
get=get+(val*1);
|
||||
} else {
|
||||
get=amount;
|
||||
for ( var item=0;item<=nb_item-1;item++) {
|
||||
if ( document.getElementById('nb_t'+item) ) {
|
||||
var nb_row=1*document.getElementById('nb_t'+item).value;
|
||||
var amount=1*document.getElementById('amount_t'+item).value;
|
||||
var get=0;
|
||||
for (var row=1;row <= nb_row;row++) {
|
||||
|
||||
if ( document.getElementById('ta_'+item+'o1row_'+row).value != -1) {
|
||||
val=document.getElementById('val'+item+'l'+row).value;
|
||||
if ( isNaN(val)) { continue;}
|
||||
get=get+(val*1);
|
||||
} else {
|
||||
get=amount;
|
||||
}
|
||||
}
|
||||
}
|
||||
//alert ("table "+item+"\namount is"+amount+"\nVal = "+val+"\nGet ="+get);
|
||||
if ( Math.round(get,2) != Math.round(amount,2) ) {
|
||||
diff=Math.round(get,2)-Math.round(amount,2);
|
||||
alert ("montant differents \ntotal CA="+get+"\ntotal Operation "+amount+"\nDiff = "+diff);
|
||||
/*!\todo remove debug
|
||||
// to debug purpose set to true return false;
|
||||
*/
|
||||
return true
|
||||
}else {
|
||||
if ( p_style=='ok') {
|
||||
alert('les montants correspondent');
|
||||
if ( Math.round(get,2) != Math.round(amount,2) ) {
|
||||
diff=Math.round(get,2)-Math.round(amount,2);
|
||||
alert ("montant differents \ntotal CA="+get+"\ntotal Operation "+amount+"\nDiff = "+diff);
|
||||
return false;
|
||||
}else {
|
||||
if ( p_style=='ok') {
|
||||
alert('les montants correspondent');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -232,7 +231,6 @@ function ca_set_parent(p_ctl,p_value) {
|
|||
*/
|
||||
|
||||
function import_update(p_sessid,p_dossier,p_count) {
|
||||
// alert ("Dossier = "+p_dossier+" counter ="+p_count);
|
||||
var query_string="PHPSESSID="+p_sessid+"&count="+p_count+"&gDossier="+p_dossier;
|
||||
var code=$("code"+p_count);
|
||||
var poste=$("poste"+p_count);
|
||||
|
|
@ -262,7 +260,6 @@ function import_update(p_sessid,p_dossier,p_count) {
|
|||
*/
|
||||
|
||||
function import_remove(p_sessid,p_dossier,p_count) {
|
||||
// alert ("Dossier = "+p_dossier+" counter ="+p_count);
|
||||
var query_string="PHPSESSID="+p_sessid+"&count="+p_count+"&gDossier="+p_dossier;
|
||||
var code=$("code"+p_count);
|
||||
var url="ajax_import.php";
|
||||
|
|
@ -289,7 +286,6 @@ function import_remove(p_sessid,p_dossier,p_count) {
|
|||
*/
|
||||
|
||||
function import_not_confirmed(p_sessid,p_dossier,p_count) {
|
||||
// alert ("Dossier = "+p_dossier+" counter ="+p_count);
|
||||
var query_string="PHPSESSID="+p_sessid+"&count="+p_count+"&gDossier="+p_dossier;
|
||||
var code=$("code"+p_count);
|
||||
var url="ajax_import.php";
|
||||
|
|
@ -307,3 +303,418 @@ function import_not_confirmed(p_sessid,p_dossier,p_count) {
|
|||
var form=$("form_"+p_count);
|
||||
form.hide();
|
||||
}
|
||||
/**
|
||||
* @brief add a line in the form for the report
|
||||
* @param p_dossier dossier id to connect
|
||||
* @param p_sessid session id
|
||||
*/
|
||||
function rapport_add_row(p_dossier,p_sessid){
|
||||
style='style="border: 1px solid blue;"';
|
||||
var table=$("rap1");
|
||||
var line=table.rows.length;
|
||||
|
||||
var row=table.insertRow(line);
|
||||
// left cell
|
||||
var cellPos = row.insertCell(0);
|
||||
cellPos.innerHTML='<input type="text" '+style+' size="3" id="pos'+line+'" name="pos'+line+'" value="'+line+'">';
|
||||
|
||||
// right cell
|
||||
var cellName = row.insertCell(1);
|
||||
cellName.innerHTML='<input type="text" '+style+' size="50" id="text'+line+'" name="text'+line+'">';
|
||||
|
||||
// Formula
|
||||
var cellFormula = row.insertCell(2);
|
||||
cellFormula.innerHTML='<input type="text" '+style+' size="35" id="form'+line+'" name="form'+line+'">';
|
||||
|
||||
// Search Button
|
||||
var cellSearch = row.insertCell(3);
|
||||
cellSearch.innerHTML='<input type="button" value="Recherche Poste" onclick="SearchPoste(\''+p_sessid+'\','+p_dossier+',\'form'+line+'\',\'\',\'poste\',\'N\')" class="inp"/>';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief create a file to export a report
|
||||
* @param p_sessid the Session id
|
||||
* @param p_dossier the dossier id
|
||||
*/
|
||||
function report_export(p_sessid,p_dossier,p_fr_id) {
|
||||
var queryString="?PHPSESSID="+p_sessid+"&gDossier="+p_dossier+"&f="+p_fr_id;
|
||||
var action=new Ajax.Request(
|
||||
"ajax_report.php",
|
||||
{
|
||||
method:'get',
|
||||
parameters:queryString,
|
||||
onSuccess:report_export_success
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief callback function for exporting a report
|
||||
* @param request object request
|
||||
* @param json json answer
|
||||
*/
|
||||
function report_export_success(request,json) {
|
||||
var answer = request.responseText.evalJSON(true);
|
||||
var ok=answer.answer;
|
||||
var link=answer.link;
|
||||
$('export').hide();
|
||||
$('export_link').innerHTML='<a class="mtitle" href="'+link+'"> Cliquez ici pour télécharger le rapport</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief add a line in the form for the sold ledger
|
||||
*/
|
||||
function ledger_sold_add_row(){
|
||||
style='class="input_text"';
|
||||
var mytable=$("sold_item").tBodies[0];
|
||||
var line=mytable.rows.length;
|
||||
var row=mytable.insertRow(line);
|
||||
var phpsessid=$("phpsessid");
|
||||
var nb=$("nb_item");
|
||||
|
||||
var newNode = mytable.rows[1].cloneNode(true);
|
||||
var tt=newNode.innerHTML;
|
||||
mytable.appendChild(newNode);
|
||||
|
||||
|
||||
new_tt=tt.replace(/march0/g,"march"+nb.value);
|
||||
new_tt=new_tt.replace(/quant0/g,"quant"+nb.value);
|
||||
new_tt=new_tt.replace(/sold\(0\)/g,"sold("+nb.value+")");
|
||||
|
||||
newNode.innerHTML=new_tt;
|
||||
$("e_march"+nb.value+"_label").innerHTML=' ';
|
||||
$("e_march"+nb.value+"_sell").value='0';
|
||||
$("e_march"+nb.value).value="";
|
||||
$("e_quant"+nb.value).value="1";
|
||||
|
||||
nb.value++;
|
||||
|
||||
}
|
||||
function compute_all_sold() {
|
||||
var loop=0;
|
||||
for (loop=0;loop<$("nb_item").value;loop++){
|
||||
compute_sold(loop);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief compute the sum of a sold, update the span tvac, htva and tva
|
||||
* all the needed data are taken from the document (hidden field : phpsessid and gdossier)
|
||||
* @param the number of the changed ctrl
|
||||
*/
|
||||
function compute_sold(p_ctl_nb) {
|
||||
var phpsessid=$("phpsessid").value;
|
||||
var dossier=$("gDossier").value;
|
||||
|
||||
$("e_march"+p_ctl_nb).value=trim($("e_march"+p_ctl_nb).value);
|
||||
var qcode=$("e_march"+p_ctl_nb).value;
|
||||
|
||||
if ( qcode.length == 0 ) {
|
||||
clean_sold(p_ctl_nb);
|
||||
refresh_sold();
|
||||
return;
|
||||
}
|
||||
var tva_id=$('e_march'+p_ctl_nb+'_tva_id').value;
|
||||
$('e_march'+p_ctl_nb+'_sell').value=trim($('e_march'+p_ctl_nb+'_sell').value);
|
||||
|
||||
var price=$('e_march'+p_ctl_nb+'_sell').value;
|
||||
$('e_quant'+p_ctl_nb).value=trim($('e_quant'+p_ctl_nb).value);
|
||||
var quantity=$('e_quant'+p_ctl_nb).value;
|
||||
|
||||
var querystring='?PHPSESSID='+phpsessid+'&gDossier='+dossier+'&c='+qcode+'&t='+tva_id+'&p='+price+'&q='+quantity+'&n='+p_ctl_nb;
|
||||
$('sum').hide();
|
||||
var action=new Ajax.Request(
|
||||
"compute.php",
|
||||
{
|
||||
method:'get',
|
||||
parameters:querystring,
|
||||
onFailure:error_compute_sold,
|
||||
onSuccess:success_compute_sold
|
||||
}
|
||||
);
|
||||
}
|
||||
function refresh_sold () {
|
||||
var tva=0; var htva=0;var tvac=0;
|
||||
|
||||
for (var i=0;i<$("nb_item").value;i++) {
|
||||
tva+=$('tva_march'+i).value*1;
|
||||
htva+=$('htva_march'+i).value*1;
|
||||
tvac+=$('tvac_march'+i).value*1;
|
||||
$('tva_march'+i+'_show').value=$('tva_march'+i).value;
|
||||
|
||||
}
|
||||
|
||||
$('tva').innerHTML=Math.round(tva*100)/100;
|
||||
$('htva').innerHTML=Math.round(htva*100)/100;
|
||||
$('tvac').innerHTML=Math.round(tvac*100)/100;
|
||||
}
|
||||
/**
|
||||
* @brief update the field htva, tva_id and tvac, callback function for compute_sold
|
||||
*/
|
||||
function success_compute_sold(request,json) {
|
||||
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
var rtva=answer.tva*1;
|
||||
var rhtva=answer.htva*1;
|
||||
var rtvac=answer.tvac*1;
|
||||
var ctl=answer.ctl;
|
||||
$('sum').show();
|
||||
$('tva_march'+ctl).value=rtva;
|
||||
$('htva_march'+ctl).value=rhtva;
|
||||
$('tvac_march'+ctl).value=rtvac;
|
||||
refresh_sold();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief callback error function for compute_sold
|
||||
*/
|
||||
function error_compute_sold(request,json) {
|
||||
alert('Ajax does not work');
|
||||
}
|
||||
/**
|
||||
* @brief update the list of available predefined operation when we change the ledger.
|
||||
*/
|
||||
function update_predef(p_type,p_direct) {
|
||||
var jrn=$("p_jrn").value;
|
||||
var phpsessid=$("phpsessid").value;
|
||||
var dossier=$("gDossier").value;
|
||||
var querystring='?PHPSESSID='+phpsessid+'&gDossier='+dossier+'&l='+jrn+'&t='+p_type+'&d='+p_direct;
|
||||
$("p_jrn_predef").value=jrn;
|
||||
var action=new Ajax.Request(
|
||||
"get_predef.php",
|
||||
{
|
||||
method:'get',
|
||||
parameters:querystring,
|
||||
onFailure:error_get_predef,
|
||||
onSuccess:success_get_predef
|
||||
}
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @brief update the field predef
|
||||
*/
|
||||
function success_get_predef(request,json) {
|
||||
var i=0;
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
obj=$("pre_def");
|
||||
obj.innerHTML='';
|
||||
if ( answer.count == 0 ) return;
|
||||
|
||||
for ( i = 0 ; i < answer.count;i++) {
|
||||
value=answer['value'+i];
|
||||
label=answer['label'+i];
|
||||
obj.options[obj.options.length]=new Option(label,value);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief update the field predef
|
||||
*/
|
||||
function error_get_predef(request,json) {
|
||||
alert ("Erreur mise à jour champs non possible");
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief add a line in the form for the ledger fin
|
||||
*/
|
||||
function ledger_fin_add_row(){
|
||||
style='class="input_text"';
|
||||
var mytable=$("fin_item").tBodies[0];
|
||||
var line=mytable.rows.length;
|
||||
var row=mytable.insertRow(line);
|
||||
var phpsessid=$("phpsessid");
|
||||
var nb=$("nb_item");
|
||||
|
||||
var newNode = mytable.rows[1].cloneNode(true);
|
||||
var tt=newNode.innerHTML;
|
||||
mytable.appendChild(newNode);
|
||||
|
||||
|
||||
new_tt=tt.replace(/e_other0/g,"e_other"+nb.value);
|
||||
new_tt=new_tt.replace(/e_other0_comment/g,"e_other"+nb.value+'_comment');
|
||||
new_tt=new_tt.replace(/e_other0_amount/g,"e_other"+nb.value+'_amount');
|
||||
new_tt=new_tt.replace(/e_concerned0/g,"e_concerned"+nb.value);
|
||||
new_tt=new_tt.replace(/e_other0_label/g,"e_other"+nb.value+'_label');
|
||||
newNode.innerHTML=new_tt;
|
||||
$("e_other"+nb.value+'_label').innerHTML="";
|
||||
nb.value++;
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief add a line in the form for the purchase ledger
|
||||
*/
|
||||
function ledger_purchase_add_row(){
|
||||
style='class="input_text"';
|
||||
var mytable=$("sold_item").tBodies[0];
|
||||
var line=mytable.rows.length;
|
||||
var row=mytable.insertRow(line);
|
||||
var phpsessid=$("phpsessid");
|
||||
var nb=$("nb_item");
|
||||
var newNode = mytable.rows[1].cloneNode(true);
|
||||
var tt=newNode.innerHTML;
|
||||
mytable.appendChild(newNode);
|
||||
new_tt=tt.replace(/march0/g,"march"+nb.value);
|
||||
new_tt=new_tt.replace(/quant0/g,"quant"+nb.value);
|
||||
new_tt=new_tt.replace(/sold\(0\)/g,"sold("+nb.value+")");
|
||||
newNode.innerHTML=new_tt;
|
||||
$("e_march"+nb.value+"_label").innerHTML=' ';
|
||||
$("e_march"+nb.value+"_sell").value='0';
|
||||
$("e_march"+nb.value).value="";
|
||||
$("e_quant"+nb.value).value="1";
|
||||
nb.value++;
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief compute the sum of a purchase, update the span tvac, htva and tva
|
||||
* all the needed data are taken from the document (hidden field : phpsessid and gdossier)
|
||||
* @param the number of the changed ctrl
|
||||
*/
|
||||
function compute_purchase(p_ctl_nb) {
|
||||
var phpsessid=$("phpsessid").value;
|
||||
var dossier=$("gDossier").value;
|
||||
var a=trim($("e_march"+p_ctl_nb+'_tva_amount').value);
|
||||
$("e_march"+p_ctl_nb+'_tva_amount').value=a;
|
||||
|
||||
$("e_march"+p_ctl_nb).value=trim($("e_march"+p_ctl_nb).value);
|
||||
var qcode=$("e_march"+p_ctl_nb).value;
|
||||
|
||||
if ( qcode.length == 0 ) { clean_purchase(p_ctl_nb);refresh_purchase();return;}
|
||||
|
||||
var tva_id=$('e_march'+p_ctl_nb+'_tva_id').value;
|
||||
|
||||
$('e_march'+p_ctl_nb+'_buy').value=trim($('e_march'+p_ctl_nb+'_buy').value);
|
||||
var price=$('e_march'+p_ctl_nb+'_buy').value;
|
||||
|
||||
$('e_quant'+p_ctl_nb).value=trim($('e_quant'+p_ctl_nb).value);
|
||||
var quantity=$('e_quant'+p_ctl_nb).value;
|
||||
var querystring='?PHPSESSID='+phpsessid+'&gDossier='+dossier+'&c='+qcode+'&t='+tva_id+'&p='+price+'&q='+quantity+'&n='+p_ctl_nb;
|
||||
$('sum').hide();
|
||||
var action=new Ajax.Request(
|
||||
"compute.php",
|
||||
{
|
||||
method:'get',
|
||||
parameters:querystring,
|
||||
onFailure:error_compute_purchase,
|
||||
onSuccess:success_compute_purchase
|
||||
}
|
||||
);
|
||||
}
|
||||
function refresh_purchase() {
|
||||
var tva=0; var htva=0;var tvac=0;
|
||||
|
||||
for (var i=0;i<$("nb_item").value;i++) {
|
||||
tva+=$('tva_march'+i).value*1;
|
||||
htva+=$('htva_march'+i).value*1;
|
||||
tvac+=$('tvac_march'+i).value*1;
|
||||
}
|
||||
|
||||
$('tva').innerHTML=Math.round(tva*100)/100;
|
||||
$('htva').innerHTML=Math.round(htva*100)/100;
|
||||
$('tvac').innerHTML=Math.round(tvac*100)/100;
|
||||
}
|
||||
/**
|
||||
* @brief update the field htva, tva_id and tvac, callback function for compute_sold
|
||||
*/
|
||||
function success_compute_purchase(request,json) {
|
||||
|
||||
var answer=request.responseText.evalJSON(true);
|
||||
var rtva=answer.tva*1;
|
||||
var rhtva=answer.htva*1;
|
||||
var rtvac=answer.tvac*1;
|
||||
var ctl=answer.ctl;
|
||||
$('sum').show();
|
||||
|
||||
if ( $('e_march'+ctl+'_tva_amount').value=="" || $('e_march'+ctl+'_tva_amount').value==0 ){
|
||||
$('tva_march'+ctl).value=rtva;
|
||||
$('e_march'+ctl+'_tva_amount').value=rtva;
|
||||
}
|
||||
else {
|
||||
$('tva_march'+ctl).value=$('e_march'+ctl+'_tva_amount').value;
|
||||
}
|
||||
$('htva_march'+ctl).value=rhtva;
|
||||
$('tvac_march'+ctl).value=parseFloat($('htva_march'+ctl).value)+parseFloat($('tva_march'+ctl).value);
|
||||
refresh_purchase();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief callback error function for compute_sold
|
||||
*/
|
||||
function error_compute_purchase(request,json) {
|
||||
alert('Ajax does not work');
|
||||
}
|
||||
function compute_all_purchase() {
|
||||
var loop=0;
|
||||
for (loop=0;loop<$("nb_item").value;loop++){
|
||||
compute_purchase(loop);
|
||||
}
|
||||
var tva=0; var htva=0;var tvac=0;
|
||||
|
||||
for (var i=0;i<$("nb_item").value;i++) {
|
||||
tva+=$('tva_march'+i).value*1;
|
||||
htva+=$('htva_march'+i).value*1;
|
||||
tvac+=$('tvac_march'+i).value*1;
|
||||
}
|
||||
|
||||
$('tva').innerHTML=Math.round(tva*100)/100;
|
||||
$('htva').innerHTML=Math.round(htva*100)/100;
|
||||
$('tvac').innerHTML=Math.round(tvac*100)/100;
|
||||
|
||||
|
||||
}
|
||||
|
||||
function clean_tva(p_ctl) {
|
||||
$('e_march'+p_ctl+'_tva_amount').value=0;
|
||||
}
|
||||
|
||||
function clean_sold( p_ctl_nb)
|
||||
{
|
||||
if ( $("e_march"+p_ctl_nb) ) { $("e_march"+p_ctl_nb).value=trim($("e_march"+p_ctl_nb).value); }
|
||||
if ($('e_march'+p_ctl_nb+'_sell')) { $('e_march'+p_ctl_nb+'_sell').value='';}
|
||||
if ( $('e_quant'+p_ctl_nb)) { $('e_quant'+p_ctl_nb).value='1'; }
|
||||
if ( $('tva_march'+p_ctl_nb+'_show') ) { $('tva_march'+p_ctl_nb+'_show').value='0';}
|
||||
if ($('tva_march'+p_ctl_nb)) { $('tva_march'+p_ctl_nb).value=0;}
|
||||
if ( $('htva_march'+p_ctl_nb)) { $('htva_march'+p_ctl_nb).value=0;}
|
||||
if ( $('tvac_march'+p_ctl_nb)) {$('tvac_march'+p_ctl_nb).value=0;}
|
||||
|
||||
}
|
||||
function clean_purchase(p_ctl_nb) {
|
||||
var qcode=$("e_march"+p_ctl_nb).value;
|
||||
$('e_march'+p_ctl_nb+'_buy').value='';
|
||||
$('e_quant'+p_ctl_nb).value='1';
|
||||
$('e_march'+p_ctl_nb+'_tva_amount').value='0';
|
||||
$('tva_march'+p_ctl_nb).value=0;
|
||||
$('htva_march'+p_ctl_nb).value=0;
|
||||
$('tvac_march'+p_ctl_nb).value=0;
|
||||
}
|
||||
/**
|
||||
* @brief add a line in the form for the quick_writing
|
||||
*/
|
||||
function quick_writing_add_row(){
|
||||
style='class="input_text"';
|
||||
var mytable=$("quick_item").tBodies[0];
|
||||
var line=mytable.rows.length;
|
||||
var row=mytable.insertRow(line);
|
||||
var phpsessid=$("phpsessid");
|
||||
var nb=$("nb_item");
|
||||
|
||||
var newNode = mytable.rows[1].cloneNode(true);
|
||||
var tt=newNode.innerHTML;
|
||||
mytable.appendChild(newNode);
|
||||
|
||||
|
||||
new_tt=tt.replace(/qc_0/g,"qc_"+nb.value);
|
||||
new_tt=new_tt.replace(/amount0/g,"amount"+nb.value);
|
||||
new_tt=new_tt.replace(/poste0/g,"poste"+nb.value);
|
||||
new_tt=new_tt.replace(/ck0/g,"ck"+nb.value);
|
||||
|
||||
|
||||
newNode.innerHTML=new_tt;
|
||||
$("qc_"+nb.value).value='';
|
||||
$("amount"+nb.value).value='';
|
||||
$("poste"+nb.value).value='';
|
||||
$('qc_'+nb.value+'_label').innerHTML='';
|
||||
$('poste'+nb.value+'_label').innerHTML='';
|
||||
nb.value++;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,19 +34,24 @@ function showfiche(p_sessid,p_qcode)
|
|||
/* type must be cred or deb and name is
|
||||
* the control's name
|
||||
*/
|
||||
function SearchCard(p_sessid,type,name,jrn)
|
||||
function SearchCard(p_sessid,type,name)
|
||||
{
|
||||
|
||||
var search=document.getElementById(name).value;
|
||||
var gDossier=document.getElementById('gDossier').value;
|
||||
var jrn=0;
|
||||
if ( document.getElementById("p_jrn") ) {
|
||||
jrn=document.getElementById("p_jrn").value;
|
||||
}
|
||||
var a=window.open('fiche_search.php?first&search&fic_search='+search+'&p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name+'&gDossier='+gDossier,'item','toolbar=no,width=350,height=450,scrollbars=yes,statusbar=no');
|
||||
a.focus();
|
||||
return false;
|
||||
}
|
||||
function NewCard(p_sessid,type,name,jrn)
|
||||
function NewCard(p_sessid,type,name)
|
||||
{
|
||||
var search=document.getElementById(name).value;
|
||||
var gDossier=document.getElementById('gDossier').value;
|
||||
|
||||
var jrn=$("p_jrn").value;
|
||||
var a=window.open('fiche_new.php?p_jrn='+jrn+'&PHPSESSID='+p_sessid+'&type='+type+'&name='+name+'&gDossier='+gDossier,'item','toolbar=no,width=350,height=450,scrollbars=yes,statusbar=no');
|
||||
return false;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,26 +21,49 @@
|
|||
|
||||
/*! \file
|
||||
* \brief
|
||||
* open a windows for searching an account (poste comptable)
|
||||
* containing the javascript for opening a windows to search an account (poste comptable)
|
||||
*/
|
||||
/*!\brief open a window for searching a account
|
||||
*\param p_sessid PHPSESSID
|
||||
*\param p_dossier dossier id
|
||||
*\param p_ctl p_ctl to set
|
||||
*\param p_jrn the concerned ledger id
|
||||
*\param p_return update with the pcm_val or pcm_lib (value=label or poste)
|
||||
*\param p_search take the value of the ctl and make a search
|
||||
*\see poste_search.php
|
||||
*/
|
||||
function SearchPoste(p_sessid,p_dossier,p_ctl,p_jrn,p_return,p_search)
|
||||
{
|
||||
var comment="";
|
||||
if ( document.getElementById(p_ctl) && p_search=='Y') {
|
||||
comment=document.getElementById(p_ctl).value;
|
||||
}
|
||||
|
||||
|
||||
var win=window.open('poste_search.php?gDossier='+p_dossier+'&p_jrn='+p_jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+"&p_comment="+comment+"&search"+"&ret="+p_return,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes');
|
||||
}
|
||||
/*!\brief open a window for searching a account
|
||||
*\param p_sessid PHPSESSID
|
||||
*\param p_dossier dossier id
|
||||
*\param p_ctl p_ctl to set
|
||||
*\param p_jrn the concerned ledger id
|
||||
*\param p_return update with the pcm_val or pcm_lib (value=label or poste)
|
||||
*\param p_search take the value of the ctl and make a search
|
||||
*\see poste_search.php
|
||||
*/
|
||||
|
||||
function SearchPoste(p_sessid,p_dossier,p_ctl,p_jrn)
|
||||
function SearchPosteFilter(p_sessid,p_dossier,p_ctl,p_filter,jrn)
|
||||
{
|
||||
var comment="";
|
||||
if ( document.getElementById(p_ctl) ) {
|
||||
comment=document.getElementById(p_ctl).value;
|
||||
}
|
||||
|
||||
|
||||
var win=window.open('poste_search.php?gDossier='+p_dossier+'&p_jrn='+p_jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+"&p_comment="+comment+"&search",'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes');
|
||||
var win=window.open('poste_search.php?gDossier='+p_dossier+'&p_jrn='+jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+'&filter='+p_filter+'&p_comment='+comment+"&search&ret=label",'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes');
|
||||
}
|
||||
function SearchPosteFilter(p_sessid,p_dossier,p_ctl,p_filter,jrn)
|
||||
{
|
||||
var win=window.open('poste_search.php?gDossier='+p_dossier+'&p_jrn='+jrn+'&p_ctl='+p_ctl+'&PHPSESSID='+p_sessid+'&filter='+p_filter,'Cherche','toolbar=no,width=600,height=600,scrollbars=yes,resizable=yes');
|
||||
}
|
||||
function GetIt() {
|
||||
window.close();
|
||||
}
|
||||
function GetIt() {
|
||||
window.close();
|
||||
}
|
||||
function SetItChild(p_ctl,p_value,p_label) {
|
||||
|
||||
self.opener.SetItParent(p_ctl,p_value,p_label);
|
||||
|
|
@ -48,12 +71,26 @@ function SetItChild(p_ctl,p_value,p_label) {
|
|||
}
|
||||
function SetItParent(p_ctl,p_value,p_label) {
|
||||
|
||||
var f=document.getElementById(p_ctl);
|
||||
f.value=p_value;
|
||||
var f1=document.getElementById(p_ctl+"_label");
|
||||
f1.innerHTML=p_label;
|
||||
var f=document.getElementById(p_ctl);
|
||||
f.value=p_value;
|
||||
var f1=document.getElementById(p_ctl+"_label");
|
||||
if ( f1) f1.innerHTML=p_label;
|
||||
|
||||
}
|
||||
|
||||
function set_poste_child(p_ctl,p_value) {
|
||||
|
||||
self.opener.set_poste_parent(p_ctl,p_value);
|
||||
window.close();
|
||||
}
|
||||
function set_poste_parent(p_ctl,p_value) {
|
||||
|
||||
var f=document.getElementById(p_ctl);
|
||||
f.value+='['+p_value+']';
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* SetValue( p_ctl,p_value )
|
||||
/* p_ctl is the name of the control
|
||||
/* p_value is the value to set in
|
||||
|
|
|
|||
80
html/js/todo_list.js
Normal file
80
html/js/todo_list.js
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
/* $Revision$ */
|
||||
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief this file contains all the javascript needed by the todo_list.
|
||||
* it requires prototype.js. The calling page must have the phpsessid and
|
||||
* the gDossier
|
||||
*
|
||||
*/
|
||||
function todo_list_show(p_id) {
|
||||
var gDossier=$('gDossier').value;
|
||||
var phpsessid=$('phpsessid').value;
|
||||
|
||||
var action=new Ajax.Request(
|
||||
'todo_list.php',
|
||||
{
|
||||
method:'get',
|
||||
parameters:{'show':1,'id':p_id,'PHPSESSID':phpsessid,'gDossier':gDossier},
|
||||
onFailure:todo_list_show_error,
|
||||
onSuccess:todo_list_show_success
|
||||
}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
function todo_list_show_success(request,json) {
|
||||
var answer = request.responseText.evalJSON(true);
|
||||
|
||||
$('p_title').value=answer.tl_title;
|
||||
|
||||
$('p_date').value=answer.tl_date;
|
||||
$('p_desc').value=answer.tl_desc;
|
||||
$('tl_id').value=answer.tl_id;
|
||||
$('add_todo_list').show();
|
||||
$('add').hide();
|
||||
}
|
||||
function todo_list_show_error(request_json) {
|
||||
alert ('failure');
|
||||
}
|
||||
function add_todo() {
|
||||
$('add_todo_list').show()
|
||||
$('add').hide();
|
||||
$('p_title').value='';
|
||||
|
||||
$('p_date').value='';
|
||||
$('p_desc').value='';
|
||||
$('tl_id').value=0;
|
||||
}
|
||||
function todo_list_remove(p_ctl) {
|
||||
$("tr"+p_ctl).hide();
|
||||
var gDossier=$('gDossier').value;
|
||||
var phpsessid=$('phpsessid').value;
|
||||
|
||||
var action=new Ajax.Request(
|
||||
'todo_list.php',
|
||||
{
|
||||
method:'get',
|
||||
parameters:{'del':1,'id':p_ctl,'PHPSESSID':phpsessid,'gDossier':gDossier}
|
||||
}
|
||||
);
|
||||
return false;
|
||||
|
||||
}
|
||||
|
|
@ -51,7 +51,7 @@ if ( isset ($_POST["update"] ) ) {
|
|||
// Check if p_parent and p_val are number
|
||||
if ( ! is_numeric($p_val) || ! is_numeric($p_parent) ) {
|
||||
// not number no update
|
||||
echo '<script> alert(\' Valeurs invalides, pas de changement opéré;\');
|
||||
echo '<script> alert(\' Valeurs invalides, pas de changement opéré;\');
|
||||
</script>';
|
||||
echo "<script>
|
||||
window.close();
|
||||
|
|
|
|||
|
|
@ -69,16 +69,16 @@ echo JS_VIEW_JRN_MODIFY;
|
|||
function show_div (p_div) {
|
||||
// show the div
|
||||
// hide the div
|
||||
if ( $(p_div) ) {
|
||||
var a=$(p_div);
|
||||
if ( document.getElementById(p_div) ) {
|
||||
var a=document.getElementById(p_div);
|
||||
a.style.display="block";
|
||||
}
|
||||
}
|
||||
function hide_div (p_div) {
|
||||
// hide the div
|
||||
if ( $(p_div) ) {
|
||||
var a=$(p_div);
|
||||
a.style.display="none";
|
||||
if ( document.getElementById(p_div) ) {
|
||||
var a=document.getElementById(p_div);
|
||||
a.style.display="none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -220,13 +220,13 @@ if ( isset($_POST['update_record']) ) {
|
|||
save_upload_document($cn,$_POST['jr_grpt_id']);
|
||||
}
|
||||
if ( isset ($_POST['is_paid'] ))
|
||||
$Res=ExecSql($cn,"update jrn set jr_rapt='paid' where jr_id=".$_POST['jr_id']);
|
||||
$Res=ExecSqlParam($cn,"update jrn set jr_rapt='paid' where jr_id=$1",array($_POST['jr_id']));
|
||||
|
||||
if ( isset ($_POST['to_remove'] )) {
|
||||
/*! \note we don't remove the document file if another
|
||||
* operation needs it.
|
||||
*/
|
||||
$ret=ExecSql($cn,"select jr_pj from jrn where jr_id=".$_POST['jr_id']);
|
||||
$ret=ExecSqlParam($cn,"select jr_pj from jrn where jr_id=$1",array($_POST['jr_id']));
|
||||
if (pg_num_rows($ret) != 0) {
|
||||
$r=pg_fetch_array($ret,0);
|
||||
$old_oid=$r['jr_pj'];
|
||||
|
|
@ -237,8 +237,8 @@ if ( isset($_POST['update_record']) ) {
|
|||
if ( $c == 1 )
|
||||
pg_lo_unlink($cn,$old_oid);
|
||||
}
|
||||
ExecSql($cn,"update jrn set jr_pj=null, jr_pj_name=null, ".
|
||||
"jr_pj_type=null where jr_id=".$_POST['jr_id']);
|
||||
ExecSqlParam($cn,"update jrn set jr_pj=null, jr_pj_name=null, ".
|
||||
"jr_pj_type=null where jr_id=$1",array($_POST['jr_id']));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -278,8 +278,8 @@ if ( isset($_POST['update_record']) ) {
|
|||
// so we fetch them all from the db
|
||||
$sql="select j_id,j_poste,to_char(j_date,'DD.MM.YYYY') as j_date,j_debit ".
|
||||
"from jrn join jrnx on (j_grpt=jr_grpt_id) ".
|
||||
"where jr_id=".$_POST['jr_id'];
|
||||
$res=ExecSql($cn,$sql);
|
||||
"where jr_id=$1";
|
||||
$res=ExecSqlParam($cn,$sql,array($_POST['jr_id']));
|
||||
|
||||
$array_jid=pg_fetch_all($res);
|
||||
// if j_poste match 6 or 7 we insert them
|
||||
|
|
|
|||
|
|
@ -40,17 +40,6 @@ $User->Check();
|
|||
include_once("preference.php");
|
||||
include_once("user_menu.php");
|
||||
echo '<div class="u_tmenu">';
|
||||
/*
|
||||
echo '<div style="float:left">';
|
||||
echo "<H2 class=\"info\"> Paramètre ".dossier::name().'<h2>'.
|
||||
'</div>'.'
|
||||
<div align="right">
|
||||
<A HREF="user_compta.php?gDossier='.$gDossier.'" title="Comptabilité"><IMG SRC="image/compta.png" width="36" border="0" ></A>
|
||||
|
||||
<A HREF="login.php" title="Accueil"><IMG src="image/home.png" width="36" border="0" ></A>
|
||||
<A HREF="logout.php" title="Sortie"><IMG src="image/logout.png" title="Logout" width="36" border="0"></A>
|
||||
</div>
|
||||
*/
|
||||
|
||||
echo menu_tool('param');
|
||||
echo '<div style="float:left">';
|
||||
|
|
@ -98,6 +87,9 @@ switch ($p_action) {
|
|||
case 'company':
|
||||
$default=1;
|
||||
break;
|
||||
case 'preod':
|
||||
$default=12;
|
||||
break;
|
||||
default:
|
||||
$default="parametre.php?p_action=".$p_action;
|
||||
}
|
||||
|
|
@ -208,7 +200,7 @@ if ( $p_action=='company') {
|
|||
$array=array (
|
||||
array("value"=>"ob",'label'=>"obligatoire"),
|
||||
array("value"=>"op",'label'=>"optionnel"),
|
||||
array("value"=>"nu",'label'=>"non utilisé")
|
||||
array("value"=>"nu",'label'=>"non utilisé")
|
||||
);
|
||||
$compta=new widget("select");
|
||||
$compta->table=1;
|
||||
|
|
@ -219,15 +211,15 @@ if ( $p_action=='company') {
|
|||
echo '<form method="post" action="?p_action=company">';
|
||||
echo dossier::hidden();
|
||||
echo "<table class=\"result\">";
|
||||
echo "<tr>".$all->IOValue("p_name",$my->MY_NAME,"Nom société")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_tel",$my->MY_TEL,"Téléphone")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_name",$my->MY_NAME,"Nom société")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_tel",$my->MY_TEL,"Téléphone")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_fax",$my->MY_FAX,"Fax")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_street",$my->MY_STREET,"Rue ")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_no",$my->MY_NUMBER,"Numéro")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_no",$my->MY_NUMBER,"Numéro")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_cp",$my->MY_CP,"Code Postal")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_Commune",$my->MY_COMMUNE,"Commune")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_pays",$my->MY_PAYS,"Pays")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_tva",$my->MY_TVA,"Numéro de Tva")."</tr>";
|
||||
echo "<tr>".$all->IOValue("p_tva",$my->MY_TVA,"Numéro de Tva")."</tr>";
|
||||
echo "<tr>".$compta->IOValue("p_compta",$array,"Utilisation de la compta. analytique")."</tr>";
|
||||
echo "</table>";
|
||||
$submit=new widget("submit");
|
||||
|
|
@ -239,7 +231,7 @@ if ( $p_action=='company') {
|
|||
//-----------------------------------------------------
|
||||
echo "</DIV>";
|
||||
if ( $p_action == 'document' ) {
|
||||
echo '<div class="u_content">';
|
||||
echo '<div class="content">';
|
||||
require_once('document_modele.inc.php');
|
||||
echo '</div>';
|
||||
}
|
||||
|
|
@ -255,13 +247,25 @@ if ( $p_action == 'pcmn' ) {
|
|||
if ( $p_action == 'sec' ) {
|
||||
require_once('param_sec.inc.php');
|
||||
}
|
||||
//----------------------------------------------------------------------
|
||||
// Predefined operation
|
||||
//----------------------------------------------------------------------
|
||||
if ( $p_action == 'preod' ) {
|
||||
require_once('preod.inc.php');
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Definition of report
|
||||
//---------------------------------------------------------------------------
|
||||
if ( $p_action == 'defrapport' ) {
|
||||
require_once('report.inc.php');
|
||||
}
|
||||
//----------------------------------------------------------------------
|
||||
// Ledger parameter
|
||||
//----------------------------------------------------------------------
|
||||
if ( $p_action == 'jrn' ) {
|
||||
$sa=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
|
||||
// echo '<div class="u_content">';
|
||||
// echo '<div class="content">';
|
||||
if ( $sa == "add")
|
||||
require_once ('param_jrn_add.inc.php');
|
||||
elseif ($sa=='detail')
|
||||
|
|
|
|||
|
|
@ -65,15 +65,15 @@ if ( ! isset ($_REQUEST['oper_detail'])) {
|
|||
"\"Code interne\";".
|
||||
"\"Date\";".
|
||||
"\"Description\";".
|
||||
"\"Débit\";".
|
||||
"\"Crédit\"";
|
||||
"\"Débit\";".
|
||||
"\"Crédit\"";
|
||||
printf("\n");
|
||||
|
||||
|
||||
foreach ( $Poste->row as $op ) {
|
||||
echo '"'.$pos['pcm_val'].'";'.
|
||||
'"'.$op['jr_internal'].'"'.";".
|
||||
'"'.$op['j_date'].'"'.";".
|
||||
'"'.$op['jr_date'].'"'.";".
|
||||
'"'.$op['description'].'"'.";".
|
||||
sprintf("%8.4f",$op['deb_montant']).";".
|
||||
sprintf("%8.4f",$op['cred_montant']);
|
||||
|
|
@ -81,7 +81,7 @@ if ( ! isset ($_REQUEST['oper_detail'])) {
|
|||
|
||||
|
||||
}
|
||||
$solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur";
|
||||
$solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur";
|
||||
$diff=abs($tot_deb-$tot_cred);
|
||||
printf(
|
||||
'"'."$solde_type".'"'.";".
|
||||
|
|
@ -123,7 +123,7 @@ if ( ! isset ($_REQUEST['oper_detail'])) {
|
|||
$r['j_poste'],
|
||||
$r['j_qcode'],
|
||||
$r['jr_internal'],
|
||||
$r['j_date'],
|
||||
$r['jr_date'],
|
||||
$a['description'],
|
||||
$r['j_montant'],
|
||||
$r['debit']);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ foreach ($a_poste as $poste)
|
|||
|
||||
// $pdf->ezText($Libelle,30);
|
||||
$pdf->ezTable($array,
|
||||
array ('jr_internal'=>'Opération',
|
||||
array ('jr_internal'=>'Operation',
|
||||
'j_date' => 'Date',
|
||||
'jrn_name'=>'Journal',
|
||||
'description'=>'Description',
|
||||
|
|
@ -75,9 +75,9 @@ foreach ($a_poste as $poste)
|
|||
),$Libelle,
|
||||
array('shaded'=>1,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('montant'=> array('justification'=>'right'),
|
||||
)));
|
||||
$str_debit=sprintf("Débit % 12.2f",$tot_deb);
|
||||
$str_cred=sprintf("Crédit % 12.2f",$tot_cred);
|
||||
)),true);
|
||||
$str_debit=utf8_decode(sprintf("Débit % 12.2f",$tot_deb));
|
||||
$str_cred=utf8_decode(sprintf("Crédit % 12.2f",$tot_cred));
|
||||
$diff_solde=$tot_deb-$tot_cred;
|
||||
if ( $diff_solde < 0 ) {
|
||||
$solde=" C ";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
include_once ("ac_common.php");
|
||||
require_once('class_acc_ledger.php');
|
||||
|
||||
html_page_start($_SESSION['g_theme'],'onLoad="window.focus();"');
|
||||
html_min_page_start($_SESSION['g_theme'],'onLoad="window.focus();"');
|
||||
include_once ("postgres.php");
|
||||
include_once("jrn.php");
|
||||
/* Admin. Dossier */
|
||||
|
|
@ -46,13 +46,12 @@ $condition="";
|
|||
$cn=DbConnect($gDossier);
|
||||
if ( isset($_GET['search']) ) {
|
||||
$c1=0;
|
||||
foreach( $_GET as $key=>$element){
|
||||
${"$key"}=$element;
|
||||
}
|
||||
extract ($_GET);
|
||||
|
||||
$condition="";
|
||||
if ( strlen(trim($p_comment)) != 0 ) {
|
||||
$condition=" where (upper(pcm_lib) like upper('%$p_comment%') or ".
|
||||
" pcm_val::text like '$p_comment%') ";
|
||||
$condition=" where (upper(pcm_lib) like upper('%".pg_escape_string($p_comment)."%') or ".
|
||||
" pcm_val::text like '%".pg_escape_string($p_comment)."%') ";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -80,9 +79,9 @@ if ( isset($_GET['filter']) && $_GET['filter'] != 'all') {
|
|||
if ( strlen (trim($item_cred))) {
|
||||
if ( strstr($item_cred,"*") == true ) {
|
||||
$item_cred=strtr($item_cred,"*","%");
|
||||
$Sql=" pcm_val like '$item_cred' or";
|
||||
$Sql=" pcm_val::text like '$item_cred' or";
|
||||
} else {
|
||||
$Sql=" pcm_val = '$item_cred' or";
|
||||
$Sql=" pcm_val::text = '$item_cred' or";
|
||||
}
|
||||
$SqlCred=$SqlCred.$Sql;
|
||||
}
|
||||
|
|
@ -98,7 +97,7 @@ if ( isset($_GET['filter']) && $_GET['filter'] != 'all') {
|
|||
echo_debug('poste_search.php',__LINE__,"l_line[jrn_def_class_deb] $l_line[jrn_def_class_deb] item_deb $item_deb");
|
||||
if ( strstr($item_deb,"*") == true ) {
|
||||
$item_cred=strtr($item_deb,"*","%");
|
||||
$Sql=" pcm_val like '$item_deb' or";
|
||||
$Sql=" pcm_val::text like '$item_deb' or";
|
||||
} else {
|
||||
$Sql=" pcm_val = '$item_deb' or";
|
||||
}
|
||||
|
|
@ -126,53 +125,64 @@ echo_debug('poste_search.php',__LINE__,"condition = $condition");
|
|||
echo '<FORM ACTION="poste_search.php'.$url.'" METHOD="GET">';
|
||||
echo dossier::hidden();
|
||||
if ( isset($p_ctl) ) {
|
||||
if ($p_ctl != 'not') echo '<INPUT TYPE="hidden" name="p_ctl" value="'.$p_ctl.'">';
|
||||
echo '<INPUT TYPE="hidden" name="p_ctl" value="'.$p_ctl.'">';
|
||||
}
|
||||
echo '<TABLE>';
|
||||
echo '<TR>';
|
||||
if (isset ($ret)) echo widget::hidden('ret',$ret);
|
||||
|
||||
/* echo '<TD>Poste Comptable Commence par </TD>'; */
|
||||
/* if ( ! isset ($p_class) ) $p_class=""; */
|
||||
/* $opt=" <INPUT TYPE=\"text\" value=\"$p_class\" name=\"st_with\">"; */
|
||||
/* echo '<TD> <INPUT TYPE="text" name="p_class" VALUE="'.$p_class.'"></TD>'; */
|
||||
|
||||
echo '<TD> Libellé ou poste comptable</TD>';
|
||||
echo '<TD> contient </TD>';
|
||||
echo 'Libellé ou poste comptable ';
|
||||
echo ' contient ';
|
||||
if ( ! isset ($p_comment) ) $p_comment="";
|
||||
echo '<TD> <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD></TR>';
|
||||
echo '</TABLE>';
|
||||
echo ' <INPUT TYPE="text" name="p_comment" VALUE="'.$p_comment.'"></TD></TR>';
|
||||
echo '<INPUT TYPE="submit" name="search" value="cherche">';
|
||||
echo '</FORM>';
|
||||
|
||||
echo '<p class="notice">Nombre de lignes affichées est limité</p>';
|
||||
// if request search
|
||||
if ( isset($_GET['search']) or isset($_GET['filter']) ) {
|
||||
$Res=ExecSql($cn,"select pcm_val,pcm_lib from tmp_pcmn $condition order by pcm_val::text");
|
||||
if ( isset($_GET['search']) || isset($_GET['filter']) ) {
|
||||
$Res=ExecSql($cn,"select pcm_val,pcm_lib from tmp_pcmn $condition order by pcm_val::text ".
|
||||
" limit 70");
|
||||
|
||||
$MaxLine=pg_NumRows($Res);
|
||||
if ( $MaxLine==0) {
|
||||
html_page_stop();
|
||||
return;
|
||||
}
|
||||
echo '<TABLE BORDER="0">';
|
||||
echo '<TABLE style="width:90%;border-collapse:collapse;">';
|
||||
$l_id="";
|
||||
|
||||
$ahref="";
|
||||
$end_ahref="";
|
||||
for ( $i=0; $i < $MaxLine; $i++) {
|
||||
$l_line=pg_fetch_array($Res,$i);
|
||||
echo "<TR>";
|
||||
$even=($i%2 == 0)?"odd":"even";
|
||||
echo "<TR class=\"$even\">";
|
||||
// if p_ctl is set we need to be able to return the value
|
||||
if (isset($p_ctl) && $p_ctl != 'not' ){
|
||||
echo '<TD>';
|
||||
if (isset($ret) && $ret == 'label' ){
|
||||
$slabel=FormatString($l_line['pcm_lib']);
|
||||
echo '<input type="checkbox" onClick="SetItChild(\''.$p_ctl.'\',\''.$l_line['pcm_val'].'\',\''.
|
||||
$ahref='<A href="#" class="mtitle" onClick="SetItChild(\''.$p_ctl.'\',\''.$l_line['pcm_val'].'\',\''.
|
||||
$slabel.'\')">';
|
||||
echo '</td>';
|
||||
$end_ahref='</A>';
|
||||
|
||||
}
|
||||
echo '<TD>';
|
||||
if (isset($ret) && $ret == 'poste' ){
|
||||
$ahref='<A href="#" class="mtitle" onClick="set_poste_child(\''.$p_ctl.'\',\''.$l_line['pcm_val'].'\')">';
|
||||
$end_ahref='</A>';
|
||||
|
||||
}
|
||||
|
||||
echo "<TD class=\"$even\">";
|
||||
echo $ahref;
|
||||
echo $l_line['pcm_val'];
|
||||
echo $end_ahref;
|
||||
echo '</TD>';
|
||||
|
||||
echo '<TD>';
|
||||
echo $ahref;
|
||||
echo $l_line['pcm_lib'];
|
||||
echo $end_ahref;
|
||||
echo '</TD>';
|
||||
echo "</TR>";
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ $t_cent="";
|
|||
|
||||
if ( isset($central) ) {
|
||||
$bal->central='Y';
|
||||
$t_cent="centralisée";
|
||||
$t_cent=utf8_decode("centralisée");
|
||||
}
|
||||
else
|
||||
$bal->central='N';
|
||||
|
|
@ -83,14 +83,14 @@ if ( sizeof($array) == 0 ) {
|
|||
}
|
||||
$a=get_periode($cn,$from_periode);
|
||||
$b=get_periode($cn,$to_periode);
|
||||
$per_text=" période du ".$a['p_start']." au ".$b['p_end'];
|
||||
$per_text=utf8_decode(" période du ").$a['p_start']." au ".$b['p_end'];
|
||||
$pdf=new Cezpdf('a4');
|
||||
$pdf->selectFont('./addon/fonts/Helvetica.afm');
|
||||
$pdf->ezSetCmMargins(2,2,2,2);
|
||||
header_pdf($cn,$pdf);
|
||||
$pdf->ezTable($array,array('poste'=>'Poste','label'=>'Libellé','sum_deb'=>'Total Débit',
|
||||
'sum_cred'=>'Total crédit','solde_deb'=>'Solde débiteur',
|
||||
'solde_cred'=>'Solde créditeur'),'Balance des comptes '.$t_cent.$per_text);
|
||||
$pdf->ezTable($array,array('poste'=>'Poste','label'=>utf8_decode('Libellé'),'sum_deb'=>utf8_decode('Total Débit'),
|
||||
'sum_cred'=>utf8_decode('Total crédit'),'solde_deb'=>utf8_decode('Solde débiteur'),
|
||||
'solde_cred'=>utf8_decode('Solde créditeur')),'Balance des comptes '.$t_cent.$per_text,null,true);
|
||||
$pdf->ezStream();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ if ($User->admin != 1) {
|
|||
}
|
||||
|
||||
if (! isset ($_GET['UID']) && ! isset($_POST['UID']) ) {
|
||||
//Message d'erreur si UID non positionné
|
||||
//Message d'erreur si UID non positionné
|
||||
echo_debug('priv_user.php',__LINE__,"UID NOT DEFINED");
|
||||
html_page_stop();
|
||||
return;
|
||||
|
|
@ -76,7 +76,7 @@ if ( isset ( $_GET['reset_passwd']) ){
|
|||
$cn=DbConnect();
|
||||
$l_pass=md5('phpcompta');
|
||||
$Res=ExecSql($cn, "update ac_users set use_pass='$l_pass' where use_id=$uid");
|
||||
echo '<H2 class="info"> Password remis à phpcompta</H2>';
|
||||
echo '<H2 class="info"> Password remis à phpcompta</H2>';
|
||||
}
|
||||
if ( isset ($_POST['SAVE']) ){
|
||||
$uid = $_POST['UID'];
|
||||
|
|
@ -187,7 +187,7 @@ echo "</TD></TR>";
|
|||
<TR>
|
||||
<TD>
|
||||
<!-- Show all database and rights -->
|
||||
<H2 class="info"> Droit par défaut </H2>
|
||||
<H2 class="info"> Droit par défaut </H2>
|
||||
<TABLE>
|
||||
<?php
|
||||
$Dossier=ShowDossier('all',1,0);
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ list($array,$tot_deb,$tot_cred)=$Fiche->get_row(
|
|||
);
|
||||
if ( count($Fiche->row ) == 0 )
|
||||
{
|
||||
echo "Aucune donnée";
|
||||
echo "Aucune donnée";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -55,13 +55,13 @@ echo '"Qcode";'.
|
|||
"\"Code interne\";".
|
||||
"\"Date\";".
|
||||
"\"Description\";".
|
||||
"\"Débit\";".
|
||||
"\"Crédit\"";
|
||||
"\"Débit\";".
|
||||
"\"Crédit\"";
|
||||
printf("\n");
|
||||
foreach ( $Fiche->row as $op ) {
|
||||
echo '"'.$op['j_qcode'].'";'.
|
||||
'"'.$op['jr_internal'].'"'.";".
|
||||
'"'.$op['j_date'].'"'.";".
|
||||
'"'.$op['jr_date'].'"'.";".
|
||||
'"'.$op['description'].'"'.";".
|
||||
sprintf("%8.4f",$op['deb_montant']).";".
|
||||
sprintf("%8.4f",$op['cred_montant']);
|
||||
|
|
@ -69,7 +69,7 @@ printf("\n");
|
|||
|
||||
}
|
||||
}else {
|
||||
echo '"Poste";"Qcode";"internal"';
|
||||
echo '"Poste";"Qcode";"internal";';
|
||||
echo '"Date";'.
|
||||
"\"Description\";".
|
||||
"\"Montant\";".
|
||||
|
|
@ -86,8 +86,8 @@ printf("\n");
|
|||
$r['j_poste'],
|
||||
$r['j_qcode'],
|
||||
$r['jr_internal'],
|
||||
$r['j_date'],
|
||||
$a['description'],
|
||||
$r['jr_date'],
|
||||
$r['description'],
|
||||
$r['j_montant'],
|
||||
$r['debit']);
|
||||
printf("\r\n");
|
||||
|
|
@ -98,7 +98,7 @@ printf("\n");
|
|||
|
||||
}
|
||||
}
|
||||
$solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur";
|
||||
$solde_type=($tot_deb>$tot_cred)?"solde débiteur":"solde créditeur";
|
||||
$diff=abs($tot_deb-$tot_cred);
|
||||
printf(
|
||||
'"'."$solde_type".'"'.";".
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $Libelle=sprintf("(%s) %s ",$Fiche->id,$Fiche->getName());
|
|||
header_pdf($cn,$pdf);
|
||||
// $pdf->ezText($Libelle,30);
|
||||
$pdf->ezTable($array,
|
||||
array ('jr_internal'=>'Opération',
|
||||
array ('jr_internal'=>'Operation',
|
||||
'j_date' => 'Date',
|
||||
'jrn_name'=>'Journal',
|
||||
'description'=>'Description',
|
||||
|
|
@ -65,9 +65,9 @@ $pdf->ezTable($array,
|
|||
),$Libelle,
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500,
|
||||
'cols'=>array('montant'=> array('justification'=>'right'),
|
||||
)));
|
||||
$str_debit=sprintf("Débit % 12.2f",$tot_deb);
|
||||
$str_cred=sprintf("Crédit % 12.2f",$tot_cred);
|
||||
)),true);
|
||||
$str_debit=utf8_decode(sprintf("Débit % 12.2f",$tot_deb));
|
||||
$str_cred=utf8_decode(sprintf("Crédit % 12.2f",$tot_cred));
|
||||
$diff_solde=$tot_deb-$tot_cred;
|
||||
if ( $diff_solde < 0 ) {
|
||||
$solde=" C ";
|
||||
|
|
|
|||
|
|
@ -34,6 +34,6 @@ require_once('class_dossier.php');
|
|||
$gDossier=dossier::id();
|
||||
/*!\todo Add the security here */
|
||||
$cn=DbConnect($gDossier);
|
||||
ExecSql($cn,"delete from operation_analytique where oa_group=".$_GET['oa']);
|
||||
ExecSqlParam($cn,"delete from operation_analytique where oa_group=$1",array($_GET['oa']));
|
||||
echo_debug(__FILE__,__LINE__,$_GET);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ include_once("ac_common.php");
|
|||
include_once("postgres.php");
|
||||
include_once("class.ezpdf.php");
|
||||
require_once("check_priv.php");
|
||||
echo_debug('sec_pdf.php',__LINE__,"imp pdf securité");
|
||||
echo_debug('sec_pdf.php',__LINE__,"imp pdf securité");
|
||||
$cn=DbConnect($gDossier);
|
||||
//-----------------------------------------------------
|
||||
// Security
|
||||
|
|
@ -65,7 +65,7 @@ $str_user=sprintf("( %d ) %s %s [ %s ]",
|
|||
$pdf->ezText($str_user,14,array('justification'=>'center'));
|
||||
|
||||
if ( $SecUser->active==0)
|
||||
$pdf->ezText('Bloqué',12,array('justification'=>'center'));
|
||||
$pdf->ezText('Bloqué',12,array('justification'=>'center'));
|
||||
|
||||
if ( $SecUser->admin==1)
|
||||
$pdf->ezText('Administrateur',12,array('justification'=>'center'));
|
||||
|
|
@ -78,7 +78,7 @@ for ($e=0;$e < pg_NumRows($Res);$e++) {
|
|||
$priv=CheckJrn($gDossier,$SecUser->login,$row['jrn_def_id']);
|
||||
switch($priv) {
|
||||
case 0:
|
||||
$a_jrn[$e]['priv']="pas d'accès";
|
||||
$a_jrn[$e]['priv']="pas d'accès";
|
||||
break;
|
||||
case 1:
|
||||
$a_jrn[$e]['priv']="lecture";
|
||||
|
|
@ -92,7 +92,7 @@ for ($e=0;$e < pg_NumRows($Res);$e++) {
|
|||
}
|
||||
$pdf->ezTable($a_jrn,
|
||||
array ('jrn_name'=>' Journal',
|
||||
'priv'=>'Privilège')," ",
|
||||
'priv'=>'Privilège')," ",
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500));
|
||||
|
||||
//-----------------------------------------------------
|
||||
|
|
@ -108,18 +108,18 @@ for ( $i =0 ; $i < $Max; $i++ ) {
|
|||
$right=check_action($gDossier,$SecUser->login,$l_line['ac_id']);
|
||||
switch ($right) {
|
||||
case 0:
|
||||
$action['priv']="Pas d'accès";
|
||||
$action['priv']="Pas d'accès";
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
$action['priv']="Accès";
|
||||
$action['priv']="Accès";
|
||||
break;
|
||||
}
|
||||
$a_action[$i]=$action;
|
||||
}
|
||||
$pdf->ezTable($a_action ,
|
||||
array ('lib'=>'Description',
|
||||
'priv'=>'Privilège')," ",
|
||||
'priv'=>'Privilège')," ",
|
||||
array('shaded'=>0,'showHeadings'=>1,'width'=>500));
|
||||
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue