0002402: TVA : préférence: visible dans détail Achat et Vente

This commit is contained in:
sparkyx 2024-12-29 16:45:29 +01:00
parent 4e5f7cf1b1
commit 60b29ad61f
3 changed files with 6 additions and 3 deletions

View file

@ -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);
}

View file

@ -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')
{

View file

@ -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"');