2
0
forked from Wavyzz/dolibarr

Update information on linked thirdparty

This commit is contained in:
Laurent Destailleur
2011-08-29 22:55:04 +00:00
parent d70f1e5e0b
commit ea4ce5b340
2 changed files with 3 additions and 2 deletions

View File

@@ -3194,6 +3194,7 @@ function get_default_npr($societe_vendeuse, $societe_acheteuse, $idprod)
/**
* Function that return localtax of a product line (according to seller, buyer and product vat rate)
*
* @param societe_vendeuse Objet societe vendeuse
* @param societe_acheteuse Objet societe acheteuse
* @param local Localtax to process (1 or 2)
@@ -3205,7 +3206,7 @@ function get_default_localtax($societe_vendeuse, $societe_acheteuse, $local, $id
if (!is_object($societe_vendeuse)) return -1;
if (!is_object($societe_acheteuse)) return -1;
if($societe_vendeuse->pays_id=='ES')
if ($societe_vendeuse->pays_id=='ES' || $societe_vendeuse->pays_code=='ES')
{
if ($local==1) //RE
{