Task #0001992: Prévision, calcul avec comptabilité analytique

This commit is contained in:
sparkyx 2021-05-24 12:39:50 +02:00
parent 2838cc2f08
commit 1a632a2d1c
37 changed files with 1675 additions and 1189 deletions

View file

@ -4059,3 +4059,33 @@ function download_document_form(p_form_id)
remove_waiting_box();
return false;
}
/**
* Search an account or an analytic account or a card, used in REPORT
* @param {json} p_obj ,
* property : - op for ajax_misc ,
* - gDossier,
* - target DOM element to update with the result
* - query for the search
* @returns {void}
*/
function search_account_card(p_obj)
{
p_obj['op']=p_obj['op']||"search_account_card";
var query=p_obj;
if (p_obj.tagName && p_obj.tagName=='FORM') {
query=p_obj.serialize(true);
}
waiting_box();
new Ajax.Request("ajax_misc.php",{method:"get",parameters:query,
onSuccess: function (req){
var pos=calcy(50);
var obj={id:"search_account_div",cssclass:"inner_box",style:"top:"+pos+"px",
html:req.responseText};
add_div(obj);
remove_waiting_box();
}
});
return false;
}