If VAT intra is defined we use it to know vat amount to use
This commit is contained in:
parent
3fe86b3a38
commit
c43970f116
@ -2169,7 +2169,15 @@ class Form
|
||||
|
||||
if (is_object($societe_vendeuse))
|
||||
{
|
||||
$code_pays=$societe_vendeuse->pays_code;
|
||||
if ($societe_vendeuse->isInEEC() && (! empty($societe_vendeuse->tva_intra))
|
||||
&& preg_match('/^([A-Z][A-Z])/',$societe_vendeuse->tva_intra,$reg))
|
||||
{
|
||||
$code_pays=$reg[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
$code_pays=$societe_vendeuse->pays_code;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user