diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 6f66c017c28..8fa3fb0a011 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -829,7 +829,10 @@ if ($_GET['propalid'] > 0)
}
print '';
print '
';
- print $html->select_tva("tva_tx",$objp->tva_tx,$mysoc,$societe);
+ if($societe->tva_assuj == "0")
+ print '0';
+ else
+ print $html->select_tva("tva_tx",$objp->tva_tx,$mysoc,$societe);
print ' | ';
print ' | ';
print ' | ';
@@ -890,7 +893,10 @@ if ($_GET['propalid'] > 0)
print '\n";
print ' | ';
print '';
- $html->select_tva('np_tva_tx', $conf->defaulttx, $mysoc, $societe);
+ if($societe->tva_assuj == "0")
+ print '0';
+ else
+ $html->select_tva('np_tva_tx', $conf->defaulttx, $mysoc, $societe);
print " | \n";
print ' | ';
print ' | ';
diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php
index 6b90e41b7b2..2e7e58bf200 100644
--- a/htdocs/propal.class.php
+++ b/htdocs/propal.class.php
@@ -154,10 +154,14 @@ class Propal
if ($prod->fetch($idproduct) > 0)
{
$p_product_desc = $prod->description;
+ $this -> fetch_client();
+ if($this->client->tva_assuj == "0")
+ $txtva ="0";
+ else
+ $txtva=$prod->tva_tx;
// multiprix
if($conf->global->PRODUIT_MULTIPRICES == 1)
{
- $this -> fetch_client();
$price = price2num($prod->multiprices[$this->client->price_level]);
$subprice = price2num($prod->multiprices[$this->client->price_level]);
}
@@ -166,7 +170,6 @@ class Propal
$price = price2num($prod->price);
$subprice = price2num($prod->price);
}
- $txtva = $prod->tva_tx;
/*
*/