modif pour assuj tva ou non
This commit is contained in:
parent
da6eeba48f
commit
fb2b73ec5d
@ -809,16 +809,16 @@ class Form
|
||||
{
|
||||
global $langs;
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
$options = array("oui","non");
|
||||
foreach($options as $value)
|
||||
$options = array(0=>"non",1=>"oui");
|
||||
foreach($options as $id => $value)
|
||||
{
|
||||
if ($selected == $value)
|
||||
if ($selected == $id)
|
||||
{
|
||||
print '<option value="'.$value.'" selected="true">'.$value;
|
||||
print '<option value="'.$id.'" selected="true">'.$value;
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<option value="'.$value.'">'.$value;
|
||||
print '<option value="'.$id.'">'.$value;
|
||||
}
|
||||
print '</option>';
|
||||
}
|
||||
@ -1266,6 +1266,7 @@ class Form
|
||||
function form_assujetti_tva($page, $selected='', $htmlname='')
|
||||
{
|
||||
global $langs;
|
||||
$options = array(0=>"non",1=>"oui");
|
||||
if ($htmlname != "none")
|
||||
{
|
||||
print '<form method="post" action="'.$page.'">';
|
||||
@ -1281,7 +1282,7 @@ class Form
|
||||
{
|
||||
if ($selected)
|
||||
{
|
||||
print $selected;
|
||||
print $options[$selected];
|
||||
} else {
|
||||
print " ";
|
||||
}
|
||||
|
||||
@ -439,7 +439,7 @@ class Societe {
|
||||
$sql .= ', s.fk_effectif as effectif_id, e.libelle as effectif';
|
||||
$sql .= ', s.fk_forme_juridique as forme_juridique_code, fj.libelle as forme_juridique';
|
||||
$sql .= ', s.code_client, s.code_compta, s.code_fournisseur, s.parent';
|
||||
$sql .= ', s.fk_departement, s.fk_pays, s.fk_stcomm, s.remise_client, s.mode_reglement, s.cond_reglement';
|
||||
$sql .= ', s.fk_departement, s.fk_pays, s.fk_stcomm, s.remise_client, s.mode_reglement, s.cond_reglement, s.tva_assuj';
|
||||
$sql .= ', p.code as pays_code, p.libelle as pays';
|
||||
$sql .= ', d.code_departement as departement_code, d.nom as departement';
|
||||
$sql .= ', st.libelle as stcomm';
|
||||
@ -524,7 +524,7 @@ class Societe {
|
||||
$this->remise_client = $obj->remise_client;
|
||||
$this->mode_reglement = $obj->mode_reglement;
|
||||
$this->cond_reglement = $obj->cond_reglement;
|
||||
|
||||
$this->tva_assuj = $obj->tva_assuj;
|
||||
$this->client = $obj->client;
|
||||
$this->fournisseur = $obj->fournisseur;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user