Fix: No error whan vat is not defined.

This commit is contained in:
Laurent Destailleur 2010-05-12 00:12:49 +00:00
parent 2082e1650f
commit a0d677cd3d

View File

@ -808,6 +808,7 @@ class CommandeFournisseur extends Commande
$pu=$pu_ttc; $pu=$pu_ttc;
} }
$desc=trim($desc); $desc=trim($desc);
if (empty($txtva)) $txtva=0;
// Check parameters // Check parameters
if ($qty < 1 && ! $fk_product) if ($qty < 1 && ! $fk_product)