Ajout lecture d'un fichier d'include pour TVA paramétrable.

This commit is contained in:
Rodolphe Quiedeville 2003-10-08 14:56:20 +00:00
parent a9264d2e44
commit 7aab52d342

View File

@ -56,16 +56,24 @@ class Form {
* *
* *
*/ */
Function select_tva($name='', $defaulttx = 19.6) Function select_tva($name='', $defaulttx = 0)
{ {
if (! strlen(trim($name))) if (! strlen(trim($name)))
{ {
$name = "tauxtva"; $name = "tauxtva";
} }
$txtva[0] = '19.6'; $file = DOL_DOCUMENT_ROOT . "/conf/tva.local.php";
$txtva[1] = '5.5'; if (is_readable($file))
$txtva[2] = '0'; {
include $file;
}
else
{
$txtva[0] = '19.6';
$txtva[1] = '5.5';
$txtva[2] = '0';
}
$taille = sizeof($txtva); $taille = sizeof($txtva);