Works on enhancement of local taxes. fix : get_default_localtax
This commit is contained in:
parent
e38b1bfe28
commit
6ce69a7b18
@ -2599,8 +2599,8 @@ function get_product_localtax_for_country($idprod, $local, $countrycode)
|
|||||||
$product=new Product($db);
|
$product=new Product($db);
|
||||||
$product->fetch($idprod);
|
$product->fetch($idprod);
|
||||||
|
|
||||||
if ($local=='1') return $product->localtax1_tx;
|
if ($local==1) return $product->localtax1_tx;
|
||||||
elseif ($local=='2') return $product->localtax2_tx;
|
elseif ($local==2) return $product->localtax2_tx;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -2710,8 +2710,7 @@ function get_default_localtax($societe_vendeuse, $societe_acheteuse, $local, $id
|
|||||||
} else return -1;
|
} else return -1;
|
||||||
|
|
||||||
if ($idprod) return get_product_localtax_for_country($idprod, $local, $societe_vendeuse->pays_code);
|
if ($idprod) return get_product_localtax_for_country($idprod, $local, $societe_vendeuse->pays_code);
|
||||||
if (strlen($taux_produit) == 0) return -1;
|
else return -1;
|
||||||
return $taux_produit;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user