Documentation code

This commit is contained in:
sparkyx 2025-01-15 16:42:38 +01:00
parent d0b13dbd52
commit bb0a779e1f
2 changed files with 19 additions and 14 deletions

View file

@ -51,11 +51,11 @@ function errorFid(request,json)
/**
* this function fills the data from fid.php,
* @param {object or string} p_ctl : field of the input, : object or string
* possible object member
* - label field to update with the card's name
* - price field to update with the card's price
* - tvaid field to update with the card's tva_id
* - jrn field to force the ledger
possible object member
- label field to update with the card's name
- price field to update with the card's price
- tvaid field to update with the card's tva_id
- jrn field to force the ledger
*@see successFid errorFid fid.php
*/
function ajaxFid(p_ctl)
@ -130,8 +130,8 @@ function ajaxFid(p_ctl)
}
/**
callback function for ajax
* @param request : object request
* @param json : json answer
* @param request {object} object request
* @param json : {json} answer
@verbatim
{"answer":"ok",
"flabel":"none",
@ -183,7 +183,8 @@ function ajax_error_saldo(request,json)
{
alert_box('ERRSAL'+content[48]);
}
/*!\brief this function get the saldo
/**
* this function get the saldo
* \param p_ctl the ctrl where we take the quick_code
*/
function ajax_saldo(p_ctl)
@ -207,7 +208,7 @@ function ajax_saldo(p_ctl)
);
}
/*!\brief callback function for ajax
/** callback function for ajax
* \param request : object request
* \param json : json answer */
function ajax_success_saldo(request,json)
@ -226,7 +227,7 @@ function ajax_get_success(request,json)
id$(answer.ctl).show();
id$(answer.ctl).innerHTML=answer.html;
}
/*!\brief callback function for ajax_get when fails
/** callback function for ajax_get when fails
*/
function ajax_get_failure(request,json)
{
@ -234,14 +235,17 @@ function ajax_get_failure(request,json)
}
/**
* @class category_card
*/
var category_card={};
/**
* Add an attribute selected in "sel"+p_object_name into the list (id:p_object_name+"_list")
* this attribut will have the ID:p_object_name+"_elt"+ad_id (ad_id = attr_def.ad_id)
* @param int p_dossier dossier nb
* @param int p_fiche_def_ref is the frd_id
* @param string p_object_name , name of the prefix for id
* @param {int} p_dossier dossier nb
* @param {int} p_fiche_def_ref is the frd_id
* @param {string} p_object_name , name of the prefix for id
*/
category_card.add_attribut=function (p_dossier,p_fiche_def_ref,p_object_name) {
var select=id$("sel"+p_object_name);

View file

@ -24,6 +24,8 @@
* @brief only for mobile device
*/
if ( !defined ("ALLOWED") ) { define ('ALLOWED',true); }
require_once '../include/constant.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
MaintenanceMode("block.html");
@ -33,7 +35,6 @@ global $g_user;
$cn=new Database();
$g_user=new \Noalyss_User($cn);
$g_user->check();
if ( !defined ("ALLOWED") ) { define ('ALLOWED',true); }
//-----------------------------------------------------------------
/// if $_REQUEST['gDossier'] is not set then select the folder