Fix search for reconcile

This commit is contained in:
Dany De Bontridder 2017-12-16 00:05:34 +01:00
parent f5c6fd7050
commit 9fd316ccd4
5 changed files with 52 additions and 32 deletions

View file

@ -37,6 +37,7 @@ class IConcerned extends HtmlInput
$this->paid='';
$this->id=$p_id;
$this->tiers=""; // id of the field for the tiers to be updated
$this->div=""; // Dom Element to show the search result
}
/*!\brief show the html input of the widget*/
public function input($p_name=null,$p_value=null)
@ -49,7 +50,7 @@ class IConcerned extends HtmlInput
$r=sprintf("
<image onclick=\"search_reconcile(".dossier::id().",'%s','%s','%s','%s')\" class=\"image_search\" src=\"image/magnifier13.png\" />
<image onclick=\"search_reconcile(".dossier::id().",'%s','%s','%s','%s','%s')\" class=\"image_search\" src=\"image/magnifier13.png\" />
<INPUT TYPE=\"text\" style=\"color:black;background:lightyellow;border:solid 1px grey;\" NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>
<INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"$('%s').value=''\" value=\"X\">
@ -58,6 +59,7 @@ class IConcerned extends HtmlInput
$this->name,
$this->amount_id,
$this->paid,
$this->div,
$this->tiers,
$this->name,
$this->id,