TVA Code : problem when setting a code
This commit is contained in:
parent
963f3108ec
commit
61ff77bd8a
3 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue