2464 lines
85 KiB
Text
2464 lines
85 KiB
Text
************************* File = admin_repo.php ****************
|
||
************************* File = annulation.php ****************
|
||
************************* File = a.php ****************
|
||
************************* File = bal_csv.php ****************
|
||
************************* File = b.php ****************
|
||
************************* File = central.php ****************
|
||
************************* File = class.ezpdf.php ****************
|
||
************************* File = class.pdf.php ****************
|
||
************************* File = c.php ****************
|
||
************************* File = dossier_prefs.php ****************
|
||
************************* File = d.php ****************
|
||
************************* File = enc_jrn.php ****************
|
||
************************* File = e.php ****************
|
||
************************* File = facturation.php ****************
|
||
************************* File = fiche_csv.php ****************
|
||
************************* File = fiche_new.php ****************
|
||
************************* File = fiche.php ****************
|
||
************************* File = fiche_search.php ****************
|
||
************************* File = form.php ****************
|
||
************************* File = html_balance.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 = 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 = rapprochement.php ****************
|
||
************************* File = readme.php ****************
|
||
************************* File = recherche.php ****************
|
||
************************* File = send_jrn_pdf.php ****************
|
||
************************* File = send_poste_pdf.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 = verif.php ****************
|
||
************************* File = 1.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<61>
|
||
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<61>
|
||
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 GetUserType
|
||
ac_common.php * Purpose : get the type of an user (compta,developper or user)
|
||
ac_common.php *
|
||
ac_common.php * parm :
|
||
ac_common.php * - param $p_user user_login
|
||
ac_common.php * gen :
|
||
ac_common.php * - none
|
||
ac_common.php * return: the type of the user
|
||
ac_common.php */
|
||
ac_common.php /* function Redirect
|
||
ac_common.php * Purpose : redirect following the user's profile
|
||
ac_common.php *
|
||
ac_common.php * parm :
|
||
ac_common.php * - p_profile (ac_users.use_usertype)
|
||
ac_common.php * - php_session PHPSESSID
|
||
ac_common.php * gen :
|
||
ac_common.php * - none
|
||
ac_common.php * return: none
|
||
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 */
|
||
************************* 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 <20>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_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 */
|
||
************************* File = class_jrn.php ****************
|
||
class_jrn.php /* function GetRow
|
||
class_jrn.php * Purpose : Get The data for the pdf printing
|
||
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_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 */
|
||
************************* File = class_user.php ****************
|
||
class_user.php /* function CheckAdmin
|
||
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 */
|
||
************************* File = class_widget.php ****************
|
||
************************* File = compta_menu.php ****************
|
||
compta_menu.php /* function c_ShowMenuComptaRight
|
||
compta_menu.php * Purpose : Display menu on the Right
|
||
compta_menu.php * (preference, logout and admin)
|
||
compta_menu.php * parm :
|
||
compta_menu.php * - $p_dossier the current dossier
|
||
compta_menu.php * - $p_admin $g_UserProperty['use_admin'] 1 if admin
|
||
compta_menu.php * - $p_more code
|
||
compta_menu.php * gen :
|
||
compta_menu.php * - none
|
||
compta_menu.php * return:
|
||
compta_menu.php * - none
|
||
compta_menu.php *
|
||
compta_menu.php */
|
||
compta_menu.php /* function ShowMenuCompta
|
||
compta_menu.php * Purpose : Montre le menu du haut
|
||
compta_menu.php *
|
||
compta_menu.php * parm :
|
||
compta_menu.php * - dossier
|
||
compta_menu.php * - $p_user array ($g_UserProperty)
|
||
compta_menu.php * gen :
|
||
compta_menu.php * - none
|
||
compta_menu.php * return:
|
||
compta_menu.php * - none
|
||
compta_menu.php *
|
||
compta_menu.php */
|
||
compta_menu.php /* function c_ShowMenuJrnUser($p_dossier,$p_user)
|
||
compta_menu.php * Purpose : Show the Menu from the jrn encode
|
||
compta_menu.php * page
|
||
compta_menu.php *
|
||
compta_menu.php * parm :
|
||
compta_menu.php * - $p_dossier
|
||
compta_menu.php * - $p_user
|
||
compta_menu.php * gen :
|
||
compta_menu.php * - none
|
||
compta_menu.php * return:
|
||
compta_menu.php * - none
|
||
compta_menu.php *
|
||
compta_menu.php */
|
||
************************* File = constant.php ****************
|
||
************************* File = debug.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 <20> 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 */
|
||
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<43>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<6F>le <20> 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 * <20>t<EFBFBD> utilis<69>
|
||
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 = fin.php ****************
|
||
fin.php /* function FormODS($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article=1)
|
||
fin.php * Purpose : Display the miscellaneous operation
|
||
fin.php * Used to show detail, encode a new oper
|
||
fin.php * or update one
|
||
fin.php *
|
||
fin.php * parm :
|
||
fin.php * - p_array which can be empty
|
||
fin.php * - the "journal"
|
||
fin.php * - $p_user = $g_user
|
||
fin.php * - $p_submit contains the submit string
|
||
fin.php * - view_only if we cannot change it (no right or centralized op)
|
||
fin.php * - $p_article number of article
|
||
fin.php * gen :
|
||
fin.php * -
|
||
fin.php * return: string with the form
|
||
fin.php */
|
||
fin.php /* function RecordAchat
|
||
fin.php **************************************************
|
||
fin.php * Purpose : Record an buy in the table jrn &
|
||
fin.php * jrnx
|
||
fin.php *
|
||
fin.php * parm :
|
||
fin.php * - $p_cn Database connection
|
||
fin.php * - $p_array contains all the invoice data
|
||
fin.php * e_date => e : 01.01.2003
|
||
fin.php * e_client => e : 3
|
||
fin.php * nb_item => e : 3
|
||
fin.php * e_march0 => e : 6
|
||
fin.php * e_quant0 => e : 0
|
||
fin.php * e_march0_sell=>e:1
|
||
fin.php * e_march1 => e : 6
|
||
fin.php * e_quant1 => e : 2
|
||
fin.php * e_march1_sell=>e:1
|
||
fin.php * e_march2 => e : 7
|
||
fin.php * e_quant2 => e : 3
|
||
fin.php * e_march2_sell=>e:1
|
||
fin.php V : view_invoice => e : Voir cette facture
|
||
fin.php V : record_invoice => e : Sauver
|
||
fin.php * - $p_user userid
|
||
fin.php * - $p_jrn current folder (journal)
|
||
fin.php * gen :
|
||
fin.php * - none
|
||
fin.php * return:
|
||
fin.php * true on success
|
||
fin.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 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 = form_input.php ****************
|
||
form_input.php /* function InputType
|
||
form_input.php * Purpose : Create the tag <INPUT TYPE=... Name=...>
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - Label question
|
||
form_input.php * - The type (text, select, text_big
|
||
form_input.php * - Name of the variable
|
||
form_input.php * - Default Value
|
||
form_input.php * - View_only
|
||
form_input.php * - $p_list for the select, give the possible values item[0] is the val and item[1]
|
||
form_input.php * is the label or for the js_search p_list is a string (cred
|
||
form_input.php * or deb or the fiche_def_type
|
||
form_input.php * gen :
|
||
form_input.php * - None
|
||
form_input.php * return: string
|
||
form_input.php */
|
||
form_input.php /* function FormVente
|
||
form_input.php * Purpose : Display the form for a sell
|
||
form_input.php * Used to show detail, encode a new invoice
|
||
form_input.php * or update one
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - p_array which can be empty
|
||
form_input.php * - the "journal"
|
||
form_input.php * - $p_user = $g_user
|
||
form_input.php * - view_only if we cannot change it (no right or centralized op)
|
||
form_input.php * - $p_article number of article
|
||
form_input.php * gen :
|
||
form_input.php * -
|
||
form_input.php * return: string with the form
|
||
form_input.php * TODO Add in parameters the infos about the company for making the invoice
|
||
form_input.php */
|
||
form_input.php /* function FormVenteView ($p_cn,$p_jrn,$p_user,$p_array,$p_number,$p_doc='html',$p_comment='')
|
||
form_input.php **************************************************
|
||
form_input.php * Purpose : Show the invoice before inserting it
|
||
form_input.php * the database
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - p_cn database connection
|
||
form_input.php * - p_jrn journal
|
||
form_input.php * - p_user
|
||
form_input.php * - array of value
|
||
form_input.php * - nb of item
|
||
form_input.php * - p_doc type pdf or html
|
||
form_input.php * gen :
|
||
form_input.php * - none
|
||
form_input.php * return:
|
||
form_input.php * - string
|
||
form_input.php *
|
||
form_input.php */
|
||
form_input.php /* function RecordInvoice
|
||
form_input.php **************************************************
|
||
form_input.php * Purpose : Record an invoice in the table jrn &
|
||
form_input.php * jrnx
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - $p_cn Database connection
|
||
form_input.php * - $p_array contains all the invoice data
|
||
form_input.php * e_date => e : 01.01.2003
|
||
form_input.php * e_client => e : 3
|
||
form_input.php * nb_item => e : 3
|
||
form_input.php * e_march0 => e : 6
|
||
form_input.php * e_quant0 => e : 0
|
||
form_input.php * e_march0_sell=>e:1
|
||
form_input.php * e_march1 => e : 6
|
||
form_input.php * e_quant1 => e : 2
|
||
form_input.php * e_march1_sell=>e:1
|
||
form_input.php * e_march2 => e : 7
|
||
form_input.php * e_quant2 => e : 3
|
||
form_input.php * e_march2_sell=>e:1
|
||
form_input.php V : view_invoice => e : Voir cette facture
|
||
form_input.php V : record_invoice => e : Sauver
|
||
form_input.php * - $p_user userid
|
||
form_input.php * - $p_jrn current folder (journal)
|
||
form_input.php * gen :
|
||
form_input.php * - none
|
||
form_input.php * return:
|
||
form_input.php * true on success
|
||
form_input.php */
|
||
form_input.php /* function FormAch($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article=1)
|
||
form_input.php * Purpose : Display the form for buying
|
||
form_input.php * Used to show detail, encode a new invoice
|
||
form_input.php * or update one
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - p_array which can be empty
|
||
form_input.php * - the "journal"
|
||
form_input.php * - $p_user = $g_user
|
||
form_input.php * - $p_submit contains the submit string
|
||
form_input.php * - view_only if we cannot change it (no right or centralized op)
|
||
form_input.php * - $p_article number of article
|
||
form_input.php * gen :
|
||
form_input.php * -
|
||
form_input.php * return: string with the form
|
||
form_input.php * TODO Add in parameters the infos about the company for making the invoice
|
||
form_input.php */
|
||
form_input.php /* function RecordAchat
|
||
form_input.php **************************************************
|
||
form_input.php * Purpose : Record an buy in the table jrn &
|
||
form_input.php * jrnx
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - $p_cn Database connection
|
||
form_input.php * - $p_array contains all the invoice data
|
||
form_input.php * e_date => e : 01.01.2003
|
||
form_input.php * e_client => e : 3
|
||
form_input.php * nb_item => e : 3
|
||
form_input.php * e_march0 => e : 6
|
||
form_input.php * e_quant0 => e : 0
|
||
form_input.php * e_march0_sell=>e:1
|
||
form_input.php * e_march1 => e : 6
|
||
form_input.php * e_quant1 => e : 2
|
||
form_input.php * e_march1_sell=>e:1
|
||
form_input.php * e_march2 => e : 7
|
||
form_input.php * e_quant2 => e : 3
|
||
form_input.php * e_march2_sell=>e:1
|
||
form_input.php V : view_invoice => e : Voir cette facture
|
||
form_input.php V : record_invoice => e : Sauver
|
||
form_input.php * - $p_user userid
|
||
form_input.php * - $p_jrn current folder (journal)
|
||
form_input.php * gen :
|
||
form_input.php * - none
|
||
form_input.php * return:
|
||
form_input.php * true on success
|
||
form_input.php */
|
||
form_input.php /* function FormFin($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_item=1)
|
||
form_input.php * Purpose : Display the form for financial
|
||
form_input.php * Used to show detail, encode a new fin op
|
||
form_input.php * or update one
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - p_array which can be empty
|
||
form_input.php * - the "journal"
|
||
form_input.php * - $p_user = $g_user
|
||
form_input.php * - $p_submit contains the submit string
|
||
form_input.php * - view_only if we cannot change it (no right or centralized op)
|
||
form_input.php * - $p_item number of article
|
||
form_input.php * gen :
|
||
form_input.php * -
|
||
form_input.php * return: string with the form
|
||
form_input.php */
|
||
form_input.php /* function RecordFin
|
||
form_input.php **************************************************
|
||
form_input.php * Purpose : Record an invoice in the table jrn &
|
||
form_input.php * jrnx
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - $p_cn Database connection
|
||
form_input.php * - $p_array contains all the invoice data
|
||
form_input.php * e_date => e : 01.01.2003
|
||
form_input.php * e_bank_account => e : 3
|
||
form_input.php * - $p_user userid
|
||
form_input.php * - $p_jrn current folder (journal)
|
||
form_input.php * - array e_other$i, e_other$i_amount, e_other$i_label
|
||
form_input.php * gen :
|
||
form_input.php * - none
|
||
form_input.php * return:
|
||
form_input.php * true on success
|
||
form_input.php */
|
||
form_input.php /* function FormODS($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article=1)
|
||
form_input.php * Purpose : Display the miscellaneous operation
|
||
form_input.php * Used to show detail, encode a new oper
|
||
form_input.php * or update one
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - p_array which can be empty
|
||
form_input.php * - the "journal"
|
||
form_input.php * - $p_user = $g_user
|
||
form_input.php * - $p_submit contains the submit string
|
||
form_input.php * - view_only if we cannot change it (no right or centralized op)
|
||
form_input.php * - $p_article number of article
|
||
form_input.php * gen :
|
||
form_input.php * -
|
||
form_input.php * return: string with the form
|
||
form_input.php */
|
||
form_input.php /* function RecordODS
|
||
form_input.php **************************************************
|
||
form_input.php * Purpose : Record an buy in the table jrn &
|
||
form_input.php * jrnx
|
||
form_input.php *
|
||
form_input.php * parm :
|
||
form_input.php * - $p_cn Database connection
|
||
form_input.php * - $p_array contains all the invoice data
|
||
form_input.php * e_date => e : 01.01.2003
|
||
form_input.php * nb_item => e : 3
|
||
form_input.php * e_account0 => e : 6
|
||
form_input.php * e_account0_amount=>e:1
|
||
form_input.php * - $p_user userid
|
||
form_input.php * - $p_jrn current folder (journal)
|
||
form_input.php * gen :
|
||
form_input.php * - none
|
||
form_input.php * return:
|
||
form_input.php * true on success
|
||
form_input.php */
|
||
************************* File = impress_fiche.php ****************
|
||
************************* File = impress_form.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 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 */
|
||
************************* File = impress_jrn.php ****************
|
||
************************* File = impress_poste.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 GetNextId($p_cn,$p_name)
|
||
jrn.php * Purpose :
|
||
jrn.php *
|
||
jrn.php * parm :
|
||
jrn.php * -
|
||
jrn.php * gen :
|
||
jrn.php * -
|
||
jrn.php * return:
|
||
jrn.php * -
|
||
jrn.php *
|
||
jrn.php */
|
||
jrn.php /* function GetNextJrnId($p_cn,$p_name)
|
||
jrn.php * Purpose :
|
||
jrn.php *
|
||
jrn.php * parm :
|
||
jrn.php * -
|
||
jrn.php * gen :
|
||
jrn.php * -
|
||
jrn.php * return:
|
||
jrn.php * -
|
||
jrn.php *
|
||
jrn.php */
|
||
jrn.php /* function ViewJrn
|
||
jrn.php * Purpose : Vue des <20>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<75>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<75>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 = ods.php ****************
|
||
ods.php /* function FormODS($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article=1)
|
||
ods.php * Purpose : Display the miscellaneous operation
|
||
ods.php * Used to show detail, encode a new oper
|
||
ods.php * or update one
|
||
ods.php *
|
||
ods.php * parm :
|
||
ods.php * - p_array which can be empty
|
||
ods.php * - the "journal"
|
||
ods.php * - $p_user = $g_user
|
||
ods.php * - $p_submit contains the submit string
|
||
ods.php * - view_only if we cannot change it (no right or centralized op)
|
||
ods.php * - $p_article number of article
|
||
ods.php * gen :
|
||
ods.php * -
|
||
ods.php * return: string with the form
|
||
ods.php */
|
||
ods.php /* function RecordAchat
|
||
ods.php **************************************************
|
||
ods.php * Purpose : Record an buy in the table jrn &
|
||
ods.php * jrnx
|
||
ods.php *
|
||
ods.php * parm :
|
||
ods.php * - $p_cn Database connection
|
||
ods.php * - $p_array contains all the invoice data
|
||
ods.php * e_date => e : 01.01.2003
|
||
ods.php * nb_item => e : 3
|
||
ods.php * e_account0 => e : 6
|
||
ods.php * e_account0_amount=>e:1
|
||
ods.php * - $p_user userid
|
||
ods.php * - $p_jrn current folder (journal)
|
||
ods.php * gen :
|
||
ods.php * - none
|
||
ods.php * return:
|
||
ods.php * true on success
|
||
ods.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 : 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 */
|
||
************************* 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 * use_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 */
|
||
************************* 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 SetUserPeriode
|
||
preference.php * Purpose : Set the selected periode in the user's preferences
|
||
preference.php *
|
||
preference.php * parm :
|
||
preference.php * - $p_cn connexion
|
||
preference.php * - $p_periode
|
||
preference.php * - $p_user
|
||
preference.php * gen :
|
||
preference.php * - none
|
||
preference.php * return:
|
||
preference.php * - none
|
||
preference.php *
|
||
preference.php */
|
||
preference.php /* function GetUserPeriode
|
||
preference.php * Purpose : Get the default periode from the user's preferences
|
||
preference.php *
|
||
preference.php * parm :
|
||
preference.php * - $p_cn connexion
|
||
preference.php * - $p_user
|
||
preference.php * gen :
|
||
preference.php * - none
|
||
preference.php * return:
|
||
preference.php * - the default periode
|
||
preference.php *
|
||
preference.php */
|
||
preference.php /* function SetUserPreferences
|
||
preference.php * Purpose : Get the default user's preferences
|
||
preference.php *
|
||
preference.php * parm :
|
||
preference.php * - $p_cn connexion
|
||
preference.php * - $p_user
|
||
preference.php * gen :
|
||
preference.php * - none
|
||
preference.php * return:
|
||
preference.php * - none
|
||
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 = top_menu_compta.php ****************
|
||
top_menu_compta.php /* function ShowMenu
|
||
top_menu_compta.php * Purpose : Show The login menu
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_admin 1 if admin
|
||
top_menu_compta.php * - $p_item item to add
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - nothing
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuCompta
|
||
top_menu_compta.php * Purpose : Montre le menu du haut
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - dossier
|
||
top_menu_compta.php * - $p_user array ($g_UserProperty)
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function
|
||
top_menu_compta.php * Purpose :
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuComptaRight
|
||
top_menu_compta.php * Purpose : Display menu on the Right
|
||
top_menu_compta.php * (preference, logout and admin)
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_dossier the current dossier
|
||
top_menu_compta.php * - $p_auser array $g_UserProperty
|
||
top_menu_compta.php * - $p_more code
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuAdminGlobalRight($p_dossier=0)
|
||
top_menu_compta.php * Purpose :
|
||
top_menu_compta.php * Same as previous : show the right menu
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - p_dossier
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuPcmn($p_start=1)
|
||
top_menu_compta.php * Purpose : Show the menu from the pcmn page
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_start class start
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuJrn($p_dossier)
|
||
top_menu_compta.php * Purpose : Show the menu in the jrn page
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_dossier
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuJrnUser($p_dossier,$p_user)
|
||
top_menu_compta.php * Purpose : Display and Show the Menu from the jrn encode
|
||
top_menu_compta.php * page following the use_usertype (compta,user,...)
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_dossier
|
||
top_menu_compta.php * - $p_auser
|
||
top_menu_compta.php * - $p_type (ACH, BQE, VEN)
|
||
top_menu_compta.php * - $p_jrn what journal
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuRecherche
|
||
top_menu_compta.php * Purpose :
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_dossier,
|
||
top_menu_compta.php * - $p_jrn jrn id
|
||
top_menu_compta.php * - $p_array=null previous search
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function
|
||
top_menu_compta.php * Purpose :
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * -
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
top_menu_compta.php /* function ShowMenuJrnUserImp(
|
||
top_menu_compta.php *
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * Purpose : Show the menu of jrn to print
|
||
top_menu_compta.php *
|
||
top_menu_compta.php * parm :
|
||
top_menu_compta.php * - $p_cn, connection
|
||
top_menu_compta.php * $p_user, user
|
||
top_menu_compta.php * $p_dossier dossier
|
||
top_menu_compta.php * gen :
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php * return:
|
||
top_menu_compta.php * - none
|
||
top_menu_compta.php *
|
||
top_menu_compta.php */
|
||
************************* File = top_menu.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 * - 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 VerifyDate ($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 */
|
||
************************* 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 u_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 u_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 */
|
||
************************* File = user_update.php ****************
|
||
************************* File = viewjrn.php ****************
|
||
viewjrn.php /* function ViewJrn
|
||
viewjrn.php * Purpose : Vue des <20>critures comptables
|
||
viewjrn.php *
|
||
viewjrn.php * parm :
|
||
viewjrn.php * - p_dossier,
|
||
viewjrn.php * - p_user,
|
||
viewjrn.php * - p_jrn
|
||
viewjrn.php * - array
|
||
viewjrn.php * gen :
|
||
viewjrn.php * -
|
||
viewjrn.php * return:
|
||
viewjrn.php * -
|
||
viewjrn.php *
|
||
viewjrn.php */
|