mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user