************************* File = admin_repo.php ****************
************************* File = annulation.php ****************
************************* File = bal_csv.php ****************
************************* File = bilan.php ****************
************************* File = central.php ****************
************************* File = dossier_prefs.php ****************
************************* File = facturation.php ****************
************************* File = fiche_csv.php ****************
************************* File = fiche_new.php ****************
************************* File = fiche.php ****************
************************* File = fiche_search.php ****************
************************* File = form_csv.php ****************
************************* File = form_pdf.php ****************
************************* File = form.php ****************
************************* File = index.php ****************
************************* File = jrn_add.php ****************
************************* File = jrn_csv.php ****************
************************* File = jrn_detail.php ****************
************************* File = jrn_op_detail.php ****************
************************* File = jrn_pdf.php ****************
************************* File = jrn_search.php ****************
************************* File = jrn_update.php ****************
************************* File = line_update.php ****************
************************* File = listing_client.php ****************
************************* File = login.php ****************
************************* File = logout.php ****************
************************* File = modify_op.php ****************
************************* File = not_implemented.php ****************
************************* File = pcmn_update.php ****************
************************* File = poste_csv.php ****************
************************* File = poste_pdf.php ****************
************************* File = poste_search.php ****************
************************* File = print_balance.php ****************
************************* File = print_invoice.php ****************
************************* File = priv_user.php ****************
************************* File = recherche.php ****************
************************* File = sec_pdf.php ****************
************************* File = send_jrn_pdf.php ****************
************************* File = send_poste_pdf.php ****************
************************* File = show_document.php ****************
************************* File = show_tva.php ****************
************************* File = stock.php ****************
************************* File = test.php ****************
************************* File = user_advanced.php ****************
************************* File = user_compta.php ****************
************************* File = user_impress.php ****************
************************* File = user_jrn.php ****************
************************* File = user_login.php ****************
************************* File = user_pref.php ****************
************************* File = user_sec.php ****************
************************* File = ac_common.php ****************
ac_common.php /* function cmpDate
ac_common.php  * Purpose : 
ac_common.php  *         Compare 2 dates
ac_common.php  * parm : 
ac_common.php  *	- date1 date2
ac_common.php  * gen :
ac_common.php  *	- rien
ac_common.php  * return:
ac_common.php  *	- == 0 les dates sont identiques
ac_common.php  *      - > 0 date1 > date2 
ac_common.php  *      - < 0 date1 < date2
ac_common.php  */
ac_common.php /* function IsNumber
ac_common.php  * purpose : check if the argument is a number
ac_common.php  *
ac_common.php  * parm : $p_int
ac_common.php  *
ac_common.php  * gen nothing
ac_common.php  * 
ac_common.php  * return :
ac_common.php  *        1 it's a number
ac_common.php  *        0 it is not
ac_common.php  */
ac_common.php /* function isDate
ac_common.php  * Purpose : Verifie qu'une date est bien formaté
ac_common.php  *           en d.m.y et est valable
ac_common.php  * parm : 
ac_common.php  *	- $p_date
ac_common.php  * gen :
ac_common.php  *	- rien
ac_common.php  * return:
ac_common.php  *	- null si la date est invalide ou malformaté
ac_common.php  *      - $p_date si tout est bon
ac_common.php  *
ac_common.php  */ 
ac_common.php /* function  formatDate($p_date) 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function html_page_start
ac_common.php  * Purpose : Default page header for each page
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *      - default theme
ac_common.php  *	- $p_script
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return:
ac_common.php  *        none
ac_common.php  */
ac_common.php /* function html_page_stop()
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function html_button_logout 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function  NoAccess 
ac_common.php  * Purpose : 
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function FormatString($p_string) 
ac_common.php  * Purpose : Fix the problem with the ' char
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	-
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return:
ac_common.php  */
ac_common.php /* function ShowItem($p_array) */
ac_common.php /* function echo_warning
ac_common.php  * Purpose : warns
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- string
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return:
ac_common.php  *      - none
ac_common.php  */
ac_common.php /* function make_array($cn,$sql)
ac_common.php  **************************************************
ac_common.php  * Purpose : make a array with the sql
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- $cn dbatabase connection
ac_common.php  *      - $sql related sql 
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  * return: a double array [value,label]
ac_common.php  */
ac_common.php /* function getPeriodeName
ac_common.php  **************************************************
ac_common.php  * Purpose : Show the periode which found thanks its
ac_common.php  *           id
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- $p_cn database connection 
ac_common.php  *      - p_id
ac_common.php  *      - Start or end
ac_common.php  * gen :
ac_common.php  *	-
ac_common.php  * return: string
ac_common.php  */
ac_common.php /* function getPeriodeFromMonth
ac_common.php  **************************************************
ac_common.php  * Purpose : Return the period corresponding to the 
ac_common.php  *           date
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- p_cn database connection
ac_common.php  *      - the month + year 'MM.YYYY'
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  *
ac_common.php  * return:
ac_common.php  *       parm_periode.p_id
ac_common.php  */
ac_common.php /* function getPeriodeFromDate
ac_common.php  **************************************************
ac_common.php  * Purpose : Return the period corresponding to the 
ac_common.php  *           date
ac_common.php  *        
ac_common.php  * parm : 
ac_common.php  *	- p_cn database connection
ac_common.php  *      - the date 'DD.MM.YYYY'
ac_common.php  * gen :
ac_common.php  *	- none
ac_common.php  *
ac_common.php  * return:
ac_common.php  *       parm_periode.p_id
ac_common.php  */
************************* File = balance.php ****************
************************* File = central_inc.php ****************
central_inc.php /* function Centralise
central_inc.php  * Purpose :
central_inc.php  *        Met les donnees centralisees dans la table
central_inc.php  *        centralize 
central_inc.php  * 
central_inc.php  * parm : 
central_inc.php  *	- p_cn connection
central_inc.php  *      - periode a centraliser
central_inc.php  * gen :
central_inc.php  *	- none
central_inc.php  * return:
central_inc.php  *	- code error
central_inc.php  *
central_inc.php  */ 
central_inc.php /* function isCentralize($p_cn,$p_user) 
central_inc.php  **************************************************
central_inc.php  * Purpose : test if e jrn_jr.id is centralize or not 
central_inc.php  *        
central_inc.php  * parm :  
central_inc.php  *	- p_cn 
central_inc.php  *      - p_jnr_id jrn.jr_id 
central_inc.php  * gen : 
central_inc.php  *	-  none 
central_inc.php  * return: 0 if not centralized otherwise > 0
central_inc.php  */
************************* File = check_priv.php ****************
check_priv.php /* function CheckJrn
check_priv.php  * Purpose :
check_priv.php  * Vérifie les acces d'un utilisateur
check_priv.php  * sur un journal
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- $p_dossier le dossier
check_priv.php  *      - $p_user    le login user
check_priv.php  *      - $p_jrn     le journal
check_priv.php  * gen :
check_priv.php  *	- rien
check_priv.php  * return:
check_priv.php  *	- 0 pas d'acces
check_priv.php  *      - 1 Lecture
check_priv.php  *      - 2 écriture
check_priv.php  *
check_priv.php  */ 
check_priv.php /* function CheckAction
check_priv.php  * Purpose : Check if an user is allowed to do an action
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- p_dossier dossier id
check_priv.php  *      - p_login   user's login
check_priv.php  *      - p_action_id 
check_priv.php  * gen :
check_priv.php  *	-
check_priv.php  * return:
check_priv.php  *	- 0 no priv
check_priv.php  *      - 1 priv granted
check_priv.php  *
check_priv.php  */ 
check_priv.php /* function CheckIsAdmin
check_priv.php  * Purpose : Check if an user is an administrator
check_priv.php  * 
check_priv.php  * parm : 
check_priv.php  *	- $p_user  user login
check_priv.php  * gen :
check_priv.php  *	-
check_priv.php  * return:
check_priv.php  *	- 0 if no
check_priv.php  *      - 1 if yes
check_priv.php  *
check_priv.php  */ 
check_priv.php /* function CheckDossier
check_priv.php  **************************************************
check_priv.php  * Purpose : Check if an user has acces to a folder
check_priv.php  *        
check_priv.php  * parm : 
check_priv.php  *	- user
check_priv.php  *      - p_dossier concerned folder
check_priv.php  * gen :
check_priv.php  *	- none
check_priv.php  * return: 
check_priv.php  *     1 if yes
check_priv.php  *     0 if no
check_priv.php  */
************************* File = class_attribut.php ****************
class_attribut.php /* function       SortAttributeById
class_attribut.php  **************************************************
class_attribut.php  * Purpose : Sort an array of object attribut thx the
class_attribut.php  *        ad_id
class_attribut.php  * parm : 
class_attribut.php  *	- array of Attribut objects
class_attribut.php  * gen :
class_attribut.php  *	-
class_attribut.php  * return: the ordered array
class_attribut.php  */
************************* File = class_balance.php ****************
************************* File = class_customer.php ****************
class_customer.php /* function ListingVat
class_customer.php  **************************************************
class_customer.php  * Purpose : Get all the info for making a vat listing
class_customer.php  *           for the vat administration
class_customer.php  *        
class_customer.php  * parm : 
class_customer.php  *	- periode
class_customer.php  * 
class_customer.php  * return:
class_customer.php  * 
class_customer.php  *	- array
class_customer.php  */
************************* File = class_fiche.php ****************
class_fiche.php /* function GetAttribut
class_fiche.php  **************************************************
class_fiche.php  * Purpose : Get attribut of a fiche_def
class_fiche.php  *        
class_fiche.php  * parm : 
class_fiche.php  *	- none
class_fiche.php  * gen :
class_fiche.php  *	- none
class_fiche.php  * return:
class_fiche.php  * none
class_fiche.php  */
class_fiche.php  /* function Get
class_fiche.php  **************************************************
class_fiche.php  * Purpose : Get attribut of the fiche_def
class_fiche.php  *        
class_fiche.php  * parm : 
class_fiche.php  *	- none
class_fiche.php  * gen :
class_fiche.php  *	- none
class_fiche.php  * return:
class_fiche.php  *       none
class_fiche.php  */
class_fiche.php /* function GetAll
class_fiche.php  **************************************************
class_fiche.php  * Purpose : Get all the fiche_def
class_fiche.php  *        
class_fiche.php  * parm : 
class_fiche.php  *	- none
class_fiche.php  * gen :
class_fiche.php  *	- none
class_fiche.php  * return: an array of fiche_def object 
class_fiche.php  */
class_fiche.php /* function HasAttribute
class_fiche.php  **************************************************
class_fiche.php  * Purpose : Check in vw_fiche_def if a fiche has 
class_fiche.php  *           a attribut X
class_fiche.php  *        
class_fiche.php  * parm : 
class_fiche.php  *	- attribut to check
class_fiche.php  * gen :
class_fiche.php  *	- none
class_fiche.php  * return:  true or false
class_fiche.php  */
************************* File = class_jrn.php ****************
class_jrn.php /* function GetRow
class_jrn.php  * Purpose : Get The data 
class_jrn.php  * 
class_jrn.php  * parm : 
class_jrn.php  *	- connection
class_jrn.php  *      - array
class_jrn.php  *      - p_limit starting line
class_jrn.php  *      - p_offset number of lines
class_jrn.php  *
class_jrn.php  * gen :
class_jrn.php  *	- none
class_jrn.php  * return:
class_jrn.php  *	- Array with the asked data
class_jrn.php  *
class_jrn.php  */ 
class_jrn.php  /* function GetRowSimple
class_jrn.php  **************************************************
class_jrn.php  * Purpose : Get simplified row
class_jrn.php  *        
class_jrn.php  * parm : 
class_jrn.php  *	- connection
class_jrn.php  *      - array
class_jrn.php  *      - p_limit starting line
class_jrn.php  *      - p_offset number of lines
class_jrn.php  *
class_jrn.php  * gen :
class_jrn.php  *	- none
class_jrn.php  * return:
class_jrn.php  *	- Array with the asked data
class_jrn.php  *
class_jrn.php  */ 
************************* File = class_operation.php ****************
************************* File = class_own.php ****************
class_own.php /* function UpdateRow
class_own.php  **************************************************
class_own.php  * Purpose : Update a row
class_own.php  *        
class_own.php  * parm : 
class_own.php  *	- give the attribut name
class_own.php  * gen :
class_own.php  *	- none
class_own.php  * return:
class_own.php  *      -none
class_own.php  */
class_own.php /* function Save
class_own.php  **************************************************
class_own.php  * Purpose : save data
class_own.php  *        
class_own.php  * parm : 
class_own.php  *	- none
class_own.php  * gen :
class_own.php  *	- none
class_own.php  * return:
class_own.php  *    - nothing
class_own.php  */
************************* File = class_poste.php ****************
class_poste.php   /* function GetRow
class_poste.php    * Purpose : Get dat for poste 
class_poste.php    * 
class_poste.php    * parm : 
class_poste.php    *      - connection
class_poste.php    *	- condition
class_poste.php    *      -. position
class_poste.php    * gen :
class_poste.php    *	- none
class_poste.php    * return:
class_poste.php    *	- none
class_poste.php    *
class_poste.php    */ 
class_poste.php   /* function GetSolde
class_poste.php    * Purpose : give the balance of an account
class_poste.php    * 
class_poste.php    * parm : 
class_poste.php    *      - cond
class_poste.php    * gen :
class_poste.php    *	- none
class_poste.php    * return:
class_poste.php    *      - balance of the account
class_poste.php    *
class_poste.php    */ 
class_poste.php   /* function GetSoldeDetail
class_poste.php    * Purpose : give the balance of an account
class_poste.php    * 
class_poste.php    * parm : 
class_poste.php    *      - cond
class_poste.php    * gen :
class_poste.php    *	- none
class_poste.php    * return:
class_poste.php    *      - balance of the account
class_poste.php    *
class_poste.php    */ 
************************* File = class_rapport.php ****************
************************* File = class_user.php ****************
class_user.php /* function Admin
class_user.php  **************************************************
class_user.php  * Purpose : Check if an user is an admin
class_user.php  *        
class_user.php  * parm : 
class_user.php  *	- none
class_user.php  * gen : 
class_user.php  *	- none 
class_user.php  * return: 1 for yes 0 for no
class_user.php  */
class_user.php /* function SetPeriode
class_user.php  * Purpose : Set the selected periode in the user's preferences
class_user.php  * 
class_user.php  * parm : 
class_user.php  
class_user.php  *      - $p_periode 
class_user.php  *      - $p_user
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return:
class_user.php  *	- none
class_user.php  *
class_user.php  */ 
class_user.php /* function GetPeriode
class_user.php  * Purpose : Get the default periode from the user's preferences
class_user.php  * 
class_user.php  * parm : 
class_user.php  *	- $p_cn connexion 
class_user.php  *      - $p_user
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return:
class_user.php  *	- the default periode
class_user.php  *
class_user.php  */ 
class_user.php /* function GetPreferences
class_user.php  * Purpose : Get the default user's preferences
class_user.php  * 
class_user.php  * parm : 
class_user.php  *	- $p_cn connexion 
class_user.php  *      - $p_user
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return:
class_user.php  *	- none
class_user.php  *
class_user.php  */ 
class_user.php /* function CheckAction
class_user.php  * Purpose : Check if an user is allowed to do an action
class_user.php  * 
class_user.php  * parm : 
class_user.php  *	- p_dossier dossier id
class_user.php  *      - p_login   user's login
class_user.php  *      - p_action_id 
class_user.php  * gen :
class_user.php  *	-
class_user.php  * return:
class_user.php  *	- 0 no priv
class_user.php  *      - 1 priv granted
class_user.php  *
class_user.php  */ 
class_user.php /* function GetGlobalPref
class_user.php  **************************************************
class_user.php  * Purpose : Get the global preferences from user_global_pref
class_user.php  *        in the account_repository db
class_user.php  * parm : 
class_user.php  *	- set g_variable
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return:
class_user.php  *     - none
class_user.php  */
class_user.php /* function insert_default_global_pref
class_user.php  **************************************************
class_user.php  * Purpose : insert default pref
class_user.php  *        if no parameter are given insert all the existing 
class_user.php  *        parameter otherwise only the requested
class_user.php  * parm : 
class_user.php  *	- parameter's type or nothing
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return: nothing
class_user.php  */
class_user.php /* function update_global_pref
class_user.php  **************************************************
class_user.php  * Purpose : update default pref
class_user.php  *           if value is not given then use the default value
class_user.php  * parm : 
class_user.php  *	- parameter's type 
class_user.php  *      - parameter's value value of the type
class_user.php  * gen :
class_user.php  *	- none
class_user.php  * return: nothing
class_user.php  */
************************* File = class_widget.php ****************
************************* File = constant.php ****************
************************* File = debug.php ****************
************************* File = decla.BE.inc.php ****************
decla.BE.inc.php /* function MakeListingVat
decla.BE.inc.php  **************************************************
decla.BE.inc.php  * Purpose : Créer le fichier à déposer pour la TVA
decla.BE.inc.php  *           voir le fichier BE_fr_list_client_nonpapier.pdf
decla.BE.inc.php  *        
decla.BE.inc.php  * parm : 
decla.BE.inc.php  *	-array
decla.BE.inc.php  * gen :
decla.BE.inc.php  *	-none
decla.BE.inc.php  * return:
decla.BE.inc.php  *     - none
decla.BE.inc.php  */
************************* File = error.php ****************
error.php /* function AnalyzeError
error.php  * Purpose : Following the error code
error.php  *        show adialog box
error.php  * parm : 
error.php  *	- $p_result
error.php  * gen :
error.php  *	- none
error.php  * return: none
error.php  */
************************* File = facture_inc.php ****************
facture_inc.php /* function
facture_inc.php  * Purpose :
facture_inc.php  * 
facture_inc.php  * parm : 
facture_inc.php  *	- 
facture_inc.php  * gen :
facture_inc.php  *	-
facture_inc.php  * return:
facture_inc.php  *	-
facture_inc.php  *
facture_inc.php  */ 
facture_inc.php /* function
facture_inc.php  * Purpose :
facture_inc.php  * 
facture_inc.php  * parm : 
facture_inc.php  *	- 
facture_inc.php  * gen :
facture_inc.php  *	-
facture_inc.php  * return:
facture_inc.php  *	-
facture_inc.php  *
facture_inc.php  */ 
************************* File = fiche_inc.php ****************
fiche_inc.php /* function GetSqlFiche 
fiche_inc.php  ***************************************************
fiche_inc.php  * purpose : return the sql string which match the p_type 
fiche_inc.php  *           permit to have all the sql here
fiche_inc.php  * param : $p_type what sql select command u want
fiche_inc.php  * return : string
fiche_inc.php  */
fiche_inc.php /* function addFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : ajoute une nouvelle fiche
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- connexion
fiche_inc.php  *      - type de la fiche
fiche_inc.php  *      - tableau
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function EncodeFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Affiche les détails d'une fiche et propose
fiche_inc.php  *           de mettre à jour
fiche_inc.php  *           ou si array est a null, permet d'ajouter une
fiche_inc.php  *           fiche, to fill the attribute
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn connexion
fiche_inc.php  *      -  p_type id du modele fiche_def(fd_id) de la fiche SI array est null
fiche_inc.php  *         sinon correspond au id d'une fiche fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  * NOTE STAN: je ne trouve pas le nom "EncodeFiche" super claire pour une fonction qui affiche les détails d'une fiche...
fiche_inc.php  * on ne changerait pas en "DisplayFiche" ?
fiche_inc.php  * NOTE DANY: Oui je suis assez d'accord avec toi
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetBaseFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : donne la classe comptable de base d'une fiche
fiche_inc.php  *  
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_type fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- return la classe id ou rien
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetBaseFicheDefault
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Give the default accounts of fiche_def
fiche_inc.php  *
fiche_inc.php  *  
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_type fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- return la classe id ou rien
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function ViewFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Montre les fiches d'une rubrique
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn connexion
fiche_inc.php  *      - $p_type fiche_def.fd_id catg of card
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetNextFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Crée le poste suivant pour une fiche en fonction
fiche_inc.php  *           de la classe de base (fichedef(fd_class_base))
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_base 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function ViewFicheDetail
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Montre  le detail d'une fiche
fiche_inc.php  *           et ajoute les lignes manquantes
fiche_inc.php  *           dans le cas où le modèle à changer
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	-  p_cn
fiche_inc.php  *      - id de la fiche fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function UpdateFiche
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Met a jour une fiche
fiche_inc.php  *          change dans le plan comptable, fiche,et isupp
fiche_inc.php  *          
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn
fiche_inc.php  *      - p_array
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- nothing
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function EncodeModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose :
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *	-
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function DefModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Creation of a model of card or correction
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *      - $p_cn  database connection 
fiche_inc.php  *	- $p_ligne number of lines
fiche_inc.php  *      - $p_array  array
fiche_inc.php  *      - $p_js class base (javascript code)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- nothing
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function AddModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Add a modele of card into the database
fiche_inc.php  *           
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection
fiche_inc.php  *      - array
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * table : insert into fiche_def
fiche_inc.php  *         insert into attr_def
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function UpdateModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Modify the model of card
fiche_inc.php  *           change some attribute (fd_label) and permit
fiche_inc.php  *           to add line
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_fiche fichedef(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function GetDataModele
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Return the info of an fiche identified by
fiche_inc.php  *           p_fiche
fiche_inc.php  * 
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection
fiche_inc.php  *      - fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *	- array with all the data
fiche_inc.php  *
fiche_inc.php  */ 
fiche_inc.php /* function Remove
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : enleve une fiche dans attr_value, jnt_fic_att_value  et fiche
fiche_inc.php  *           a la condition que ce poste n'aie jamais
fiche_inc.php  *           été utilisé
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn
fiche_inc.php  *      - p_fid fiche(f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *      - none
fiche_inc.php  */
fiche_inc.php /* function getFicheName
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retourne le nom de la fiche
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_id fiche id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - string avec nom fiche
fiche_inc.php  */
fiche_inc.php /* function getFicheDefName
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retourne le nom de la cat. de  fiches
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_id fiche id fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - string fiche_def.fd_label
fiche_inc.php  */
fiche_inc.php /* function GetFicheJrn
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Get all the fiche related to a "journal"
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connextion
fiche_inc.php  *      - j_jrn journal_id
fiche_inc.php  *      - $p_type : deb or cred
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: array containing the fiche(f_id),fiche(f_label)
fiche_inc.php  */
fiche_inc.php /* function Get_fiche_def_ref
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : 
fiche_inc.php  *        return an array containing all the
fiche_inc.php  *        data contained in the table fiche_def_ref
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  connection to the database
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *       array if ok null otherwize
fiche_inc.php  */
fiche_inc.php /* function Get_attr_min
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the mandatory field of the card model
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref 
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      array of ad_id  (attr_min.ad_id) and  labels (attr_def.ad_text)
fiche_inc.php  */
fiche_inc.php /* function Get_attr_def
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the  fields of the card model
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      array of ad_id  (attr_def.ad_id) and  labels (attr_def.ad_text)
fiche_inc.php  */
fiche_inc.php /* function GetCreateAccount
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the  fields of the card model
fiche_inc.php  *        which indicate if each cards needs its own account
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn  database connexion
fiche_inc.php  *      - $p_fiche_def_ref fiche_def.fd_id
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return:
fiche_inc.php  *      not null if yes, each cards has its own account
fiche_inc.php  */
fiche_inc.php /* function GetFicheDefRef
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the fiche_def.frd_id thanks the f_id 
fiche_inc.php  *           of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn connection
fiche_inc.php  *      - $p_f_id  fiche.f_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - the fiche_def.frd_id or null if nothing has been found
fiche_inc.php  */
fiche_inc.php /* function GetFicheRef
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrieve the fiche_def.fd_id thanks the f_id 
fiche_inc.php  *           of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- $p_cn connection
fiche_inc.php  *      - $p_f_id  fiche.f_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - the fiche_def.fd_id or null if nothing has been found
fiche_inc.php  */
fiche_inc.php /* function  GetClass
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : Retrieve the account of a card
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- connection 
fiche_inc.php  *      - card id (fiche.f_id)
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: 
fiche_inc.php  *      string if a class if found or null otherwise
fiche_inc.php  */
fiche_inc.php /* function InsertModeleLine
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Insert a new row into jnt_fic_attr
fiche_inc.php  *        for adding a new attribute to the card model
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn   connection
fiche_inc.php  *      - the fiche_def.fd_id, id of the cat of the model
fiche_inc.php  *      - the ad_id is the attr_def.ad_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: none
fiche_inc.php  */
fiche_inc.php /* function SaveModeleName
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Update the model's name
fiche_inc.php  *
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn   connection
fiche_inc.php  *      - the fiche_def.fd_id, id of the cat of the model
fiche_inc.php  *      - the label
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return: none
fiche_inc.php  */
fiche_inc.php /* function DisplayDetailModele
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Show the data contained in an array of
fiche_inc.php  *           a model of card (fiche_def)
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *      - p_cn database connection
fiche_inc.php  *	- array containing 
fiche_inc.php  *                 label,class_base,fd_id,ad_textX,ad_idX
fiche_inc.php  *      - number of line
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *      none
fiche_inc.php  */
fiche_inc.php /* function GetParent
fiche_inc.php  **************************************************
fiche_inc.php  * Purpose : Get the parent in tmp_pcmn
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- cn database connextion
fiche_inc.php  *      - the base we want insert
fiche_inc.php  * gen :
fiche_inc.php  *	-
fiche_inc.php  * return: the parent
fiche_inc.php  *
fiche_inc.php  */
fiche_inc.php /* function getFicheAttribut
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose : retrun array of attribut or string
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connexion
fiche_inc.php  *      - p_id fiche id
fiche_inc.php  *      - attribut if attribut == "" then return a array
fiche_inc.php  *        taken from vw_fiche_attr
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  * return:
fiche_inc.php  *     - string avec nom fiche or array 
fiche_inc.php  */
fiche_inc.php /* function IsFicheOfJrn
fiche_inc.php  ***************************************************
fiche_inc.php  * Purpose :  Check if a fiche is used by a jrn
fiche_inc.php  *  return 1 if the  fiche is in the range otherwise 0
fiche_inc.php  *        
fiche_inc.php  * parm : 
fiche_inc.php  *	- p_cn connextion
fiche_inc.php  *      - j_jrn journal_id
fiche_inc.php  *      - $p_type : deb or cred
fiche_inc.php  *      - $p_fiche : p_f_id
fiche_inc.php  * gen :
fiche_inc.php  *	- none
fiche_inc.php  *
fiche_inc.php  * return 1 if the fiche is in the range otherwise 0
fiche_inc.php  * 
fiche_inc.php  */
************************* File = form_inc.php ****************
form_inc.php /* function EncodeForm
form_inc.php  * Purpose : 
form_inc.php  *          Encoding Form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- array of previous changes
form_inc.php  *      - sessid for the search window
form_inc.php  *      - p_line number of line
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function ViewForm
form_inc.php  * Purpose : Show the details of a form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *      - sessid for the search window
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return: 
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function ViewForm
form_inc.php  * Purpose : Show the details of a form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *      - sessid for the search window
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return: 
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetDataForm
form_inc.php  * Purpose :
form_inc.php  *         Get data from a form 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *	- 
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- array
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetNumberLine
form_inc.php  * Purpose : Get the number of line of a form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id gives the formdef.fr_id
form_inc.php  *	- 
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- integer
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function GetFormName
form_inc.php  * Purpose : Get the name of the form
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	- $p_cn connection
form_inc.php  *      - $p_id formdef.fr_id
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- string name
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function UpdateForm
form_inc.php  * Purpose :
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	-  $p_cn connexion
form_inc.php  *      -  $array
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
form_inc.php /* function AddForm
form_inc.php  * Purpose :
form_inc.php  * 
form_inc.php  * parm : 
form_inc.php  *	-  $p_cn connexion
form_inc.php  *      -  $array
form_inc.php  * gen :
form_inc.php  *	- none
form_inc.php  * return:
form_inc.php  *	- none
form_inc.php  *
form_inc.php  */ 
************************* File = impress_bilan.php ****************
************************* File = impress_fiche.php ****************
************************* File = impress_inc.php ****************
impress_inc.php /* function ViewImp
impress_inc.php  * Purpose : Create the form where the period
impress_inc.php  *           is asked
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- array (type,action,central,filter...)
impress_inc.php  *      - connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- none
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function Imp
impress_inc.php  * Purpose : Show the html printing result 
impress_inc.php  *           
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	-  array
impress_inc.php  *      -  db connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- ImpHtml
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function ImpHtml
impress_inc.php  * Purpose : Show the html result
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- array (type,periode,
impress_inc.php  *      - connection
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return: 
impress_inc.php  *	- error if something goes wrong or
impress_inc.php  *        the page result
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataPoste
impress_inc.php  * Purpose : Get dat for poste 
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *      - connection
impress_inc.php  *	- condition
impress_inc.php  *      -. position
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- none
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataJrn
impress_inc.php  * Purpose : Get data from the jrn table
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- connection
impress_inc.php  *      - array periode
impress_inc.php  *      - filter (default = YES)
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- error code if something code wrong
impress_inc.php  *       otherwise the result
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function CreatePeriodeCond
impress_inc.php  * Purpose : Create the sql query for the periode
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- p_periode
impress_inc.php  *      - p_field (default = j_tech_per)
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- a string containing the query
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetDataJrnPdf
impress_inc.php  * Purpose : Get The data for the pdf printing
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- connection
impress_inc.php  *      - array
impress_inc.php  *      - p_limit starting line
impress_inc.php  *      - p_offset number of lines
impress_inc.php  *
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- Array with the asked data
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function 
impress_inc.php  * Purpose : 
impress_inc.php  *        
impress_inc.php  * parm : 
impress_inc.php  *	-
impress_inc.php  * gen :
impress_inc.php  *	-
impress_inc.php  * return:
impress_inc.php  */
impress_inc.php /* function GetRappel
impress_inc.php  * Purpose : Get the amount on each page
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- $p_cn
impress_inc.php  *      - $p_jrnx_id jrnx.j_id
impress_inc.php  *      - $p_jrn_id jrn.jr_id
impress_inc.php  *      - $which LAST or FIRST
impress_inc.php  *      - $p_type valeur JRN GL-CENTRAL GL-NOCENTRAL
impress_inc.php  * gen :
impress_inc.php  *	-
impress_inc.php  * return:
impress_inc.php  *	- array sum (deb) sum(cred)
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function ParseFormula
impress_inc.php  * Purpose Parse a formula
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- $p_cn connexion
impress_inc.php  *      - $p_label
impress_inc.php  *      - $p_formula
impress_inc.php  *      - $p_eval  true if we eval here otherwise the function returns
impress_inc.php  *                 a string which must be evaluated
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- array
impress_inc.php  *
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function GetFormulaValue
impress_inc.php  * Purpose : Parse the formula contained in the fo_formula 
impress_inc.php  *           field and return a array containing all the columns
impress_inc.php  * 
impress_inc.php  * parm : 
impress_inc.php  *	- $p_cn connexion
impress_inc.php  *      - $p_label
impress_inc.php  *      - $p_formula
impress_inc.php  * gen :
impress_inc.php  *	- none
impress_inc.php  * return:
impress_inc.php  *	- array
impress_inc.php  * 
impress_inc.php  *
impress_inc.php  */ 
impress_inc.php /* function CheckFormula
impress_inc.php  **************************************************
impress_inc.php  * Purpose : Check if formula doesn't contain
impress_inc.php  *           php injection
impress_inc.php  *        
impress_inc.php  * parm : 
impress_inc.php  *	- string
impress_inc.php  * gen :
impress_inc.php  *	- 
impress_inc.php  * return: none : stop on error
impress_inc.php  */
************************* File = impress_jrn.php ****************
************************* File = impress_listing_client.php ****************
************************* File = impress_poste.php ****************
************************* File = impress_rapport.php ****************
************************* File = jrn.php ****************
jrn.php /* function RecordJrn
jrn.php  * Purpose : Record an entry in the selected journal
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier dossier id
jrn.php  *      - p_user user id
jrn.php  *      - p_jrn selected journal
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function UpdateJrn
jrn.php  * Purpose : Display the form to UPDATE account operation
jrn.php  *          
jrn.php  * parm : 
jrn.php  *	- p_dossier
jrn.php  *      - p_jrn
jrn.php  *      - p_MaxDeb number of debit line
jrn.php  *      - p_MaxCred "     "  credit "
jrn.php  *"     - p_array array containing the others datas
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewRec
jrn.php  * Purpose : debug function to be dropped
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function CorrectRecord
jrn.php  * Purpose : Call the RecordJrn. In fact does nothing
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- the same as RecordJrn
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewRecord
jrn.php  * Purpose : View the added operation
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier
jrn.php  *      - p_jrn
jrn.php  *      - p_id
jrn.php  *      - p_MaxDeb
jrn.php  *      - p_MaxCred
jrn.php  *      - p_array
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- none
jrn.php  *
jrn.php  */ 
jrn.php /* function GetJrnProperty ($p_cn,$p_jrn) 
jrn.php  * Purpose : Get the properties of a journal
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn database connection
jrn.php  *      - p_jrn the jrn id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- an array containing properties
jrn.php  *
jrn.php  */ 
jrn.php /* function GetJrnProp
jrn.php  * Purpose : Get the properties of a journal
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier the folder id
jrn.php  *      - p_jrn the jrn id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- an array containing properties
jrn.php  *
jrn.php  */ 
jrn.php /* function ViewJrn
jrn.php  * Purpose : Vue des écritures comptables
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_dossier,
jrn.php  *      - p_user,
jrn.php  *      - p_jrn
jrn.php  *      - p_url for modif
jrn.php  *      - array
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function GetData
jrn.php  * Purpose : Get data from jrnx where p_grpt=jrnx(j_grpt)
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- connection
jrn.php  *      - p_grpt
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- return array
jrn.php  *
jrn.php  */ 
jrn.php /* function
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- 
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-  -1 si aucune valeur de trouvée
jrn.php  *
jrn.php  */ 
jrn.php /* function  GetInternal($p_cn,$p_id)
jrn.php  * Purpose : Return the internal value
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn database connection
jrn.php  *      - p_id : jrn.jr_id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	-  null si aucune valeur de trouvée
jrn.php  *
jrn.php  */ 
jrn.php /* function GetAmount
jrn.php  * Purpose : return the sum of jrn where
jrn.php  *            the internal_code is the p_id
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- $p_cn database connection
jrn.php  *  - p_id = jrn.jr_internal
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	- number
jrn.php  *
jrn.php  */ 
jrn.php /* function VerifData
jrn.php  * Purpose : Verify the data before inserting or
jrn.php  *           updating
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn connection
jrn.php  *      - p_array array with all the values
jrn.php  *      - p_user
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- errorcode or ok
jrn.php  *
jrn.php  */ 
jrn.php /* function GetJrnName
jrn.php  * Purpose : Return the name of the jrn
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- p_cn connexion resource
jrn.php  *      - jrn id
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- string or null if not found
jrn.php  *
jrn.php  */ 
jrn.php /* function NextJrn
jrn.php  * Purpose :
jrn.php  *         Get the number of the next jrn
jrn.php  *         from the jrn_def.jrn_code
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- $p_cn connection
jrn.php  *      - $p_type jrn type
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- string containing the next code
jrn.php  *
jrn.php  */ 
jrn.php /* function 	SetInternalCode
jrn.php  * Purpose :
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- $p_cn connection
jrn.php  *      - $p_grpt id in jr_grpt_id
jrn.php  *      - $p_jrn jrn id jrn_def_id
jrn.php  *      - $p_dossier dossier id
jrn.php  * gen :
jrn.php  *	-
jrn.php  * return:
jrn.php  *	-
jrn.php  *
jrn.php  */ 
jrn.php /* function GetDataJrnJrid
jrn.php  * Purpose : Get data from jrn and jrnx thanks the jr_id
jrn.php  * 
jrn.php  * parm : 
jrn.php  *	- connection
jrn.php  *      - p_jr_id (jrn.jr_id)
jrn.php  * gen :
jrn.php  *	- none
jrn.php  * return:
jrn.php  *	- return array
jrn.php  *
jrn.php  */ 
************************* File = poste.php ****************
poste.php /* function GetPosteLibelle
poste.php  * Purpose : Return the label of a poste
poste.php  * 
poste.php  * parm : 
poste.php  *	- p_dossier
poste.php  *      - p_id tmp_pcmn (pcm_val)
poste.php  *      - is_cn conneciton
poste.php  * gen :
poste.php  *	- none
poste.php  * return:
poste.php  *	- string 
poste.php  *
poste.php  */ 
poste.php /* function GetNumberLine
poste.php  * Purpose : Max of ligne definie dans le journal
poste.php  * 
poste.php  * parm : 
poste.php  *	- p_dossier
poste.php  *      - p_jrn
poste.php  * gen :
poste.php  *	- none
poste.php  * return:
poste.php  *	- 
poste.php  *
poste.php  */ 
poste.php /* function PosteForm
poste.php  * Purpose : Cree un form pour prendre les postes
poste.php  * 
poste.php  * parm : 
poste.php  *	-  connection
poste.php  * gen :
poste.php  *	- noen
poste.php  * return:
poste.php  *	- morceau de code d'html qui contient un multiselect
poste.php  *        pour les postes
poste.php  *
poste.php  */ 
poste.php /* function GetSolde
poste.php  * Purpose : give the balance of an account
poste.php  * 
poste.php  * parm : 
poste.php  *	-  connection
poste.php  *      - account
poste.php  *      - cond
poste.php  * gen :
poste.php  *	- none
poste.php  * return:
poste.php  *      - balance of the account
poste.php  *
poste.php  */ 
************************* File = postgres.php ****************
postgres.php /* function DbConnect
postgres.php  * purpose : connect to the database
postgres.php  * parameter : p_db : db_name
postgres.php  * return the connection
postgres.php  * todo : replace hardcoded by variable placed in
postgres.php  *        constant.php
postgres.php  */
postgres.php /* function ExecSql
postgres.php  * purpose : send a sql string to the database
postgres.php  * parameter p_connection db connection 
postgres.php  *           p_string     sql string
postgres.php  * return false if error otherwise true
postgres.php  */
postgres.php /* function GetAllUser
postgres.php  * Return all the users
postgres.php  * as an array
postgres.php  */
postgres.php /* function GetUid
postgres.php  * Check if the User is valid
postgres.php  * and return an array with his property
postgres.php  */
postgres.php /* function GetPriv
postgres.php  * Get the privilege of an user on a folder
postgres.php  */
postgres.php /* function ExisteJnt
postgres.php  * Get the number of rows
postgres.php  * from table jnt_use_dos where $p_dossier = dos_id and 
postgres.php  * use_id=$p_user
postgres.php  */
postgres.php /* function GetDossierName
postgres.php  * Param: id of a dossier
postgres.php  * return : Name of the dossier
postgres.php  */
postgres.php /* function GetSequence
postgres.php  * get the current sequence
postgres.php  */
postgres.php /* function NextSequence
postgres.php  * get the current sequence
postgres.php  */
postgres.php /* function SyncRight
postgres.php  * Purpose : Synchronize les droits par défaut
postgres.php  *           avec  les journaux existants
postgres.php  * parm : 
postgres.php  *	- 
postgres.php  * gen :
postgres.php  *	-
postgres.php  * return:
postgres.php  *	-
postgres.php  *
postgres.php  */ 
postgres.php /* function GetUserProperty
postgres.php  * Purpose : Get the properties of an user
postgres.php  *           it means theme, profile, admin...
postgres.php  *        
postgres.php  * parm : 
postgres.php  *	- $p_user    user login
postgres.php  *      - $p_cn      connection resource
postgres.php  *      -
postgres.php  * gen :
postgres.php  *	-
postgres.php  * return: an array
postgres.php  *         containing use_admin
postgres.php  *                    use_usertype
postgres.php  *                    g_theme
postgres.php  *                    use_name
postgres.php  *                    use_login
postgres.php  */
postgres.php /* function GetModeleId
postgres.php  * Purpose :  Give the mod_id from modeledef
postgres.php  *        
postgres.php  * parm : 
postgres.php  *	- p_cn database connection (repository)
postgres.php  *      - p_modname template name
postgres.php  * gen :
postgres.php  *	- none
postgres.php  * return:
postgres.php  *        template id or 0 if not found
postgres.php  */
postgres.php /* function GetArray
postgres.php  * purpose return the result of a sql statment 
postgres.php  * in a array
postgres.php  * param : $p_cn database connection
postgres.php  *         $p_sql sql query
postgres.php  */
postgres.php /* function save_upload_document
postgres.php  * Save a picture of a rest_id
postgres.php  * parameters 
postgres.php  * - $cn database connection
postgres.php  * - $file array (from $_FILES)
postgres.php  * - $name ( name of the input)
postgres.php  */
************************* File = preference.php ****************
preference.php /* function FormPeriodeMult
preference.php  * Purpose :
preference.php  *         Generate the form for the periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- string containing html code for the
preference.php  *        form
preference.php  *
preference.php  */ 
preference.php /* function FormPeriode
preference.php  * Purpose :
preference.php  *         Generate the form for the periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connexion
preference.php  *      - $p_default default periode
preference.php  *      - $p_type the type of the periode
preference.php  *      - $p_suff the suffix of the name 
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- string containing html code for the
preference.php  *        form
preference.php  *
preference.php  */ 
preference.php /* function GetPeriode
preference.php  * Purpose :Give the start & end date of a periode
preference.php  * 
preference.php  * parm : 
preference.php  *	- connection
preference.php  *      - p_periode
preference.php  * gen :
preference.php  *	- none
preference.php  * return:
preference.php  *	- array containing the start date & the end date
preference.php  *
preference.php  */ 
preference.php /* function  PeriodeClosed($p_cn,$p_periode) 
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	- true if closed
preference.php  *
preference.php  */ 
preference.php /* function GetExercice
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- $p_cn connection
preference.php  *      - $p_periode periode
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	- Exercice of the periode
preference.php  *
preference.php  */ 
preference.php /* function ShowDevise
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	-
preference.php  *
preference.php  */ 
preference.php /* function ShowPeriode
preference.php  * Purpose :
preference.php  * 
preference.php  * parm : 
preference.php  *	- 
preference.php  * gen :
preference.php  *	-
preference.php  * return:
preference.php  *	-
preference.php  *
preference.php  */ 
************************* File = stock_inc.php ****************
stock_inc.php /* function ViewStock ($p_cn)
stock_inc.php  **************************************************
stock_inc.php  * Purpose : show the listing of all goods 
stock_inc.php  *        
stock_inc.php  * parm : 
stock_inc.php  *	- database connection
stock_inc.php  * gen :
stock_inc.php  *	-
stock_inc.php  * return: string containing the table
stock_inc.php  */
stock_inc.php /* function  getFicheNameCode ($p_cn,$p_sg_code)
stock_inc.php  ************************************************************
stock_inc.php  * Purpose : return an array of f_id and f_name
stock_inc.php  *        
stock_inc.php  * parm : 
stock_inc.php  *	- p_cn database connection
stock_inc.php  *      - stock_goods.sg_code
stock_inc.php  * gen :
stock_inc.php  *	- none
stock_inc.php  * return:
stock_inc.php  *      - array (f_id, f_label) or null if nothing is found 
stock_inc.php  */
stock_inc.php /* function ViewDetailStock($cn,$sg_code,$year)
stock_inc.php  **************************************************
stock_inc.php  * Purpose : 
stock_inc.php  *        
stock_inc.php  * parm : 
stock_inc.php  *	- cn database connection
stock_inc.php  *      - sg_code
stock_inc.php  *      - year
stock_inc.php  * gen :
stock_inc.php  *	-
stock_inc.php  * return: HTML code
stock_inc.php  */
stock_inc.php /* function ChangeStock($cn,$sg_code,$sg_date)
stock_inc.php  **************************************************
stock_inc.php  * Purpose : 
stock_inc.php  *        
stock_inc.php  * parm : 
stock_inc.php  *	-
stock_inc.php  * gen :
stock_inc.php  *	-
stock_inc.php  * return:
stock_inc.php  */
stock_inc.php /* function GetQuantity($p_cn,$p_sg_code,$year,$p_type 'd' or 'c'
stock_inc.php  * purpose return the quantity of a sg_code for the period 
stock_inc.php  *
stock_inc.php  * Return number or NULL
stock_inc.php  */ 
************************* File = user_action_ach.php ****************
************************* File = user_action_fin.php ****************
************************* File = user_action_gl.php ****************
************************* File = user_action_ods.php ****************
************************* File = user_action_ven.php ****************
************************* File = user_common.php ****************
user_common.php /* function GetTvaRate
user_common.php  **************************************************
user_common.php  * Purpose : Return the rate of the p_tva_id
user_common.php  *        
user_common.php  * parm : 
user_common.php  * -  p_cn database connection
user_common.php  *	- p_tva_id tva.tva_id
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *       an array containing the rate and the label
user_common.php  *       the tva rate or null if a problem occured
user_common.php  */
user_common.php /* function ComputeVat($p_cn,$a_fiche,$a_quant,$a_price,$ap_vat)
user_common.php  **************************************************
user_common.php  * Purpose : Compute the vat,
user_common.php  *           the fiche.f_id are in a_fiche
user_common.php  *           the quantity in a_quant
user_common.php  *           
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- database connection
user_common.php  *      - fiche id array
user_common.php  *      1- quantity array 
user_common.php  *      - price array 
user_common.php  *      - $ap_vat Array of tva id
user_common.php  * gen :
user_common.php  *	-
user_common.php  * return: array
user_common.php  *       a[tva_id] =  amount vat
user_common.php  */
user_common.php /* function GetTvaPoste($p_cn,$tva_id,$p_type);
user_common.php  **************************************************
user_common.php  * Purpose : Get the account of tva_rate.tva_poste
user_common.php  *        return the credit or the debit account
user_common.php  * parm : connection
user_common.php  *	-     tva_rate.tva_id
user_common.php  *        type ( d or credit)
user_common.php  * gen :
user_common.php  *	-
user_common.php  * return:
user_common.php  *        return the credit or the debit account
user_common.php  *        null if error
user_common.php  */
user_common.php /* function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode
user_common.php  **************************************************
user_common.php  * Purpose : Insert into the table Jrn
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_cn database connection
user_common.php  *  - $p_type debit or credit
user_common.php  *  - $p_user the current user
user_common.php  *  - $p_jrn the current 'journal' (folder)
user_common.php  *  - $p_poste the account
user_common.php  *  - $p_date
user_common.php  *  - $p_amount amount to insert
user_common.php  *  - $p_periode the concerned periode
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *   - nothing
user_common.php  */
user_common.php /* function InsertJrn($p_cn,$p_date,$p_jrn,$p_comment,$p_amount,$p_grpt,$p_periode
user_common.php  **************************************************
user_common.php  * Purpose : Insert into the table Jrnx
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_cn database connection
user_common.php  *  - $p_date date
user_common.php  *  - $p_jrn the current 'journal' (folder)
user_common.php  *  - $p_poste the account
user_common.php  *  - $p_amount amount to insert
user_common.php  *  - $p_periode the concerned periode
user_common.php  *  - $p_comment comment
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *   - nothing
user_common.php  */
user_common.php /* function ListJrn($p_cn,$p_jrn,$p_wherel)
user_common.php  **************************************************
user_common.php  * Purpose : show all the lines of the asked jrn
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_cn database connection
user_common.php  *      - $p_jrn jrn_id jrn.jrn_def_id
user_common.php  *      - $p_sql the sql query (where clause)
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  * 
user_common.php  */
user_common.php /* function InsertStockGoods($p_cn,$j_id,$a_good[$i],$a_quant[$i],'c');
user_common.php  **************************************************
user_common.php  * Purpose : Insert data into stock_goods,
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_cn database connection
user_common.php  *      - $p_j_id the j_id
user_common.php  *      - $p_goods the goods
user_common.php  *      - $p_quant  quantity
user_common.php  *      - $p_type c for credit or d for debit
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *       none
user_common.php  */
user_common.php /* function withStock($p_cn,$p_f_id)
user_common.php  **************************************************
user_common.php  * Purpose : return true if we manage stock for it
user_common.php  *          value is stored in attr_value
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_cn database connection
user_common.php  *      - $p_f_id fiche.f_id
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *       none
user_common.php  */
user_common.php /* function  VerifyOperationDate ($p_cn,$p_user,$p_date) 
user_common.php  **************************************************
user_common.php  * Purpose : Verify if 
user_common.php  *    the date is a valid date
user_common.php  *    the date is in the default period
user_common.php  *    the period is not closed
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- db connection
user_common.php  *      - user
user_common.php  *      - date
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *     - null if error or date if ok
user_common.php  */
user_common.php /* function InsertRapt($p_cn,$jr_id,$jr_id2)
user_common.php  **************************************************
user_common.php  * Purpose :  Insert into jrn_rapt the concerned operations
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- p_cn database connection
user_common.php  *      - jr_id (jrn.jr_id) => jrn_rapt.jr_id
user_common.php  *      - jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *      - none
user_common.php  */
user_common.php /* function DeleteRapt($p_cn,$jr_id,$jr_id2)
user_common.php  **************************************************
user_common.php  * Purpose :  Insert into jrn_rapt the concerned operations
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- p_cn database connection
user_common.php  *      - jr_id (jrn.jr_id) => jrn_rapt.jr_id
user_common.php  *      - jr_id2 (jrn.jr_id) => jrn_rapt.jra_concerned
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *      - none
user_common.php  */
user_common.php /* function GetConcerned (p_cn ,jr_id)
user_common.php  **************************************************
user_common.php  * Purpose :  Return an array of the concerned operation
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- database connection
user_common.php  *      - jrn.jr_id
user_common.php  * gen : 
user_common.php  *	- none
user_common.php  * return:
user_common.php  *      - array if something is found
user_common.php  */
user_common.php /* function GetGrpt($p_cn,$p_jr_id)
user_common.php  **************************************************
user_common.php  * Purpose :  Return the jr_grpt_id from jrn where
user_common.php  *            jr_id = $p_jr_id
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- $p_jr_id jrn.jr_id
user_common.php  *      - $p_cn database connection
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *      - return the jrn.jr_grpt_id or null 
user_common.php  */
user_common.php /* function UpdateComment ($p_cn,$p_jr_id,$p_comment)
user_common.php  **************************************************
user_common.php  * Purpose : Update comment in jrn 
user_common.php  *         
user_common.php  * parm : 
user_common.php  *	- database conn.
user_common.php  *              -  jrn.jr_id
user_common.php  *              - comment
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *              - none
user_common.php  */
user_common.php /* function isValid ($p_cn, $p_grpt_id
user_common.php  **************************************************
user_common.php  * Purpose :  test if a jrn op is valid
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- db connection 
user_common.php  *      - p_grpt_id
user_common.php  * gen :
user_common.php  *	- none
user_common.php  * return:
user_common.php  *        1 is valid
user_common.php  *        0 is not valid
user_common.php  */
user_common.php /* function  jrn_navigation_bar
user_common.php  **************************************************
user_common.php  * Purpose : 
user_common.php  *     Create a navigation_bar (pagesize)
user_common.php  *        
user_common.php  * parm : 
user_common.php  *	- p_current first record number
user_common.php  *      - p_line total of returned row
user_common.php  *      - p_size current g_pagesize
user_common.php  *      - p_page number of the page
user_common.php  * gen :
user_common.php  *	-none
user_common.php  * return:
user_common.php  *     string
user_common.php  */
************************* File = user_form_ach.php ****************
user_form_ach.php /* function FormAchInput
user_form_ach.php  * Purpose : Display the form for a sell
user_form_ach.php  *           Used to show detail, encode a new invoice 
user_form_ach.php  *           or update one
user_form_ach.php  *        
user_form_ach.php  * parm : 
user_form_ach.php  *	- $p_array which can be empty (normally = $_POST)
user_form_ach.php  *      - $p_jrn the ledger
user_form_ach.php  *      - $p_periode = periode
user_form_ach.php  *      - $pview_only if we cannot change it (no right or centralized op)
user_form_ach.php  *      - $p_article number of article
user_form_ach.php  * gen :
user_form_ach.php  *	-
user_form_ach.php  * return: string with the form
user_form_ach.php  */
user_form_ach.php /* function form_verify_input
user_form_ach.php  **************************************************
user_form_ach.php  * Purpose : verify if the data to insert are valid
user_form_ach.php  *        
user_form_ach.php  * parm : 
user_form_ach.php  *	- p_cn database connection
user_form_ach.php  *      - p_jrn concerned ledger
user_form_ach.php  *      - User periode
user_form_ach.php  *      - array with the post data
user_form_ach.php  *      - p_number number of items
user_form_ach.php  * gen :
user_form_ach.php  *	-
user_form_ach.php  * return:
user_form_ach.php  */
user_form_ach.php /* function FormAchView ($p_cn,$p_jrn,$p_periode,$p_array,$p_number,$p_doc='html',$p_comment='') 
user_form_ach.php  **************************************************
user_form_ach.php  * Purpose : Show the invoice before inserting it 
user_form_ach.php  *           the database
user_form_ach.php  *        
user_form_ach.php  * parm : 
user_form_ach.php  *	- p_cn database connection
user_form_ach.php  *      - p_jrn journal
user_form_ach.php  *      - p_periode
user_form_ach.php  *      - array of value
user_form_ach.php  *      - nb of item
user_form_ach.php  *      - p_doc type pdf or html
user_form_ach.php  * gen :
user_form_ach.php  *	- none
user_form_ach.php  * return:
user_form_ach.php  *     - string
user_form_ach.php  * 
user_form_ach.php  */
user_form_ach.php /* function RecordSell
user_form_ach.php  **************************************************
user_form_ach.php  * Purpose : Record an invoice in the table jrn &
user_form_ach.php  *           jrnx
user_form_ach.php  *        
user_form_ach.php  * parm : 
user_form_ach.php  *	- $p_cn Database connection
user_form_ach.php  *  - $p_array contains all the invoice data
user_form_ach.php  * e_date => e : 01.01.2003
user_form_ach.php  * e_client => e : 3
user_form_ach.php  * nb_item => e : 3
user_form_ach.php  * e_march0 => e : 6
user_form_ach.php  * e_quant0 => e : 0
user_form_ach.php  * e_march0_sell=>e:1
user_form_ach.php  * e_march1 => e : 6
user_form_ach.php  * e_quant1 => e : 2
user_form_ach.php  * e_march1_sell=>e:1
user_form_ach.php  * e_march2 => e : 7
user_form_ach.php  * e_quant2 => e : 3
user_form_ach.php  * e_march2_sell=>e:1
user_form_ach.php V : view_invoice => e : Voir cette facture
user_form_ach.php V : record_invoice => e : Sauver 
user_form_ach.php  *  - $p_periode periode
user_form_ach.php  *  - $p_jrn current folder (journal)
user_form_ach.php  * gen :
user_form_ach.php  *	- none
user_form_ach.php  * return:
user_form_ach.php  *	      true on success
user_form_ach.php  */
************************* File = user_form_fin.php ****************
user_form_fin.php /* function FormFin($p_cn,$p_jrn,$p_user,$p_array=null,$pview_only=true,$p_item=1) 
user_form_fin.php  * Purpose : Display the form for financial 
user_form_fin.php  *           Used to show detail, encode a new fin op 
user_form_fin.php  *           or update one
user_form_fin.php  *        
user_form_fin.php  * parm : 
user_form_fin.php  *	- p_array which can be empty
user_form_fin.php  *      - the "journal"
user_form_fin.php  *      - $p_user = $g_user
user_form_fin.php  *      - $p_submit contains the submit string
user_form_fin.php  *      - view_only if we cannot change it (no right or centralized op)
user_form_fin.php  *      - $p_item number of article
user_form_fin.php  * gen :
user_form_fin.php  *	-
user_form_fin.php  * return: string with the form
user_form_fin.php  */
user_form_fin.php /* function RecordFin
user_form_fin.php  **************************************************
user_form_fin.php  * Purpose : Record an invoice in the table jrn &
user_form_fin.php  *           jrnx
user_form_fin.php  *        
user_form_fin.php  * parm : 
user_form_fin.php  *	- $p_cn Database connection
user_form_fin.php  *  - $p_array contains all the invoice data
user_form_fin.php  * e_date => e : 01.01.2003
user_form_fin.php  * e_bank_account => e : 3
user_form_fin.php  *  - $p_user userid
user_form_fin.php  *  - $p_jrn current folder (journal)
user_form_fin.php  *  - array e_other$i, e_other$i_amount, e_other$i_label
user_form_fin.php  * gen : 
user_form_fin.php  *	- none
user_form_fin.php  * return:
user_form_fin.php  *	      true on success
user_form_fin.php  */
************************* File = user_form_ods.php ****************
user_form_ods.php /* function FormODS($p_cn,$p_jrn,$p_user,$p_array=null,$pview_only=true,$p_article=1)
user_form_ods.php  * Purpose : Display the miscellaneous operation
user_form_ods.php  *           Used to show detail, encode a new oper
user_form_ods.php  *           or update one
user_form_ods.php  *        
user_form_ods.php  * parm : 
user_form_ods.php  *	- p_array which can be empty
user_form_ods.php  *      - the "journal"
user_form_ods.php  *      - $p_user = $g_user
user_form_ods.php  *      - $p_submit contains the submit string
user_form_ods.php  *      - view_only if we cannot change it (no right or centralized op)
user_form_ods.php  *      - $p_article number of article
user_form_ods.php  * gen :
user_form_ods.php  *	-
user_form_ods.php  * return: string with the form
user_form_ods.php  */
user_form_ods.php /* function RecordODS
user_form_ods.php  **************************************************
user_form_ods.php  * Purpose : Record an buy in the table jrn &
user_form_ods.php  *           jrnx
user_form_ods.php  *
user_form_ods.php  * parm :
user_form_ods.php  *	- $p_cn Database connection
user_form_ods.php  *  - $p_array contains all the invoice data
user_form_ods.php  * e_date => e : 01.01.2003
user_form_ods.php  * nb_item => e : 3
user_form_ods.php  * e_account0 => e : 6
user_form_ods.php  * e_account0_amount=>e:1
user_form_ods.php  *  - $p_user userid
user_form_ods.php  *  - $p_jrn current folder (journal)
user_form_ods.php  * gen :
user_form_ods.php  *	- none
user_form_ods.php  * return:
user_form_ods.php  *	      true on success
user_form_ods.php  */
************************* File = user_form_ven.php ****************
user_form_ven.php /* function FormVenInput
user_form_ven.php  * Purpose : Display the form for a sell
user_form_ven.php  *           Used to show detail, encode a new invoice 
user_form_ven.php  *           or update one
user_form_ven.php  *        
user_form_ven.php  * parm : 
user_form_ven.php  *	- p_array which can be empty
user_form_ven.php  *      - the "journal"
user_form_ven.php  *      - $p_periode = periode
user_form_ven.php  *      - view_only if we cannot change it (no right or centralized op)
user_form_ven.php  *      - $p_article number of article
user_form_ven.php  * gen :
user_form_ven.php  *	-
user_form_ven.php  * return: string with the form
user_form_ven.php  * TODO Add in parameters the infos about the company for making the invoice
user_form_ven.php  */
user_form_ven.php /* function form_verify_input
user_form_ven.php  **************************************************
user_form_ven.php  * Purpose : verify if the data to insert are valid
user_form_ven.php  *        
user_form_ven.php  * parm : 
user_form_ven.php  *	- p_cn database connection
user_form_ven.php  *      - p_jrn concerned ledger
user_form_ven.php  *      - User periode
user_form_ven.php  *      - array with the post data
user_form_ven.php  *      - p_number number of items
user_form_ven.php  * gen :
user_form_ven.php  *	-
user_form_ven.php  * return:
user_form_ven.php  */
user_form_ven.php /* function FormVenteView ($p_cn,$p_jrn,$p_periode,$p_array,$p_number,$p_doc='html',$p_comment='') 
user_form_ven.php  **************************************************
user_form_ven.php  * Purpose : Show the invoice before inserting it 
user_form_ven.php  *           the database
user_form_ven.php  *        
user_form_ven.php  * parm : 
user_form_ven.php  *	- p_cn database connection
user_form_ven.php  *      - p_jrn journal
user_form_ven.php  *      - p_periode
user_form_ven.php  *      - array of value
user_form_ven.php  *      - nb of item
user_form_ven.php  *      - p_doc type pdf or html
user_form_ven.php  * gen :
user_form_ven.php  *	- none
user_form_ven.php  * return:
user_form_ven.php  *     - string
user_form_ven.php  * 
user_form_ven.php  */
user_form_ven.php /* function RecordInvoice
user_form_ven.php  **************************************************
user_form_ven.php  * Purpose : Record an invoice in the table jrn &
user_form_ven.php  *           jrnx
user_form_ven.php  *        
user_form_ven.php  * parm : 
user_form_ven.php  *	- $p_cn Database connection
user_form_ven.php  *  - $p_array contains all the invoice data
user_form_ven.php  * e_date => e : 01.01.2003
user_form_ven.php  * e_client => e : 3
user_form_ven.php  * nb_item => e : 3
user_form_ven.php  * e_march0 => e : 6
user_form_ven.php  * e_quant0 => e : 0
user_form_ven.php  * e_march0_sell=>e:1
user_form_ven.php  * e_march1 => e : 6
user_form_ven.php  * e_quant1 => e : 2
user_form_ven.php  * e_march1_sell=>e:1
user_form_ven.php  * e_march2 => e : 7
user_form_ven.php  * e_quant2 => e : 3
user_form_ven.php  * e_march2_sell=>e:1
user_form_ven.php V : view_invoice => e : Voir cette facture
user_form_ven.php V : record_invoice => e : Sauver 
user_form_ven.php  *  - $p_periode periode
user_form_ven.php  *  - $p_jrn current folder (journal)
user_form_ven.php  * gen :
user_form_ven.php  *	- none
user_form_ven.php  * return:
user_form_ven.php  *	      true on success
user_form_ven.php  */
************************* File = user_menu.php ****************
user_menu.php /* function u_ShowDossier
user_menu.php  * Purpose :  Show all the available folder 
user_menu.php  *            for the users
user_menu.php  * parm : 
user_menu.php  *	- $p_user user login
user_menu.php  *      - $p_admin 1 if admin
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- nothing
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function GetAvailableFolder
user_menu.php  * Purpose :  Get all the available folders
user_menu.php  *            for the users
user_menu.php  * parm : 
user_menu.php  *	- $p_user user login
user_menu.php  *      - $p_admin 1 if admin
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- array containing ac_dossier.dos_id
user_menu.php  *                         ac_dossier.dos_name
user_menu.php  *                         ac_dossier.dos_description
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenu
user_menu.php  * Purpose : Show The login menu
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_admin 1 if admin
user_menu.php  *      - $p_item item to add 
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- nothing
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function u_ShowMenuCompta 
user_menu.php  * purpose : show the top menu for 
user_menu.php  *           the user profile
user_menu.php  * parm : p_dossier
user_menu.php  *
user_menu.php  * return: none
user_menu.php  *
user_menu.php  * gen : none
user_menu.php  */
user_menu.php /* function ShowMenuComptaRight
user_menu.php  * Purpose : Display menu on the Right
user_menu.php  *           (preference, logout and admin)
user_menu.php  * parm : 
user_menu.php  *	- $p_dossier the current dossier
user_menu.php  *      - $p_admin   $g_UserProperty['use_admin'] 1 if admin
user_menu.php  *      - $p_more code
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- string containing the html menu
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function ShowMenuJrnUser($p_dossier,$p_user)
user_menu.php  * Purpose : Show the Menu from the jrn encode
user_menu.php  *           page
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_dossier
user_menu.php  *      - $p_user
user_menu.php  *      - $p_type type of journal (VEN,ACH,BQE,ODS)
user_menu.php  *      - $p_jrn journal
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function ShowMenuJrn
user_menu.php  * Purpose : Show the menu of the jrn depending of its type
user_menu.php  *        
user_menu.php  * parm : 
user_menu.php  *      - p_cn database connection
user_menu.php  *	- p_dossier
user_menu.php  *      - p_UserProperty
user_menu.php  *      - p_jrn_type
user_menu.php  *      - p_jrn
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *     - string containing the menu
user_menu.php  */
user_menu.php /* function get_quick_key
user_menu.php  * Purpose : Show the menu of the jrn depending of its type
user_menu.php  *  return a not yet used access key. The returned key is added to $access_key_list       
user_menu.php  * parm : 
user_menu.php  *      - $title
user_menu.php  *	- &$access_key_list
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *     - string containing the menu
user_menu.php  */
user_menu.php /* function u_ShowMenuRecherche ($p_cn,$p_jrn,$p_sessid,$p_array=null)
user_menu.php  * Purpose :
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_cn database connection
user_menu.php  *      - $p_jrn jrn id
user_menu.php  *      - $p_array=null previous search
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function function ShowMenuAdvanced() {
user_menu.php  **************************************************
user_menu.php  * Purpose :  build the menu of user_advanced.php
user_menu.php  *        
user_menu.php  * parm : 
user_menu.php  *	- none
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return: the menu
user_menu.php  */
user_menu.php /* function ShowJrn
user_menu.php  **************************************************
user_menu.php  * Purpose : Return a string containing the menu
user_menu.php  *           main menu when you click on Journaux
user_menu.php  * parm : 
user_menu.php  *	- $p_menu the current menu (selected)
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return: a string
user_menu.php  */
user_menu.php /* function ShowMenuFiche
user_menu.php  **************************************************
user_menu.php  * Purpose : 
user_menu.php  *        
user_menu.php  * parm : 
user_menu.php  *	-
user_menu.php  * gen :
user_menu.php  *	-
user_menu.php  * return:
user_menu.php  */
user_menu.php /* function ShowMenuAdminGlobalRight($p_dossier=0)
user_menu.php  * Purpose :
user_menu.php  *        Same as previous : show the right menu
user_menu.php  * parm : 
user_menu.php  *	- p_dossier
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function MenuAdmin */
user_menu.php /* function
user_menu.php  * Purpose :
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- 
user_menu.php  * gen :
user_menu.php  *	-
user_menu.php  * return:
user_menu.php  *	-
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function  MenuJrn($p_dossier)
user_menu.php  * Purpose : Show the menu in the jrn page
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_dossier 
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function ShowMenuPcmn($p_start=1)
user_menu.php  * Purpose : Show the menu from the pcmn page
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- $p_start class start
user_menu.php  * gen :
user_menu.php  *	- none
user_menu.php  * return:
user_menu.php  *	- none
user_menu.php  *
user_menu.php  */ 
user_menu.php /* function
user_menu.php  * Purpose :
user_menu.php  * 
user_menu.php  * parm : 
user_menu.php  *	- 
user_menu.php  * gen :
user_menu.php  *	-
user_menu.php  * return:
user_menu.php  *	-
user_menu.php  *
user_menu.php  */ 
************************* File = user_update.php ****************
