0002402: TVA : préférence: visible dans détail Achat et Vente
This commit is contained in:
parent
4e5f7cf1b1
commit
60b29ad61f
3 changed files with 6 additions and 3 deletions
|
|
@ -95,7 +95,7 @@ class Acc_Tva
|
|||
return $this->$idx;
|
||||
}
|
||||
|
||||
echo (__FILE__.":".__LINE__."AT97:Erreur attribut inexistant [$p_string]");
|
||||
throw new Exception("ACC98"."Attribut inexistant $p_string",EXC_INVALID);
|
||||
}
|
||||
public function set_parameter($p_string,$p_value)
|
||||
{
|
||||
|
|
@ -105,7 +105,7 @@ class Acc_Tva
|
|||
$this->$idx=$p_value;
|
||||
}
|
||||
else
|
||||
throw new Exception("Attribut inexistant $p_string");
|
||||
throw new Exception("ACC108"."Attribut inexistant $p_string",EXC_INVALID);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,6 +212,8 @@ global $div,$g_parameter,$cn,$access,$jr_id,$obj;
|
|||
$tva = new Acc_Tva($cn, $q['qp_vat_code']);
|
||||
$tva->load();
|
||||
$sym_tva = h($tva->get_parameter('label'));
|
||||
$x=($g_user->get_vat_code_preference()==1)?$tva->get_parameter('tva_code'):$tva->get_parameter('id');
|
||||
$sym_tva .= sprintf('[%s]',$x);
|
||||
}
|
||||
if ($owner->MY_UPDLAB == 'Y')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -226,7 +226,8 @@ $str_anc = "";
|
|||
$tva = new Acc_Tva($cn, $q['qs_vat_code']);
|
||||
$tva->load();
|
||||
$sym_tva = (h($tva->get_parameter('label')));
|
||||
// $sym_tva=$sym
|
||||
$x=($g_user->get_vat_code_preference()==1)?$tva->get_parameter('tva_code'):$tva->get_parameter('id');
|
||||
$sym_tva .= sprintf('[%s]',$x);
|
||||
}
|
||||
|
||||
$row .= td($sym_tva, 'style="text-align:center"');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue