TVA Code : problem when setting a code

This commit is contained in:
Dany De Bontridder 2019-11-18 18:58:26 +01:00
parent 963f3108ec
commit 61ff77bd8a
3 changed files with 3 additions and 3 deletions

View file

@ -1273,7 +1273,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
// vat label
//--
$Tva=new ITva_Popup($this->db);
$Tva->js="onblur=\"format_number(this);clean_tva($i);compute_ledger($i)\"";
$Tva->js="onblur=\"clean_tva($i);compute_ledger($i)\"";
$Tva->in_table=true;
$Tva->set_attribute('compute',$i);
$Tva->set_filter("purchase");

View file

@ -1316,7 +1316,7 @@ EOF;
$Tva->set_attribute('compute', $i);
$Tva->set_filter("sale");
$Tva->js = 'onblur="format_number(this);clean_tva(' . $i . ');compute_ledger(' . $i . ')"';
$Tva->js = 'onblur="clean_tva(' . $i . ');compute_ledger(' . $i . ')"';
$Tva->value = $march_tva_id;
$array[$i]['tva'] = $Tva->input("e_march$i" . "_tva_id");
// vat amount

View file

@ -76,7 +76,7 @@ class ITva_Popup extends HtmlInput
{
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
$this->js=(isset($this->js))?$this->js:'onchange="format_number(this);"';
$this->js=(isset($this->js))?$this->js:'';
$this->id=($this->id=="")?$this->name:$this->id;
if ( $this->readOnly==true) return $this->display();