Documentation code
This commit is contained in:
parent
8b79c78883
commit
7db201d25f
2 changed files with 19 additions and 14 deletions
|
|
@ -51,11 +51,11 @@ function errorFid(request,json)
|
||||||
/**
|
/**
|
||||||
* this function fills the data from fid.php,
|
* this function fills the data from fid.php,
|
||||||
* @param {object or string} p_ctl : field of the input, : object or string
|
* @param {object or string} p_ctl : field of the input, : object or string
|
||||||
* possible object member
|
possible object member
|
||||||
* - label field to update with the card's name
|
- label field to update with the card's name
|
||||||
* - price field to update with the card's price
|
- price field to update with the card's price
|
||||||
* - tvaid field to update with the card's tva_id
|
- tvaid field to update with the card's tva_id
|
||||||
* - jrn field to force the ledger
|
- jrn field to force the ledger
|
||||||
*@see successFid errorFid fid.php
|
*@see successFid errorFid fid.php
|
||||||
*/
|
*/
|
||||||
function ajaxFid(p_ctl)
|
function ajaxFid(p_ctl)
|
||||||
|
|
@ -130,8 +130,8 @@ function ajaxFid(p_ctl)
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
callback function for ajax
|
callback function for ajax
|
||||||
* @param request : object request
|
* @param request {object} object request
|
||||||
* @param json : json answer
|
* @param json : {json} answer
|
||||||
@verbatim
|
@verbatim
|
||||||
{"answer":"ok",
|
{"answer":"ok",
|
||||||
"flabel":"none",
|
"flabel":"none",
|
||||||
|
|
@ -183,7 +183,8 @@ function ajax_error_saldo(request,json)
|
||||||
{
|
{
|
||||||
alert_box('ERRSAL'+content[48]);
|
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
|
* \param p_ctl the ctrl where we take the quick_code
|
||||||
*/
|
*/
|
||||||
function ajax_saldo(p_ctl)
|
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 request : object request
|
||||||
* \param json : json answer */
|
* \param json : json answer */
|
||||||
function ajax_success_saldo(request,json)
|
function ajax_success_saldo(request,json)
|
||||||
|
|
@ -226,7 +227,7 @@ function ajax_get_success(request,json)
|
||||||
id$(answer.ctl).show();
|
id$(answer.ctl).show();
|
||||||
id$(answer.ctl).innerHTML=answer.html;
|
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)
|
function ajax_get_failure(request,json)
|
||||||
{
|
{
|
||||||
|
|
@ -234,14 +235,17 @@ function ajax_get_failure(request,json)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class category_card
|
||||||
|
*/
|
||||||
var category_card={};
|
var category_card={};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add an attribute selected in "sel"+p_object_name into the list (id:p_object_name+"_list")
|
* 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)
|
* 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_dossier dossier nb
|
||||||
* @param int p_fiche_def_ref is the frd_id
|
* @param {int} p_fiche_def_ref is the frd_id
|
||||||
* @param string p_object_name , name of the prefix for 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) {
|
category_card.add_attribut=function (p_dossier,p_fiche_def_ref,p_object_name) {
|
||||||
var select=id$("sel"+p_object_name);
|
var select=id$("sel"+p_object_name);
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@
|
||||||
* @brief only for mobile device
|
* @brief only for mobile device
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ( !defined ("ALLOWED") ) { define ('ALLOWED',true); }
|
||||||
|
|
||||||
require_once '../include/constant.php';
|
require_once '../include/constant.php';
|
||||||
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
|
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
|
||||||
MaintenanceMode("block.html");
|
MaintenanceMode("block.html");
|
||||||
|
|
@ -33,7 +35,6 @@ global $g_user;
|
||||||
$cn=new Database();
|
$cn=new Database();
|
||||||
$g_user=new \Noalyss_User($cn);
|
$g_user=new \Noalyss_User($cn);
|
||||||
$g_user->check();
|
$g_user->check();
|
||||||
if ( !defined ("ALLOWED") ) { define ('ALLOWED',true); }
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
/// if $_REQUEST['gDossier'] is not set then select the folder
|
/// if $_REQUEST['gDossier'] is not set then select the folder
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue