[Bug #958] LocalTax2 for Spain fails on Suppliers
This commit is contained in:
parent
7f3a06127a
commit
065b30f0d0
@ -55,6 +55,7 @@ For users:
|
|||||||
- New: [ task #826 ] Optionnal increase stock when deleting an invoice already validated.
|
- New: [ task #826 ] Optionnal increase stock when deleting an invoice already validated.
|
||||||
- New: [ task #823 ] Shipping_validate email notification.
|
- New: [ task #823 ] Shipping_validate email notification.
|
||||||
- New: [ task #900 ] Review code of ficheinter.class.php
|
- New: [ task #900 ] Review code of ficheinter.class.php
|
||||||
|
- Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers
|
||||||
|
|
||||||
For translators:
|
For translators:
|
||||||
- Update language files.
|
- Update language files.
|
||||||
|
|||||||
@ -2812,7 +2812,18 @@ function get_localtax($tva, $local, $thirdparty_buyer="", $thirdparty_seller="")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($local == 2 && ! $thirdparty_buyer->localtax2_assuj) return 0;
|
if ($local == 2)
|
||||||
|
{
|
||||||
|
|
||||||
|
if ($thirdparty_seller->id==$mysoc->id)
|
||||||
|
{
|
||||||
|
if (! $thirdparty_buyer->localtax2_assuj) return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (! $thirdparty_seller->localtax2_assuj) return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user