Fix: default vat
This commit is contained in:
parent
11ae661303
commit
eef1e17c61
@ -3755,7 +3755,7 @@ class Form
|
|||||||
if ($defaulttx < 0 || dol_strlen($defaulttx) == 0)
|
if ($defaulttx < 0 || dol_strlen($defaulttx) == 0)
|
||||||
{
|
{
|
||||||
if (empty($conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS)) $defaulttx = $this->cache_vatrates[$num-1]['txtva'];
|
if (empty($conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS)) $defaulttx = $this->cache_vatrates[$num-1]['txtva'];
|
||||||
else $defaulttx=$conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS;
|
else $defaulttx=($conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS == 'none' ? '' : $conf->global->MAIN_VAT_DEFAULT_IF_AUTODETECT_FAILS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disabled if seller is not subject to VAT
|
// Disabled if seller is not subject to VAT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user