From 31ed2e99dddb3a969a1d35ae32257c24681032e3 Mon Sep 17 00:00:00 2001
From: sparkyx
Date: Wed, 12 Jul 2006 21:24:48 +0000
Subject: [PATCH] Documentation updated
---
doc/developper/account_repository.html | 12 +-
doc/developper/dossier1.dia | 3748 ++++++++++++++---
doc/developper/dossier1.html | 3051 +++++++++++++-
doc/developper/header.html | 2 +
doc/developper/html/ac__common_8php.html | 10 +-
doc/developper/html/action_8inc_8php.html | 14 +-
.../html/admin_8inc_8php-source.html | 172 +
doc/developper/html/admin_8inc_8php.html | 307 ++
.../html/admin__repo_8php-source.html | 4 +-
doc/developper/html/admin__repo_8php.html | 2 +-
doc/developper/html/annulation_8php.html | 2 +-
.../html/argenta__be_8inc_8php-source.html | 119 +
.../html/argenta__be_8inc_8php.html | 338 ++
doc/developper/html/balance_8php.html | 10 +-
.../html/bank_8inc_8php-source.html | 310 ++
doc/developper/html/bank_8inc_8php.html | 891 ++++
doc/developper/html/bilan_8php.html | 4 +-
.../html/cbc__be_8inc_8php-source.html | 2 +-
doc/developper/html/central__inc_8php.html | 2 +-
doc/developper/html/check__priv_8php.html | 2 +-
doc/developper/html/classAdmin.html | 321 ++
doc/developper/html/classAdmin.png | Bin 0 -> 274 bytes
doc/developper/html/classBalance.html | 2 +-
doc/developper/html/classCezpdf.html | 4 +-
doc/developper/html/classCpdf.html | 4 +-
doc/developper/html/classCreport.html | 2 +-
doc/developper/html/classCustomer.html | 50 +-
doc/developper/html/classDocument.html | 10 +-
.../html/classDocument__modele.html | 2 +-
doc/developper/html/classSupplier.html | 418 ++
doc/developper/html/classSupplier.png | Bin 0 -> 301 bytes
.../html/class__action_8php-source.html | 8 +-
.../html/class__admin_8php-source.html | 120 +
doc/developper/html/class__admin_8php.html | 27 +
.../html/class__contact_8php-source.html | 4 +-
.../html/class__customer_8php-source.html | 52 +-
.../html/class__document_8php-source.html | 2 +-
.../html/class__fiche_8php-source.html | 8 +-
.../html/class__jrn_8php-source.html | 10 +-
.../html/class__supplier_8php-source.html | 152 +
doc/developper/html/class__supplier_8php.html | 27 +
.../html/class__user_8php-source.html | 6 +-
.../html/class__widget_8php-source.html | 180 +-
doc/developper/html/classaction.html | 14 +-
doc/developper/html/classcl__user.html | 14 +-
doc/developper/html/classcontact.html | 6 +-
doc/developper/html/classcontact.png | Bin 0 -> 282 bytes
doc/developper/html/classfiche.html | 18 +-
doc/developper/html/classjrn.html | 19 +-
doc/developper/html/classposte.html | 6 +-
doc/developper/html/classrapport.html | 2 +-
doc/developper/html/classwidget.html | 178 +-
.../html/client_8inc_8php-source.html | 12 +-
doc/developper/html/commercial_8php.html | 2 +-
.../html/contact_8inc_8php-source.html | 12 +-
doc/developper/html/contact_8inc_8php.html | 2 +-
doc/developper/html/debug_8php.html | 2 +-
.../html/depense_8inc_8php-source.html | 292 ++
doc/developper/html/depense_8inc_8php.html | 751 ++++
.../html/document__modele_8inc_8php.html | 2 +-
doc/developper/html/ecrit__ouv_8php.html | 2 +-
.../html/eub__be_8inc_8php-source.html | 2 +-
doc/developper/html/eub__be_8inc_8php.html | 4 +-
.../html/facture_8inc_8php-source.html | 326 +-
doc/developper/html/facture_8inc_8php.html | 161 +-
.../html/facture__inc_8php-source.html | 62 +
doc/developper/html/facture__inc_8php.html | 90 +
.../html/fiche__inc_8php-source.html | 24 +-
doc/developper/html/fiche__inc_8php.html | 58 +-
doc/developper/html/fiche__new_8php.html | 2 +-
doc/developper/html/form__inc_8php.html | 4 +-
.../html/fortis__be_8inc_8php-source.html | 2 +-
doc/developper/html/fortis__be_8inc_8php.html | 4 +-
doc/developper/html/globals.html | 46 +-
doc/developper/html/globals_0x61.html | 2 +-
doc/developper/html/globals_0x62.html | 2 +-
doc/developper/html/globals_0x63.html | 3 +-
doc/developper/html/globals_0x65.html | 2 +-
doc/developper/html/globals_0x66.html | 2 +-
doc/developper/html/globals_0x69.html | 6 +-
doc/developper/html/globals_0x6c.html | 2 +-
doc/developper/html/globals_0x6d.html | 2 +-
doc/developper/html/globals_0x71.html | 19 +
doc/developper/html/globals_0x72.html | 3 +-
doc/developper/html/globals_0x73.html | 7 +-
doc/developper/html/globals_0x74.html | 4 +-
doc/developper/html/globals_0x76.html | 2 +-
doc/developper/html/globals_func.html | 15 +-
doc/developper/html/globals_vars.html | 46 +-
doc/developper/html/globals_vars_0x61.html | 2 +-
doc/developper/html/globals_vars_0x62.html | 2 +-
doc/developper/html/globals_vars_0x65.html | 2 +-
doc/developper/html/globals_vars_0x66.html | 2 +-
doc/developper/html/globals_vars_0x67.html | 18 +
doc/developper/html/globals_vars_0x6c.html | 2 +-
doc/developper/html/globals_vars_0x6d.html | 2 +-
doc/developper/html/globals_vars_0x71.html | 19 +
doc/developper/html/globals_vars_0x73.html | 2 +-
doc/developper/html/globals_vars_0x74.html | 2 +-
doc/developper/html/import_8php-source.html | 44 +-
.../html/import__inc_8php-source.html | 408 +-
doc/developper/html/import__inc_8php.html | 602 ++-
doc/developper/html/impress__bilan_8php.html | 2 +-
doc/developper/html/impress__fiche_8php.html | 4 +-
.../html/impress__inc_8php-source.html | 4 +-
doc/developper/html/impress__inc_8php.html | 14 +-
.../html/impress__rapport_8php.html | 2 +-
.../html/ing__be_8inc_8php-source.html | 2 +-
doc/developper/html/jrn_8php-source.html | 8 +-
doc/developper/html/jrn_8php.html | 24 +-
doc/developper/html/jrn__add_8php-source.html | 251 +-
doc/developper/html/jrn__add_8php.html | 56 +-
.../html/jrn__detail_8php-source.html | 319 +-
doc/developper/html/jrn__detail_8php.html | 32 +-
doc/developper/html/line__update_8php.html | 4 +-
.../html/parametre_8php-source.html | 2 +-
doc/developper/html/poste_8inc_8php.html | 2 +-
doc/developper/html/poste_8php.html | 6 +-
.../html/poste__search_8php-source.html | 8 +-
doc/developper/html/postgres_8php.html | 20 +-
doc/developper/html/pref_8inc_8php.html | 4 +-
doc/developper/html/preference_8php.html | 10 +-
.../html/priv__user_8php-source.html | 2 +-
doc/developper/html/readme_8php.html | 2 +-
.../html/send__poste__pdf_8php.html | 2 +-
doc/developper/html/setup_8php-source.html | 616 +--
doc/developper/html/setup_8php.html | 30 +-
.../html/show__document__modele_8php.html | 2 +-
doc/developper/html/show__pj_8php.html | 2 +-
.../html/stock__inc_8php-source.html | 2 +-
doc/developper/html/stock__inc_8php.html | 4 +-
.../html/supplier_8inc_8php-source.html | 172 +
doc/developper/html/supplier_8inc_8php.html | 299 ++
doc/developper/html/tva_8inc_8php.html | 6 +-
.../html/user__action__ach_8php-source.html | 2 +-
.../html/user__action__ach_8php.html | 6 +-
.../html/user__action__fin_8php-source.html | 2 +-
.../html/user__action__fin_8php.html | 4 +-
.../html/user__action__ven_8php-source.html | 2 +-
.../html/user__action__ven_8php.html | 2 +-
.../html/user__common_8php-source.html | 2 +-
doc/developper/html/user__common_8php.html | 32 +-
.../html/user__form__ach_8php-source.html | 1415 +++----
doc/developper/html/user__form__ach_8php.html | 1409 +++----
.../html/user__form__fin_8php-source.html | 6 +-
doc/developper/html/user__form__fin_8php.html | 8 +-
doc/developper/html/user__form__ods_8php.html | 2 +-
.../html/user__form__ven_8php-source.html | 1277 +++---
doc/developper/html/user__form__ven_8php.html | 1271 +++---
doc/developper/html/user__impress_8php.html | 2 +-
.../html/user__menu_8php-source.html | 4 +-
doc/developper/html/user__menu_8php.html | 16 +-
doc/manuel-fr-1.html | 80 +
doc/manuel-fr-10.html | 30 +
doc/manuel-fr-11.html | 48 +
doc/manuel-fr-12.html | 64 +
doc/manuel-fr-13.html | 29 +
doc/manuel-fr-14.html | 73 +
doc/manuel-fr-15.html | 84 +
doc/manuel-fr-16.html | 73 +
doc/manuel-fr-2.html | 486 +++
doc/manuel-fr-3.html | 116 +
doc/manuel-fr-4.html | 43 +
doc/manuel-fr-5.html | 67 +
doc/manuel-fr-6.html | 456 ++
doc/manuel-fr-7.html | 103 +
doc/manuel-fr-8.html | 123 +
doc/manuel-fr-9.html | 64 +
doc/manuel-fr.html | 130 +
doc/manuel-fr.sgml | 273 +-
170 files changed, 18233 insertions(+), 5238 deletions(-)
create mode 100644 doc/developper/header.html
create mode 100644 doc/developper/html/admin_8inc_8php-source.html
create mode 100644 doc/developper/html/admin_8inc_8php.html
create mode 100644 doc/developper/html/argenta__be_8inc_8php-source.html
create mode 100644 doc/developper/html/argenta__be_8inc_8php.html
create mode 100644 doc/developper/html/bank_8inc_8php-source.html
create mode 100644 doc/developper/html/bank_8inc_8php.html
create mode 100644 doc/developper/html/classAdmin.html
create mode 100644 doc/developper/html/classAdmin.png
create mode 100644 doc/developper/html/classSupplier.html
create mode 100644 doc/developper/html/classSupplier.png
create mode 100644 doc/developper/html/class__admin_8php-source.html
create mode 100644 doc/developper/html/class__admin_8php.html
create mode 100644 doc/developper/html/class__supplier_8php-source.html
create mode 100644 doc/developper/html/class__supplier_8php.html
create mode 100644 doc/developper/html/classcontact.png
create mode 100644 doc/developper/html/depense_8inc_8php-source.html
create mode 100644 doc/developper/html/depense_8inc_8php.html
create mode 100644 doc/developper/html/facture__inc_8php-source.html
create mode 100644 doc/developper/html/facture__inc_8php.html
create mode 100644 doc/developper/html/globals_0x71.html
create mode 100644 doc/developper/html/globals_vars_0x67.html
create mode 100644 doc/developper/html/globals_vars_0x71.html
create mode 100644 doc/developper/html/supplier_8inc_8php-source.html
create mode 100644 doc/developper/html/supplier_8inc_8php.html
create mode 100644 doc/manuel-fr-1.html
create mode 100644 doc/manuel-fr-10.html
create mode 100644 doc/manuel-fr-11.html
create mode 100644 doc/manuel-fr-12.html
create mode 100644 doc/manuel-fr-13.html
create mode 100644 doc/manuel-fr-14.html
create mode 100644 doc/manuel-fr-15.html
create mode 100644 doc/manuel-fr-16.html
create mode 100644 doc/manuel-fr-2.html
create mode 100644 doc/manuel-fr-3.html
create mode 100644 doc/manuel-fr-4.html
create mode 100644 doc/manuel-fr-5.html
create mode 100644 doc/manuel-fr-6.html
create mode 100644 doc/manuel-fr-7.html
create mode 100644 doc/manuel-fr-8.html
create mode 100644 doc/manuel-fr-9.html
create mode 100644 doc/manuel-fr.html
diff --git a/doc/developper/account_repository.html b/doc/developper/account_repository.html
index 5cf9da960..e2c5e14f9 100644
--- a/doc/developper/account_repository.html
+++ b/doc/developper/account_repository.html
@@ -111,7 +111,7 @@
-
Dumped on 2006-07-06
+
Dumped on 2006-07-12
@@ -160,7 +160,7 @@
- DEFAULT nextval('dossier_id'::text)
+ DEFAULT nextval(('dossier_id'::text)::regclass)
@@ -278,7 +278,7 @@
- DEFAULT nextval('users_id'::text)
+ DEFAULT nextval(('users_id'::text)::regclass)
@@ -463,7 +463,7 @@
NOT NULL
- DEFAULT nextval('seq_jnt_use_dos'::text)
+ DEFAULT nextval(('seq_jnt_use_dos'::text)::regclass)
@@ -579,7 +579,7 @@
- DEFAULT nextval('s_modid'::text)
+ DEFAULT nextval(('s_modid'::text)::regclass)
@@ -666,7 +666,7 @@
NOT NULL
- DEFAULT nextval('seq_priv_user'::text)
+ DEFAULT nextval(('seq_priv_user'::text)::regclass)
diff --git a/doc/developper/dossier1.dia b/doc/developper/dossier1.dia
index 98b105b78..73e944204 100644
--- a/doc/developper/dossier1.dia
+++ b/doc/developper/dossier1.dia
@@ -155,6 +155,340 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #action_gestion#
+
+
+
+ #Action for Managing#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_id#
+
+
+ #serial#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_type#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # f_id_dest#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # f_id_exp#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_title#
+
+
+ #character varying(70)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_timestamp#
+
+
+ #timestamp without time zone#
+
+
+
+ #now()#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_cal#
+
+
+ #character(1)#
+
+
+
+ #'C'::bpchar#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_ref_ag_id#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_comment#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_ref#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -254,7 +588,7 @@
- #nextval('s_attr_d ... text)#
+ #nextval(('s_attr_ ... lass)#
@@ -304,7 +638,7 @@
-
+
@@ -454,7 +788,7 @@
-
+
@@ -604,7 +938,7 @@
-
+
@@ -704,7 +1038,7 @@
- #nextval('s_centra ... text)#
+ #nextval(('s_centr ... lass)#
@@ -861,7 +1195,7 @@
# c_poste#
- #integer#
+ #poste_comptable#
@@ -1030,7 +1364,814 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #document#
+
+
+
+ #This table contains all the documen ... files#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_id#
+
+
+ #serial#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ag_id#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_lob#
+
+
+ #oid#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_number#
+
+
+ #bigint#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_filename#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_mimetype#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # d_state#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #document_modele#
+
+
+
+ # contains all the template for the ... ments#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_id#
+
+
+ #serial#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_name#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_lob#
+
+
+ #oid#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_type#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_filename#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # md_mimetype#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #document_state#
+
+
+
+ #State of the document#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # s_id#
+
+
+ #serial#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # s_value#
+
+
+ #character varying(50)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #document_type#
+
+
+
+ #Type of document : meeting, invoice,...#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # dt_id#
+
+
+ #serial#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # dt_value#
+
+
+ #character varying(80)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1130,7 +2271,7 @@
- #nextval('s_fiche'::text)#
+ #nextval(('s_fiche ... lass)#
@@ -1180,7 +2321,7 @@
-
+
@@ -1280,7 +2421,7 @@
- #nextval('s_fdef'::text)#
+ #nextval(('s_fdef' ... lass)#
@@ -1299,7 +2440,7 @@
# fd_class_base#
- #integer#
+ #poste_comptable#
@@ -1399,7 +2540,7 @@
-
+
@@ -1499,7 +2640,7 @@
- #nextval('s_fiche_ ... text)#
+ #nextval(('s_fiche ... lass)#
@@ -1572,7 +2713,7 @@
-
+
@@ -1672,7 +2813,7 @@
- #nextval('s_form'::text)#
+ #nextval(('s_form' ... lass)#
@@ -1791,7 +2932,157 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #format_csv_banque#
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # name#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # include_file#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1891,7 +3182,7 @@
- #nextval('s_formdef'::text)#
+ #nextval(('s_formd ... lass)#
@@ -1941,7 +3232,560 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #import_tmp#
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # code#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # date_exec#
+
+
+ #date#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # date_valeur#
+
+
+ #date#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # montant#
+
+
+ #numeric(20,4)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # devise#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # compte_ordre#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # detail#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # num_compte#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # poste_comptable#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # ok#
+
+
+ #boolean#
+
+
+
+ #false#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # bq_account#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # jrn#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #invoice#
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # iv_id#
+
+
+ #integer#
+
+
+
+ #nextval(('s_invoi ... lass)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # iv_name#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # iv_file#
+
+
+ #oid#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2041,7 +3885,7 @@
- #nextval('s_jnt_fi ... text)#
+ #nextval(('s_jnt_f ... lass)#
@@ -2114,7 +3958,7 @@
-
+
@@ -2264,7 +4108,7 @@
-
+
@@ -2364,7 +4208,7 @@
- #nextval('s_jrn'::text)#
+ #nextval(('s_jrn': ... lass)#
@@ -2782,7 +4626,7 @@
-
+
@@ -2882,7 +4726,7 @@
- #nextval('s_jrnact ... text)#
+ #nextval(('s_jrnac ... lass)#
@@ -3047,7 +4891,7 @@
-
+
@@ -3147,7 +4991,7 @@
- #nextval('s_jrn_def'::text)#
+ #nextval(('s_jrn_d ... lass)#
@@ -3427,7 +5271,7 @@
-
+
@@ -3527,7 +5371,7 @@
- #nextval('s_jrn_ra ... text)#
+ #nextval(('s_jrn_r ... lass)#
@@ -3600,7 +5444,7 @@
-
+
@@ -3750,7 +5594,7 @@
-
+
@@ -3850,7 +5694,7 @@
- #nextval('s_jrn_op'::text)#
+ #nextval(('s_jrn_o ... lass)#
@@ -3915,7 +5759,7 @@
# j_poste#
- #integer#
+ #poste_comptable#
@@ -4163,6 +6007,29 @@
+
+
+ # j_qcode#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4176,7 +6043,7 @@
-
+
@@ -4326,7 +6193,180 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #parm_code#
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # p_code#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # p_value#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # p_comment#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4426,7 +6466,7 @@
- #nextval('s_curren ... text)#
+ #nextval(('s_curre ... lass)#
@@ -4499,7 +6539,7 @@
-
+
@@ -4599,7 +6639,7 @@
- #nextval('s_periode'::text)#
+ #nextval(('s_perio ... lass)#
@@ -4774,7 +6814,295 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #quant_sold#
+
+
+
+ #Contains about invoice for customer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_id#
+
+
+ #integer#
+
+
+
+ #nextval(('s_quant ... lass)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_internal#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_fiche#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_quantite#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_price#
+
+
+ #numeric(20,4)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_vat#
+
+
+ #numeric(20,4)#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_vat_code#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # qs_client#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4874,7 +7202,7 @@
- #nextval('s_stock_ ... text)#
+ #nextval(('s_stock ... lass)#
@@ -5118,7 +7446,7 @@
-
+
@@ -5214,7 +7542,7 @@
# pcm_val#
- #integer#
+ #poste_comptable#
@@ -5260,7 +7588,7 @@
# pcm_val_parent#
- #integer#
+ #poste_comptable#
@@ -5314,7 +7642,7 @@
-
+
@@ -5533,7 +7861,7 @@
-
+
@@ -5706,157 +8034,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #user_pref#
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- # pref_user#
-
-
- #text#
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- # pref_periode#
-
-
- #integer#
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -5956,7 +8134,7 @@
- #nextval('s_user_a ... text)#
+ #nextval(('s_user_ ... lass)#
@@ -6029,7 +8207,7 @@
-
+
@@ -6129,7 +8307,7 @@
- #nextval('s_user_j ... text)#
+ #nextval(('s_user_ ... lass)#
@@ -6225,7 +8403,7 @@
-
+
@@ -6352,7 +8530,7 @@
-
+
@@ -6373,7 +8551,7 @@
- #minimum attribut for the customer (frd_id=9)#
+ ##
@@ -6489,6 +8667,29 @@
+
+
+ # quick_code#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# tva_num#
@@ -6663,7 +8864,7 @@
-
+
@@ -7007,6 +9208,29 @@
+
+
+ # quick_code#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# frd_id#
@@ -7043,7 +9267,7 @@
-
+
@@ -7203,12 +9427,35 @@
+
+
+ # av_text#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
# fd_class_base#
- #integer#
+ #poste_comptable#
@@ -7308,7 +9555,7 @@
-
+
@@ -7527,294 +9774,515 @@
-
-
-
-
+
-
+
-
+
-
-
-
+
+
-
+
+
+
+
+
+
+
+ #vw_poste_qcode#
+
+
+
##
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # f_id#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # j_poste#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # j_qcode#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
-
-
+
+
-
+
+
+
+
+
+
+
+ #vw_supplier#
+
+
+
##
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # f_id#
+
+
+ #integer#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # name#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # quick_code#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # tva_num#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # poste_comptable#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # rue#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # code_postal#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # pays#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # telephone#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # email#
+
+
+ #text#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ##
-
-
-
-
-
-
-
-
-
-
-
-
@@ -7837,8 +10305,8 @@
-
-
+
+
@@ -7863,8 +10331,8 @@
-
-
+
+
@@ -7889,8 +10357,8 @@
-
-
+
+
@@ -7915,8 +10383,8 @@
-
-
+
+
@@ -7941,8 +10409,8 @@
-
-
+
+
@@ -7958,7 +10426,7 @@
- ##
+ #md_type#
@@ -7967,8 +10435,8 @@
-
-
+
+
@@ -7993,8 +10461,8 @@
-
-
+
+
@@ -8019,8 +10487,320 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ##
+
+
+
+
+
+
+
+
+
+
diff --git a/doc/developper/dossier1.html b/doc/developper/dossier1.html
index e8dde2231..05ce6d25c 100644
--- a/doc/developper/dossier1.html
+++ b/doc/developper/dossier1.html
@@ -111,13 +111,13 @@
-
Dumped on 2006-07-06
+
Dumped on 2006-07-12
- public
- - action
- attr_def
- attr_min
- attr_value
- centralized
- fiche
- fiche_def
- fiche_def_ref
- form
- formdef
- jnt_fic_att_value
- jnt_fic_attr
- jrn
- jrn_action
- jrn_def
- jrn_rapt
- jrn_type
- jrnx
- parameter
- parm_money
- parm_periode
- stock_goods
- tmp_pcmn
- tva_rate
- user_local_pref
- user_pref
- user_sec_act
- user_sec_jrn
- version
- vw_client
- vw_fiche_attr
- vw_fiche_def
- vw_fiche_min
- - check_balance( p_internal text )
- plpgsql_validator( oid )
- proc_check_balance( )
+ - action
- action_gestion
- attr_def
- attr_min
- attr_value
- centralized
- document
- document_modele
- document_state
- document_type
- fiche
- fiche_def
- fiche_def_ref
- form
- format_csv_banque
- formdef
- import_tmp
- invoice
- jnt_fic_att_value
- jnt_fic_attr
- jrn
- jrn_action
- jrn_def
- jrn_rapt
- jrn_type
- jrnx
- parameter
- parm_code
- parm_money
- parm_periode
- quant_sold
- stock_goods
- tmp_pcmn
- tva_rate
- user_local_pref
- user_sec_act
- user_sec_jrn
- version
- vw_client
- vw_fiche_attr
- vw_fiche_def
- vw_fiche_min
- vw_poste_qcode
- vw_supplier
+ - account_add( p_id public.poste_comptable, p_name character varying )
- account_auto( p_fd_id integer )
- account_compute( p_f_id integer )
- account_insert( p_f_id integer, p_account public.poste_comptable )
- account_parent( p_account public.poste_comptable )
- account_update( p_f_id integer, p_account public.poste_comptable )
- attribut_insert( p_f_id integer, p_ad_id integer, p_value character varying )
- card_class_base( p_f_id integer )
- check_balance( p_grpt integer )
- fiche_account_parent( p_f_id integer )
- insert_jrnx( p_date character varying, p_montant numeric, p_poste integer, p_grpt integer, p_jrn_def integer, p_debit boolean, p_tech_user text, p_tech_per integer, p_qcode text )
- insert_quant_sold( p_internal text, p_fiche character varying, p_quant integer, p_price numeric, p_vat numeric, p_vat_code integer, p_client character varying )
- insert_quick_code( nf_id integer, tav_text text )
- plpgsql_validator( oid )
- proc_check_balance( )
- t_document_type_insert( )
- t_jrn_def_sequence( )
- trim_cvs_quote( )
- trim_space_format_csv_banque( )
- tva_delete( integer )
- tva_insert( integer, text, numeric, text, text )
- tva_modify( integer, text, numeric, text, text )
- update_quick_code( njft_id integer, tav_text text )
@@ -203,6 +203,214 @@
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+ Action for Managing
+
+
+
+
+ action_gestion Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ ag_id |
+ serial |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_type |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ f_id_dest |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ f_id_exp |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_title |
+ character varying(70) |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_timestamp |
+ timestamp without time zone |
+
+
+
+
+ DEFAULT now()
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_cal |
+ character(1) |
+
+
+
+
+ DEFAULT 'C'::bpchar
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_ref_ag_id |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_comment |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_ref |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -249,7 +457,7 @@
- DEFAULT nextval('s_attr_def'::text)
+ DEFAULT nextval(('s_attr_def'::text)::regclass)
@@ -512,7 +720,7 @@
- DEFAULT nextval('s_centralized'::text)
+ DEFAULT nextval(('s_centralized'::text)::regclass)
@@ -631,7 +839,7 @@
c_poste |
- integer |
+ poste_comptable |
@@ -754,6 +962,485 @@
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+ This table contains all the documents : summary and lob files
+
+
+
+
+ document Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ d_id |
+ serial |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ag_id |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ d_lob |
+ oid |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ d_number |
+ bigint |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ d_filename |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ d_mimetype |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ d_state |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+ contains all the template for the documents
+
+
+
+
+ document_modele Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ md_id |
+ serial |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ md_name |
+ text |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ md_lob |
+ oid |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+ document_type.dt_id
+
+
+ |
+ md_type |
+ integer |
+
+
+
+
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ md_filename |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ md_mimetype |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+ State of the document
+
+
+
+
+ document_state Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ s_id |
+ serial |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ s_value |
+ character varying(50) |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+ Type of document : meeting, invoice,...
+
+
+
+
+ document_type Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ dt_id |
+ serial |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ dt_value |
+ character varying(80) |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tables referencing this one via Foreign Key Constraints:
+
+
+
+
+
@@ -800,7 +1487,7 @@
- DEFAULT nextval('s_fiche'::text)
+ DEFAULT nextval(('s_fiche'::text)::regclass)
|
@@ -895,7 +1582,7 @@
- DEFAULT nextval('s_fdef'::text)
+ DEFAULT nextval(('s_fdef'::text)::regclass)
@@ -906,7 +1593,7 @@
fd_class_base |
- integer |
+ poste_comptable |
@@ -1042,7 +1729,7 @@
- DEFAULT nextval('s_fiche_def_ref'::text)
+ DEFAULT nextval(('s_fiche_def_ref'::text)::regclass)
|
@@ -1149,7 +1836,7 @@
- DEFAULT nextval('s_form'::text)
+ DEFAULT nextval(('s_form'::text)::regclass)
@@ -1233,6 +1920,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ format_csv_banque Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ name |
+ text |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ include_file |
+ text |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+
+
+
+
+
@@ -1283,7 +2048,7 @@
- DEFAULT nextval('s_formdef'::text)
+ DEFAULT nextval(('s_formdef'::text)::regclass)
@@ -1324,6 +2089,331 @@
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ import_tmp Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+ |
+ code |
+ text |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ date_exec |
+ date |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ date_valeur |
+ date |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ montant |
+ numeric(20,4) |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ devise |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ compte_ordre |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ detail |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ num_compte |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ poste_comptable |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ ok |
+ boolean |
+
+
+
+
+ DEFAULT false
+
+
+ |
+
+
+
+ |
+
+ |
+ bq_account |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ jrn |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ invoice Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ iv_id |
+ integer |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+ DEFAULT nextval(('s_invoice'::text)::regclass)
+
+
+ |
+
+
+
+ |
+
+ |
+ iv_name |
+ text |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ iv_file |
+ oid |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1370,7 +2460,7 @@
- DEFAULT nextval('s_jnt_fic_att_value'::text)
+ DEFAULT nextval(('s_jnt_fic_att_value'::text)::regclass)
@@ -1578,7 +2668,7 @@
- DEFAULT nextval('s_jrn'::text)
+ DEFAULT nextval(('s_jrn'::text)::regclass)
@@ -1929,7 +3019,7 @@
- DEFAULT nextval('s_jrnaction'::text)
+ DEFAULT nextval(('s_jrnaction'::text)::regclass)
@@ -2097,7 +3187,7 @@
- DEFAULT nextval('s_jrn_def'::text)
+ DEFAULT nextval(('s_jrn_def'::text)::regclass)
@@ -2372,7 +3462,7 @@
- DEFAULT nextval('s_jrn_rapt'::text)
+ DEFAULT nextval(('s_jrn_rapt'::text)::regclass)
@@ -2559,7 +3649,7 @@
- DEFAULT nextval('s_jrn_op'::text)
+ DEFAULT nextval(('s_jrn_op'::text)::regclass)
@@ -2606,7 +3696,7 @@
j_poste |
- integer |
+ poste_comptable |
@@ -2784,6 +3874,22 @@
NOT NULL
+
+
+ |
+
+
+
+ |
+
+ |
+ j_qcode |
+ text |
+
+
+
+
+
|
@@ -2873,6 +3979,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ parm_code Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ p_code |
+ text |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ p_value |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ p_comment |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
@@ -2918,7 +4118,7 @@
- DEFAULT nextval('s_currency'::text)
+ DEFAULT nextval(('s_currency'::text)::regclass)
@@ -3021,7 +4221,7 @@
- DEFAULT nextval('s_periode'::text)
+ DEFAULT nextval(('s_periode'::text)::regclass)
@@ -3148,6 +4348,182 @@
+
+ Index -
+ Schema public
+
+
+
+
+
+ Contains about invoice for customer
+
+
+
+
+ quant_sold Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+
+
+ |
+ qs_id |
+ integer |
+
+
+ PRIMARY KEY
+
+
+
+
+
+
+ DEFAULT nextval(('s_quantity'::text)::regclass)
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_internal |
+ text |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_fiche |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_quantite |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_price |
+ numeric(20,4) |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_vat |
+ numeric(20,4) |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_vat_code |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ qs_client |
+ integer |
+
+
+
+ NOT NULL
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index -
Schema public
@@ -3188,7 +4564,7 @@
- DEFAULT nextval('s_stock_goods'::text)
+ DEFAULT nextval(('s_stock_goods'::text)::regclass)
@@ -3385,7 +4761,7 @@
pcm_val |
- integer |
+ poste_comptable |
PRIMARY KEY
@@ -3422,7 +4798,7 @@
|
pcm_val_parent |
- integer |
+ poste_comptable |
@@ -3690,84 +5066,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- Index -
- Schema public
-
-
-
-
-
-
-
-
- user_pref Structure
-
- | F-Key |
- Name |
- Type |
- Description |
-
-
-
- |
-
-
-
- |
- pref_user |
- text |
-
-
- PRIMARY KEY
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
- |
- pref_periode |
- integer |
-
-
-
- NOT NULL
-
-
-
- |
-
-
-
-
-
-
-
-
@@ -3818,7 +5116,7 @@
- DEFAULT nextval('s_user_act'::text)
+ DEFAULT nextval(('s_user_act'::text)::regclass)
|
@@ -3920,7 +5218,7 @@
- DEFAULT nextval('s_user_jrn'::text)
+ DEFAULT nextval(('s_user_jrn'::text)::regclass)
@@ -4065,8 +5363,6 @@
vw_client
- minimum attribut for the customer (frd_id=9)
-
@@ -4114,7 +5410,7 @@
|
|
- tva_num |
+ quick_code |
text |
@@ -4129,6 +5425,22 @@
|
+ |
+ tva_num |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
|
poste_comptable |
text |
@@ -4142,7 +5454,7 @@
-
+
|
|
@@ -4158,7 +5470,7 @@
-
+
|
|
@@ -4174,7 +5486,7 @@
-
+
|
|
@@ -4190,7 +5502,7 @@
-
+
|
|
@@ -4206,7 +5518,7 @@
-
+
|
|
@@ -4237,6 +5549,7 @@
SELECT a.f_id
, a.av_text AS name
+, a1.av_text AS quick_code
, b.av_text AS tva_num
, c.av_text AS poste_comptable
, d.av_text AS rue
@@ -4252,6 +5565,69 @@ FROM (
(
(
(
+ (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 1)
+ ) a
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 13)
+ ) b
+ USING (f_id)
+ )
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4279,41 +5655,11 @@ FROM (
JOIN attr_value
USING (jft_id)
)
- WHERE (jnt_fic_att_value.ad_id = 1)
- ) a
- LEFT JOIN (
- SELECT jnt_fic_att_value.jft_id
- , fiche.f_id
- , fiche_def.frd_id
- , fiche.fd_id
- , fiche_def.fd_class_base
- , fiche_def.fd_label
- , fiche_def.fd_create_account
- , fiche_def_ref.frd_text
- , fiche_def_ref.frd_class_base
- , jnt_fic_att_value.ad_id
- , attr_value.av_text
- FROM (
- (
- (
- (fiche
- JOIN fiche_def
- USING (fd_id)
- )
- JOIN fiche_def_ref
- USING (frd_id)
- )
- JOIN jnt_fic_att_value
- USING (f_id)
- )
- JOIN attr_value
- USING (jft_id)
- )
- WHERE (jnt_fic_att_value.ad_id = 13)
- ) b
+ WHERE (jnt_fic_att_value.ad_id = 23)
+ ) a1
USING (f_id)
)
- LEFT JOIN (
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4345,7 +5691,7 @@ FROM (
) c
USING (f_id)
)
- LEFT JOIN (
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4377,7 +5723,7 @@ FROM (
) d
USING (f_id)
)
- LEFT JOIN (
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4409,7 +5755,7 @@ FROM (
) e
USING (f_id)
)
- LEFT JOIN (
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4441,7 +5787,7 @@ FROM (
) f
USING (f_id)
)
- LEFT JOIN (
+ JOIN (
SELECT jnt_fic_att_value.jft_id
, fiche.f_id
, fiche_def.frd_id
@@ -4711,6 +6057,22 @@ WHERE (a.frd_id = 9);
|
+ |
+ quick_code |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
|
frd_id |
integer |
@@ -4748,6 +6110,7 @@ SELECT a.f_id
, tva_rate.tva_label
, e.av_text AS vw_addr
, f.av_text AS vw_cp
+, j.av_text AS quick_code
, fiche_def.frd_id
FROM (
(
@@ -4757,23 +6120,45 @@ FROM (
(
(
(
- SELECT fiche.f_id
- , fiche.fd_id
- , attr_value.av_text
- FROM (
- (
- (fiche
- JOIN jnt_fic_att_value
- USING (f_id)
+ (
+ SELECT fiche.f_id
+ , fiche.fd_id
+ , attr_value.av_text
+ FROM (
+ (
+ (fiche
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
)
- JOIN attr_value
- USING (jft_id)
+ JOIN attr_def
+ USING (ad_id)
)
- JOIN attr_def
- USING (ad_id)
+ WHERE (jnt_fic_att_value.ad_id = 1)
+ ) a
+ LEFT JOIN (
+ SELECT fiche.f_id
+ , attr_value.av_text
+ FROM (
+ (
+ (fiche
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ JOIN attr_def
+ USING (ad_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 6)
+ ) b
+ ON (
+ (a.f_id = b.f_id)
)
- WHERE (jnt_fic_att_value.ad_id = 1)
- ) a
+ )
LEFT JOIN (
SELECT fiche.f_id
, attr_value.av_text
@@ -4789,10 +6174,10 @@ FROM (
JOIN attr_def
USING (ad_id)
)
- WHERE (jnt_fic_att_value.ad_id = 6)
- ) b
+ WHERE (jnt_fic_att_value.ad_id = 7)
+ ) c
ON (
- (a.f_id = b.f_id)
+ (a.f_id = c.f_id)
)
)
LEFT JOIN (
@@ -4810,10 +6195,10 @@ FROM (
JOIN attr_def
USING (ad_id)
)
- WHERE (jnt_fic_att_value.ad_id = 7)
- ) c
+ WHERE (jnt_fic_att_value.ad_id = 2)
+ ) d
ON (
- (a.f_id = c.f_id)
+ (a.f_id = d.f_id)
)
)
LEFT JOIN (
@@ -4831,10 +6216,10 @@ FROM (
JOIN attr_def
USING (ad_id)
)
- WHERE (jnt_fic_att_value.ad_id = 2)
- ) d
+ WHERE (jnt_fic_att_value.ad_id = 14)
+ ) e
ON (
- (a.f_id = d.f_id)
+ (a.f_id = e.f_id)
)
)
LEFT JOIN (
@@ -4852,10 +6237,10 @@ FROM (
JOIN attr_def
USING (ad_id)
)
- WHERE (jnt_fic_att_value.ad_id = 14)
- ) e
+ WHERE (jnt_fic_att_value.ad_id = 15)
+ ) f
ON (
- (a.f_id = e.f_id)
+ (a.f_id = f.f_id)
)
)
LEFT JOIN (
@@ -4873,10 +6258,10 @@ FROM (
JOIN attr_def
USING (ad_id)
)
- WHERE (jnt_fic_att_value.ad_id = 15)
- ) f
+ WHERE (jnt_fic_att_value.ad_id = 23)
+ ) j
ON (
- (a.f_id = f.f_id)
+ (a.f_id = j.f_id)
)
)
LEFT JOIN tva_rate
@@ -4969,8 +6354,8 @@ FROM (
|
- fd_class_base |
- integer |
+ av_text |
+ text |
@@ -4984,6 +6369,22 @@ FROM (
|
+ |
+ fd_class_base |
+ poste_comptable |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
|
fd_label |
text |
@@ -4997,7 +6398,7 @@ FROM (
-
+
|
|
@@ -5013,7 +6414,7 @@ FROM (
-
+
|
|
@@ -5045,14 +6446,29 @@ FROM (
SELECT jnt_fic_attr.fd_id
, jnt_fic_attr.ad_id
, attr_def.ad_text
+, attr_value.av_text
, fiche_def.fd_class_base
, fiche_def.fd_label
, fiche_def.fd_create_account
, fiche_def.frd_id
FROM (
- (jnt_fic_attr
+ (
+ (
+ (
+ (jnt_fic_att_value
+ JOIN attr_value
+ USING (jft_id)
+ )
+ JOIN fiche
+ USING (f_id)
+ )
+ JOIN jnt_fic_attr
+ USING (fd_id)
+ )
JOIN attr_def
- USING (ad_id)
+ ON (
+ (attr_def.ad_id = jnt_fic_attr.ad_id)
+ )
)
JOIN fiche_def
USING (fd_id)
@@ -5196,6 +6612,621 @@ FROM (
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ vw_poste_qcode Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+ |
+ f_id |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ j_poste |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ j_qcode |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+SELECT a.f_id
+, a.av_text AS j_poste
+, b.av_text AS j_qcode
+FROM (
+ (
+ SELECT jnt_fic_att_value.f_id
+ , attr_value.av_text
+ FROM (attr_value
+ JOIN jnt_fic_att_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 5)
+ ) a
+ JOIN (
+ SELECT jnt_fic_att_value.f_id
+ , attr_value.av_text
+ FROM (attr_value
+ JOIN jnt_fic_att_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 23)
+ ) b
+ USING (f_id)
+);
+
+
+
+
+
+
+ Index -
+ Schema public
+
+
+
+
+
+
+
+
+ vw_supplier Structure
+
+ | F-Key |
+ Name |
+ Type |
+ Description |
+
+
+
+ |
+
+ |
+ f_id |
+ integer |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ name |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ quick_code |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ tva_num |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ poste_comptable |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ rue |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ code_postal |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ pays |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ telephone |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+ |
+ email |
+ text |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+SELECT a.f_id
+, a.av_text AS name
+, a1.av_text AS quick_code
+, b.av_text AS tva_num
+, c.av_text AS poste_comptable
+, d.av_text AS rue
+, e.av_text AS code_postal
+, f.av_text AS pays
+, g.av_text AS telephone
+, h.av_text AS email
+FROM (
+ (
+ (
+ (
+ (
+ (
+ (
+ (
+ (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 1)
+ ) a
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 13)
+ ) b
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 23)
+ ) a1
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 5)
+ ) c
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 14)
+ ) d
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 15)
+ ) e
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 16)
+ ) f
+ USING (f_id)
+ )
+ JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 17)
+ ) g
+ USING (f_id)
+ )
+LEFT JOIN (
+ SELECT jnt_fic_att_value.jft_id
+ , fiche.f_id
+ , fiche_def.frd_id
+ , fiche.fd_id
+ , fiche_def.fd_class_base
+ , fiche_def.fd_label
+ , fiche_def.fd_create_account
+ , fiche_def_ref.frd_text
+ , fiche_def_ref.frd_class_base
+ , jnt_fic_att_value.ad_id
+ , attr_value.av_text
+ FROM (
+ (
+ (
+ (fiche
+ JOIN fiche_def
+ USING (fd_id)
+ )
+ JOIN fiche_def_ref
+ USING (frd_id)
+ )
+ JOIN jnt_fic_att_value
+ USING (f_id)
+ )
+ JOIN attr_value
+ USING (jft_id)
+ )
+ WHERE (jnt_fic_att_value.ad_id = 18)
+ ) h
+ USING (f_id)
+)
+WHERE (a.frd_id = 8);
+
+
+
+
+
Index -
Schema public
@@ -5206,7 +7237,261 @@ FROM (
+Returns: void
+Language: PLPGSQL
+
+
+declare
+ nParent tmp_pcmn.pcm_val_parent%type;
+ nCount integer;
+begin
+ select count(*) into nCount from tmp_pcmn where pcm_val=p_id;
+ if nCount = 0 then
+ nParent=account_parent(p_id);
+ insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent)
+ values (p_id, p_name,nParent);
+ end if;
+return;
+end ;
+
+
+
+
+Returns: boolean
+Language: PLPGSQL
+
+
+declare
+ l_auto bool;
+begin
+
+ select fd_create_account into l_auto from fiche_def where fd_id=p_fd_id;
+ if l_auto is null then
+ l_auto:=false;
+ end if;
+ return l_auto;
+end;
+
+
+
+
+Returns: poste_comptable
+Language: PLPGSQL
+
+
+declare
+ class_base poste_comptable;
+ maxcode int8;
+begin
+ -- Get the class base
+ select fd_class_base into class_base
+ from
+ fiche_def join fiche using (fd_id)
+ where
+ f_id=p_f_id;
+ raise notice 'class base %',class_base;
+ select max(pcm_val) into maxcode from tmp_pcmn where pcm_val = class_base;
+ if maxcode = class_base then
+ maxcode=class_base*1000+1;
+ end if;
+ raise notice 'Max code %',maxcode;
+return maxcode+1;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+
+declare
+nParent tmp_pcmn.pcm_val_parent%type;
+sName varchar;
+nNew tmp_pcmn.pcm_val%type;
+bAuto bool;
+nFd_id integer;
+nCount integer;
+begin
+
+ -- if p_value empty
+ if length(trim(p_account)) != 0 then
+ -- does the account exist ?
+ select * into nCount from tmp_pcmn where pcm_val=p_account;
+ if nCount !=0 then
+ -- retrieve name
+ select av_text into sName from
+ attr_value join jnt_fic_att_value using (jft_id)
+ where
+ ad_id=1 and f_id=p_f_id;
+ -- get parent
+ nParent:=account_parent(p_account);
+ -- account doesn't exist we need to add id
+ insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent)
+ values (p_account,sName,nParent);
+ -- insert as card's attribute
+ perform attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
+
+ end if;
+ else
+ select fd_id into nFd_id from fiche where f_id=p_f_id;
+ bAuto:= account_auto(nFd_id);
+
+ if bAuto = true then
+ -- create automatically the account
+ -- compute the next account
+ nNew:=account_compute(p_f_id);
+raise debug 'nNew %', nNew;
+ -- retrieve name
+ select av_text into sName from
+ attr_value join jnt_fic_att_value using (jft_id)
+ where
+ ad_id=1 and f_id=p_f_id;
+
+ -- get parent
+ nParent:=account_parent(nNew);
+ -- account doesn't exist we need to add id
+ perform account_add (nNew,sName);
+ -- insert as card's attribute
+ perform attribut_insert(p_f_id,5,to_char(nNew,'999999999999'));
+
+ else
+ perform attribut_insert(p_f_id,5,null);
+ end if;
+
+ end if;
+
+return 0;
+end;
+
+
+
+
+Returns: poste_comptable
+Language: PLPGSQL
+
+
+declare
+ nParent tmp_pcmn.pcm_val_parent%type;
+ sParent varchar;
+ nCount integer;
+begin
+ sParent:=to_char(p_account,'9999999999999999');
+ sParent:=trim(sParent);
+ nParent:=0;
+ while nParent = 0 loop
+ select count(*) into nCount
+ from tmp_pcmn
+ where
+ pcm_val = to_number(sParent,'9999999999999999');
+ if nCount != 0 then
+ nParent:=to_number(sParent,'9999999999999999');
+ end if;
+ sParent:= substr(sParent,1,length(sParent)-1);
+ if length(sParent) <= 0 then
+ raise exception 'Impossible de trouver le compte parent pour %',p_account;
+ end if;
+
+ end loop;
+
+ return nParent;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+
+declare
+nMax fiche.f_id%type;
+nCount integer;
+nParent tmp_pcmn.pcm_val_parent%type;
+sName varchar;
+nJft_id attr_value.jft_id%type;
+begin
+
+ -- if p_value empty
+ if length(trim(p_account)) != 0 then
+ -- does the account exist ?
+ select count(*) into nCount from tmp_pcmn where pcm_val=p_account;
+ if nCount = 0 then
+ -- retrieve name
+ select av_text into sName from
+ attr_value join jnt_fic_att_value using (jft_id)
+ where
+ ad_id=1 and f_id=p_f_id;
+ -- get parent
+ nParent:=fiche_account_parent(p_f_id);
+ -- account doesn't exist we need to add id
+ insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (p_account,sName,nParent);
+ end if;
+ end if;
+ -- we retrieve jft_id
+ select jft_id into njft_id from jnt_fic_att_value where f_id=p_f_id and ad_id=5;
+ -- we update the account
+ update attr_value set av_text=p_account where jft_id=njft_id;
+
+return njft_id;
+end;
+
+
+
+
+Returns: void
+Language: PLPGSQL
+
+
+declare
+ n_jft_id integer;
+begin
+ select nextval('s_jnt_fic_att_value') into n_jft_id;
+ insert into jnt_fic_att_value (jft_id,f_id,ad_id) values (n_jft_id,p_f_id,p_ad_id);
+ insert into attr_value (jft_id,av_text) values (n_jft_id,p_value);
+return;
+end;
+
+
+
+
+Returns: poste_comptable
+Language: PLPGSQL
+
+
+
+declare
+ n_poste fiche_def.fd_class_base%type;
+begin
+
+ select fd_class_base into n_poste from fiche_def join fiche using (fd_id)
+ where f_id=p_f_id;
+ if not FOUND then
+ raise exception 'Invalid fiche card_class_base(%)',p_f_id;
+ end if;
+return n_poste;
+end;
+
+
+
+
Returns: numeric
Language: PLPGSQL
@@ -5218,21 +7503,21 @@ declare
amount_jrn numeric;
begin
select sum (j_montant) into amount_jrnx_credit
- from jrnx join jrn on (j_grpt=jr_grpt_id)
+ from jrnx
where
- jr_internal=p_internal
+ j_grpt=p_grpt
and j_debit=false;
select sum (j_montant) into amount_jrnx_debit
- from jrnx join jrn on (j_grpt=jr_grpt_id)
+ from jrnx
where
- jr_internal=p_internal
+ j_grpt=p_grpt
and j_debit=true;
select jr_montant into amount_jrn
from jrn
where
- jr_internal=p_internal;
+ jr_grpt_id=p_grpt;
if ( amount_jrnx_debit != amount_jrnx_credit )
then
@@ -5246,6 +7531,153 @@ begin
end;
+
+
+Returns: poste_comptable
+Language: PLPGSQL
+
+
+declare
+ret poste_comptable;
+begin
+ select fd_class_base into ret from fiche_def join fiche using (fd_id) where f_id=p_f_id;
+ if not FOUND then
+ raise exception '% N''existe pas',p_f_id;
+ end if;
+ return ret;
+end;
+
+
+
+
+Returns: void
+Language: PLPGSQL
+
+
+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;
+ -- if we find only one q_code for a accountancy account
+ -- then retrieve it
+ if nCount_qcode = 1 then
+ select j_qcode into sCode
+ from vw_poste_qcode where j_poste=p_poste;
+ else
+ sCode=NULL;
+ end if;
+
+ end if;
+ if p_montant = 0.0 then
+ return;
+ 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;
+
+
+
+
+Returns: void
+Language: PLPGSQL
+
+
+declare
+ fid_client integer;
+ fid_good integer;
+begin
+ select f_id into fid_client from
+ attr_value join jnt_fic_att_value using (jft_id) where ad_id=23 and av_text=p_client;
+
+ select f_id into fid_good from
+ attr_value join jnt_fic_att_value using (jft_id) where ad_id=23 and av_text=p_fiche;
+
+
+ insert into quant_sold
+ (qs_internal,qs_fiche,qs_quantite,qs_price,qs_vat,qs_vat_code,qs_client)
+ values
+ (p_internal,fid_good,p_quant,p_price,p_vat,p_vat_code,fid_client);
+ return;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+
+ declare
+ ns integer;
+ nExist integer;
+ tText text;
+ begin
+ tText := upper(trim(tav_text));
+ tText := replace(tText,' ','');
+
+ loop
+ -- take the next sequence
+ select nextval('s_jnt_fic_att_value') into ns;
+ if length (tText) = 0 or tText is null then
+ tText := 'FID'||ns;
+ end if;
+ -- av_text already used ?
+ select count(*) into nExist
+ from jnt_fic_att_value join attr_value using (jft_id)
+ where
+ ad_id=23 and av_text=upper(tText);
+
+ if nExist = 0 then
+ exit;
+ end if;
+ tText:='FID'||ns;
+ end loop;
+ -- insert into table jnt_fic_att_value
+ insert into jnt_fic_att_value values (ns,nf_id,23);
+ -- insert value into attr_value
+ insert into attr_value values (ns,upper(tText));
+ return ns;
+ end;
+
+
Function:
plpgsql_validator( oid )
@@ -5265,19 +7697,252 @@ end;
declare
diff numeric;
- tt text;
+ tt integer;
begin
if TG_OP = 'INSERT' then
- tt=NEW.jr_internal;
+ tt=NEW.jr_grpt_id;
diff:=check_balance(tt);
if diff != 0 then
- raise exception 'Rounded error %',diff ;
+ raise exception 'balance error %',diff ;
end if;
return NEW;
end if;
end;
+
+
+Returns: "trigger"
+Language: PLPGSQL
+
+
+ BEGIN
+ execute 'create sequence seq_doc_type_'||NEW.dt_id;
+raise notice 'Creating sequence seq_doc_type_%',NEW.dt_id;
+ RETURN NEW;
+ END;
+
+
+
+
+Returns: "trigger"
+Language: PLPGSQL
+
+
+ BEGIN
+ execute 'create sequence s_jrn_'||NEW.jrn_def_id;
+raise notice 'Creating sequence s_jrn_%',NEW.jrn_def_id;
+ RETURN NEW;
+ END;
+
+
+
+
+Returns: "trigger"
+Language: PLPGSQL
+
+
+declare
+ modified import_tmp%ROWTYPE;
+begin
+ modified.code=new.code;
+ modified.montant=new.montant;
+ modified.date_exec=new.date_exec;
+ modified.date_valeur=new.date_valeur;
+ modified.devise=replace(new.devise,'"','');
+ modified.poste_comptable=replace(new.poste_comptable,'"','');
+ modified.compte_ordre=replace(NEW.COMPTE_ORDRE,'"','');
+ modified.detail=replace(NEW.DETAIL,'"','');
+ modified.num_compte=replace(NEW.NUM_COMPTE,'"','');
+ modified.bq_account=NEW.bq_account;
+ modified.jrn=NEW.jrn;
+ modified.ok=new.ok;
+ return modified;
+end;
+
+
+
+
+Returns: "trigger"
+Language: PLPGSQL
+
+
+declare
+ modified format_csv_banque%ROWTYPE;
+begin
+ modified.name=trim(NEW.NAME);
+ modified.include_file=trim(new.include_file);
+ if ( length(modified.name) = 0 ) then
+ modified.name=null;
+ end if;
+ if ( length(modified.include_file) = 0 ) then
+ modified.include_file=null;
+ end if;
+
+ return modified;
+end;
+
+
+
+
+Returns: void
+Language: PLPGSQL
+
+
+declare
+ p_tva_id alias for $1;
+ nCount integer;
+begin
+ nCount=0;
+ select count(*) into nCount from quant_sold where qs_vat_code=p_tva_id;
+ if nCount = 0 then
+ delete from tva_rate where tva_id=p_tva_id;
+ end if;
+ return;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+
+declare
+p_tva_id alias for $1;
+p_tva_label alias for $2;
+p_tva_rate alias for $3;
+p_tva_comment alias for $4;
+p_tva_poste alias for $5;
+debit text;
+credit text;
+nCount integer;
+begin
+if length(trim(p_tva_label)) = 0 then
+ return 3;
+end if;
+select count(*) into nCount from tva_rate
+ where tva_id=p_tva_id;
+if nCount != 0 then
+ return 5;
+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;
+insert into tva_rate(tva_id,tva_label,tva_rate,tva_comment,tva_poste)
+ values (p_tva_id,p_tva_label,p_tva_rate,p_tva_comment,p_tva_poste);
+return 0;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+ declare
+p_tva_id alias for $1;
+p_tva_label alias for $2;
+p_tva_rate alias for $3;
+p_tva_comment alias for $4;
+p_tva_poste alias for $5;
+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;
+update tva_rate set tva_label=p_tva_label,tva_rate=p_tva_rate,tva_comment=p_tva_comment,tva_poste=p_tva_poste
+ where tva_id=p_tva_id;
+return 0;
+end;
+
+
+
+
+Returns: integer
+Language: PLPGSQL
+
+
+ declare
+ ns integer;
+ nExist integer;
+ tText text;
+ old_qcode varchar;
+ begin
+ -- get current value
+ select av_text into old_qcode from attr_value where jft_id=njft_id;
+ -- av_text didn't change so no update
+ if tav_text = upper( trim(old_qcode)) then
+ return 0;
+ end if;
+
+ tText := trim(upper(tav_text));
+ tText := replace(tText,' ','');
+ if length ( tText) = 0 or tText is null then
+ return 0;
+ end if;
+
+ ns := njft_id;
+
+ loop
+ -- av_text already used ?
+ select count(*) into nExist
+ from jnt_fic_att_value join attr_value using (jft_id)
+ where
+ ad_id=23 and av_text=upper(tText);
+
+ if nExist = 0 then
+ exit;
+ end if;
+ if tText = 'FID'||ns then
+ -- take the next sequence
+ select nextval('s_jnt_fic_att_value') into ns;
+ end if;
+ tText :='FID'||ns;
+
+ end loop;
+ update attr_value set av_text = tText where jft_id=njft_id;
+ update jrnx set j_qcode=tText where j_qcode = old_qcode;
+ return ns;
+ end;
+
+
Generated by PostgreSQL Autodoc
diff --git a/doc/developper/header.html b/doc/developper/header.html
new file mode 100644
index 000000000..e04310fdd
--- /dev/null
+++ b/doc/developper/header.html
@@ -0,0 +1,2 @@
+
+
diff --git a/doc/developper/html/ac__common_8php.html b/doc/developper/html/ac__common_8php.html
index 3634c49d0..679581648 100644
--- a/doc/developper/html/ac__common_8php.html
+++ b/doc/developper/html/ac__common_8php.html
@@ -227,7 +227,7 @@ Definition at line 36
References echo_debug().
-Referenced by AddFiche(), AddForm(), AddModele(), DeleteRapt(), ExecSql(), form_verify_input(), FormAchInput(), FormAchView(), FormatString(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), GetFicheJrn(), getPeriodeName(), GetTvaPoste(), Imp(), InsertRapt(), isValid(), Remove(), Document_modele::Save(), save_upload_document(), fiche::update(), UpdateFiche(), UpdateJrn(), UpdateModele(), VerifData(), and VerifyOperationDate().
| |
@@ -851,7 +851,7 @@ Referenced by action:
Definition at line 241 of file action.inc.php.
-Referenced by ChangeStock(), action::Confirm(), widget::debug(), fiche_def_ref::Display(), DisplayDetailModele(), EncodeFiche(), EncodeForm(), Cezpdf::ezTable(), FormFin(), FormODS(), FormVenteView(), jrn::GetDefLine(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), fiche_def_ref::LoadAll(), make_array(), new_fiche(), Cpdf::o_fontDescriptor(), Document::ParseDocument(), RecordJrn(), action::SaveStage2(), ShowActionList(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), cl_user::update_global_pref(), UpdateJrn(), VerifImport(), ViewFiche(), ViewImp(), and widget::widget().
+Referenced by ChangeStock(), action::Confirm(), ConfirmTransfert(), widget::debug(), fiche_def_ref::Display(), DisplayDetailModele(), EncodeFiche(), EncodeForm(), Cezpdf::ezTable(), FormFin(), FormODS(), FormVenteView(), jrn::GetDefLine(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), fiche_def_ref::LoadAll(), make_array(), new_fiche(), Cpdf::o_fontDescriptor(), Document::ParseDocument(), RecordJrn(), action::SaveStage2(), ShowActionList(), ShowBox(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), cl_user::update_global_pref(), UpdateJrn(), ViewFiche(), ViewImp(), and widget::widget().
+
+
+
+admin.inc.php
Go to the documentation of this file.00001 <?
+00002
+00003
+00004
+00005
+00006
+00007
+00008
+00009
+00010
+00011
+00012
+00013
+00014
+00015
+00016
+00017
+00018
+00019
+00020
+00021 require_once("class_admin.php");
+00022 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
+00023 $User->AccessRequest($cn,ADMIN);
+00024
+00029 ?>
+00030
+00031 <?
+00032
+00033
+00034 if ( isset ($_POST['delete']) )
+00035 {
+00036 echo 'delete';
+00037 $f_id=$_REQUEST['f_id'];
+00038
+00039 $fiche=new Admin($cn,$f_id);
+00040 $fiche->remove();
+00041 $sub_action="list";
+00042 }
+00043
+00044
+00045 if ( $sub_action=="insert" )
+00046 {
+00047 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
+00048 urldecode($_REQUEST['url']));
+00049
+00050 $admin=new Admin($cn);
+00051 $admin->Save($_REQUEST['fd_id']);
+00052 echo $retour;
+00053 echo "<table>";
+00054 echo $admin->Display(true);
+00055 echo "</table>";
+00056 echo $retour;
+00057
+00058 }
+00059
+00060
+00061 if ( isset ($_POST['mod']))
+00062 {
+00063
+00064 $f_id=$_REQUEST['f_id'];
+00065
+00066 $sup=new Admin($cn,$f_id);
+00067 $sup->Save();
+00068 }
+00069
+00070 if ( $sub_action == "" )
+00071 $sub_action="list";
+00072
+00073
+00074 if ( $sub_action=="blank")
+00075 {
+00076 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
+00077 "commercial.php?p_action=admin");
+00078 echo '<div class="u_redcontent">';
+00079
+00080 echo $retour;
+00081 $c=new Admin($cn);
+00082 echo '<form method="post" action="commercial.php"';
+00083 echo '<input type="hidden" name="p_action" value="admin">';
+00084 echo '<input type="hidden" name="sa" value="insert">';
+00085 echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">';
+00086 echo '<input type="hidden" name="url" value="'.$_GET['url'].'">';
+00087 echo $c->blank($_GET['fd_id']);
+00088 echo '<input type="Submit" value="Sauve">';
+00089 echo '</form>';
+00090 echo $retour;
+00091 echo '</div>';
+00092 }
+00093
+00094
+00095 if ( $sub_action == "list" )
+00096 {
+00097 ?>
+00098 <div class="u_content">
+00099 <span>
+00100 <form method="get" action="commercial.php">
+00101 <?
+00102 $a=(isset($_GET['query']))?$_GET['query']:"";
+00103 printf ('<input type="text" name="query" value="%s">',
+00104 $a);
+00105 ?>
+00106 <input type="submit" name="submit_query" value="recherche">
+00107 <input type="hidden" name="p_action" value="admin">
+00108 </form>
+00109 </span>
+00110 <span>
+00111 <form method="get" action="commercial.php">
+00112 <input type="hidden" name="url" <? $url=urlencode($_SERVER['REQUEST_URI']);echo 'value="'.$url.'"'; ?>
+00113 <input type="hidden" name="p_action" value="admin">
+00114
+00115 <?
+00116 $w=new widget("select");
+00117 $w->name="fd_id";
+00118 $w->value= make_array($cn,"select fd_id,fd_label from fiche_def where ".
+00119 " frd_id=".FICHE_TYPE_ADM_TAX);
+00120 echo $w->IOValue();
+00121 ?>
+00122 <input type="hidden" name="sa" value="blank">
+00123 <input type="submit" name="submit_query" value="Ajout Sup">
+00124
+00125 </form>
+00126 </span>
+00127 <?
+00128 $sup=new Admin($cn);
+00129 $search=(isset($_GET['query']))?$_GET['query']:"";
+00130
+00131 echo '<div class="u_redcontent">';
+00132 echo $sup->Summary($search);
+00133 echo '</div>';
+00134 echo '</div>';
+00135
+00136 }
+00137
+00138
+00139 if ( $sub_action == 'detail' )
+00140 {
+00141 $f_id=$_REQUEST['f_id'];
+00142 echo '<div class="u_redcontent">';
+00143 $sup=new Admin($cn,$f_id);
+00144 $retour=sprintf('<A class="two" HREF="%s"><input type="button" value="Retour"></A>',
+00145 urldecode($_REQUEST['url']));
+00146 echo $retour;
+00147 echo '<form action="'.$_REQUEST['url'].'" method="post">';
+00148 echo $sup->Display(false);
+00149 $w=new widget("hidden");
+00150 $w->name="p_action";
+00151 $w->value="admin";
+00152 echo $w->IOValue();
+00153 $w->name="f_id";
+00154 $w->value=$f_id;
+00155 echo $w->IOValue();
+00156
+00157 echo $w->Submit('mod','Sauver les modifications');
+00158 echo $w->Reset("Annuler");
+00159 echo $w->Submit('delete','Effacer cette fiche');
+00160 echo '</form>';
+00161 echo $retour;
+00162 echo '<div>';
+00163 }
+00164 html_page_stop();
+00165 ?>
+
diff --git a/doc/developper/html/admin_8inc_8php-source.html b/doc/developper/html/admin_8inc_8php-source.html
new file mode 100644
index 000000000..e4b62e890
--- /dev/null
+++ b/doc/developper/html/admin_8inc_8php-source.html
@@ -0,0 +1,172 @@
+
+