From 0a3a188eac9ab6c62c16ce5fd83304e96bbfda04 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Sun, 7 Feb 2010 11:55:07 +0000 Subject: [PATCH] Works on enhancement of local taxes Fix: Functionality applied to third parties --- htdocs/soc.php | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 01cacb831b6..88ea56abf1c 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -597,23 +597,6 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; print $html->selectyesno('assujtva_value',1,1); // Assujeti par defaut en creation print ''; - - - // Local Taxes - if($obj->code='ES' && $conf->global->MAIN_FEATURES_LEVEL >= 1) - { - print ''.$langs->trans("LocalTax1IsUsedES").''; - print ''; - print $html->selectyesno('localtax1assuj_value',0,1); - print ''; - print ''.$langs->trans("LocalTax2IsUsedES").''; - print ''; - print $html->selectyesno('localtax2assuj_value',0,1); - print ''; - print ''; - } - - print ''.$langs->trans('VATIntra').''; print ''; $s =''; @@ -642,7 +625,21 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; print "\n"; } - + + // Local Taxes + if($obj->code='ES' && $conf->global->MAIN_FEATURES_LEVEL >= 1) + { + print ''.$langs->trans("LocalTax1IsUsedES").''; + print ''; + print $html->selectyesno('localtax1assuj_value',0,1); + print ''; + print ''.$langs->trans("LocalTax2IsUsedES").''; + print ''; + print $html->selectyesno('localtax2assuj_value',0,1); + print ''; + print ''; + } + if ($user->rights->societe->client->voir) { //Affecter un commercial