diff --git a/html/js/scripts.js b/html/js/scripts.js index abbd6285f..af874cb4f 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -1271,15 +1271,14 @@ function save_predf_op(obj) *amount_id is either a html obj. or an amount and the field tiers if given * @param {type} dossier * @param {type} ctl_concern - * @param {type} amount_id - * @param {type} ledger + * @param {float or string} amount_id Amount or DOM Id of the element containing the amount + * @param {float} ledger * @param {type} p_id_targetDom Element (div) where to display the search result * @param p_tiers id of the Tiers * @returns {undefined} */ function search_reconcile(dossier, ctl_concern, amount_id, ledger, p_id_target,p_tiers) { - var dossier = g('gDossier').value; if (amount_id === undefined) { amount_id = 0; @@ -1295,7 +1294,7 @@ function search_reconcile(dossier, ctl_concern, amount_id, ledger, p_id_target,p amount_id = $(amount_id).innerHTML; } } - var tiers="" + var tiers=""; if ( p_tiers ) tiers=p_tiers; var target = ""; if ( p_id_target !="") {