Task #986 - Mise à jour automatique du field Bénéficiaire lorsqu'un montant est lettré dans Import Banque & Trésorerie

Update fields supplier or customer with the person who makes the payment
+ new function select_depot for #1055
This commit is contained in:
Dany De Bontridder 2014-11-25 19:55:56 +01:00
parent c21889921f
commit cacd6f2e21
7 changed files with 67 additions and 12 deletions

View file

@ -36,6 +36,7 @@ class IConcerned extends HtmlInput
$this->amount_id=null;
$this->paid='';
$this->id=$p_id;
$this->tiers=""; // id of the field for the tiers to be updated
}
/*!\brief show the html input of the widget*/
public function input($p_name=null,$p_value=null)
@ -48,7 +49,8 @@ class IConcerned extends HtmlInput
$r=sprintf("
<INPUT TYPE=\"button\" class=\"smallbutton\" onClick=\"search_reconcile(".dossier::id().",'%s','%s','%s')\" value=\"?\">
<image onclick=\"search_reconcile(".dossier::id().",'%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\">
@ -56,6 +58,7 @@ class IConcerned extends HtmlInput
$this->name,
$this->amount_id,
$this->paid,
$this->tiers,
$this->name,
$this->id,
$this->value,