Fix: j'avais fait une correction pour régler un problème qui en a engendré un autre, je reviend en arrière
This commit is contained in:
parent
07a8ee6e28
commit
7d8fafe48d
@ -297,9 +297,8 @@ if ($_POST['action'] == 'addligne' && $user->rights->commande->creer)
|
|||||||
{
|
{
|
||||||
$desc = $prod->description;
|
$desc = $prod->description;
|
||||||
}
|
}
|
||||||
// \todo La valeur de la TVA a 0 devrait etre retournée par get_default_tva
|
|
||||||
$tva_tx = ($soc->tva_assuj=='0')?0:get_default_tva($mysoc,$soc,$prod->tva_tx);
|
$tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);
|
||||||
//$tva_tx = get_default_tva($mysoc,$soc,$prod->tva_tx);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -929,28 +929,28 @@ class Form
|
|||||||
$result2 = $this->db->query($sql) ;
|
$result2 = $this->db->query($sql) ;
|
||||||
$objp2 = $this->db->fetch_object($result2);
|
$objp2 = $this->db->fetch_object($result2);
|
||||||
if ($objp2->price)
|
if ($objp2->price)
|
||||||
|
{
|
||||||
$opt.= $objp2->price.' '.$langs->trans("Currency".$conf->monnaie);
|
$opt.= $objp2->price.' '.$langs->trans("Currency".$conf->monnaie);
|
||||||
else
|
|
||||||
$opt.= $objp->price.' '.$langs->trans("Currency".$conf->monnaie);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
$opt.= $objp->price.' '.$langs->trans("Currency".$conf->monnaie);
|
$opt.= $objp->price.' '.$langs->trans("Currency".$conf->monnaie);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$opt.= $objp->price.' '.$langs->trans("Currency".$conf->monnaie);
|
||||||
|
}
|
||||||
|
|
||||||
if ($objp->duration) $opt.= ' - '.$objp->duration;
|
if ($objp->duration) $opt.= ' - '.$objp->duration;
|
||||||
|
|
||||||
$opt.= "</option>\n";
|
$opt.= "</option>\n";
|
||||||
print $opt;
|
print $opt;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
if ($conf->use_ajax)
|
|
||||||
{
|
|
||||||
// if ($num)
|
|
||||||
// {
|
|
||||||
print '</select>';
|
print '</select>';
|
||||||
// }
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '</select>';
|
|
||||||
}
|
|
||||||
$this->db->free($result);
|
$this->db->free($result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -1920,7 +1920,7 @@ function get_default_tva($societe_vendeuse, $societe_acheteuse, $taux_produit)
|
|||||||
if (! is_numeric($societe_vendeuse->tva_assuj) && $societe_vendeuse->tva_assuj=='franchise') return 0;
|
if (! is_numeric($societe_vendeuse->tva_assuj) && $societe_vendeuse->tva_assuj=='franchise') return 0;
|
||||||
|
|
||||||
// Si le (pays vendeur = pays acheteur) alors la TVA par défaut=TVA du produit vendu. Fin de règle.
|
// Si le (pays vendeur = pays acheteur) alors la TVA par défaut=TVA du produit vendu. Fin de règle.
|
||||||
if (is_object($societe_acheteuse) && ($societe_vendeuse->pays_id == $societe_acheteuse->pays_id) && $societe_vendeuse->tva_assuj == 1)
|
if (is_object($societe_acheteuse) && ($societe_vendeuse->pays_id == $societe_acheteuse->pays_id) && $societe_acheteuse->tva_assuj == 1)
|
||||||
{
|
{
|
||||||
return $taux_produit;
|
return $taux_produit;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user