mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +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();
|
||||
|
||||
// Clean parameters
|
||||
if (empty($txtva)) $txtva=0;
|
||||
|
||||
if (empty($seller) || ! is_object($seller))
|
||||
{
|
||||
if (! is_object($mysoc)) // mysoc may be not defined (during migration process)
|
||||
|
||||
Reference in New Issue
Block a user