Fix: [ bug #991 ] Error when adding a product in POS when no Tax is

associated to the country of the company
This commit is contained in:
Laurent Destailleur
2013-08-01 18:01:25 +02:00
parent a43e7fd34e
commit 3730d874c9

View File

@@ -69,6 +69,9 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
$result=array(); $result=array();
// Clean parameters
if (empty($txtva)) $txtva=0;
if (empty($seller) || ! is_object($seller)) if (empty($seller) || ! is_object($seller))
{ {
if (! is_object($mysoc)) // mysoc may be not defined (during migration process) if (! is_object($mysoc)) // mysoc may be not defined (during migration process)