Merge pull request #3035 from marcosgdf/bug-2786

FIX #2786 Objectline_add template shows "0" for non-vat suppliers
This commit is contained in:
Laurent Destailleur 2015-06-14 02:15:27 +02:00
commit fdced80a48

View File

@ -184,7 +184,7 @@ else {
<td align="right"><?php
if (GETPOST('prod_entry_mode') != 'predef')
{
if ($seller->tva_assuj == "0") echo '<input type="hidden" name="tva_tx" value="0">0';
if ($seller->tva_assuj == "0") echo '<input type="hidden" name="tva_tx" value="0"> '.vatrate(0, true);
else echo $form->load_tva('tva_tx', (isset($_POST["tva_tx"])?$_POST["tva_tx"]:-1), $seller, $buyer);
}
?>