Doxygen
This commit is contained in:
parent
a72be2810d
commit
e68b6de735
@ -18,11 +18,11 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/compta.php
|
||||
\ingroup tax
|
||||
\brief Page de configuration du module tax
|
||||
\version $Id$
|
||||
*/
|
||||
\file htdocs/admin/compta.php
|
||||
\ingroup tax
|
||||
\brief Page de configuration du module tax
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require('./pre.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
@ -31,7 +31,7 @@ $langs->load('admin');
|
||||
$langs->load('compta');
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
accessforbidden();
|
||||
|
||||
|
||||
llxHeader();
|
||||
@ -41,8 +41,10 @@ $compta_mode = defined('COMPTA_MODE')?COMPTA_MODE:'RECETTES-DEPENSES';
|
||||
|
||||
if ($_POST['action'] == 'setcomptamode')
|
||||
{
|
||||
$compta_mode = $_POST['compta_mode'];
|
||||
if (! dolibarr_set_const($db, 'COMPTA_MODE', $compta_mode)) { print $db->error(); }
|
||||
$compta_mode = $_POST['compta_mode'];
|
||||
if (! dolibarr_set_const($db, 'COMPTA_MODE', $compta_mode)) { print $db->error(); }
|
||||
// Note: This setup differs from TAX_MODE.
|
||||
// TAX_MODE is used with 0=normal, 1=option vat for services is on debit
|
||||
}
|
||||
|
||||
|
||||
@ -54,7 +56,7 @@ if ($_POST['action'] == 'update' || $_POST['action'] == 'add')
|
||||
{
|
||||
if (! dolibarr_set_const($db, $_POST['constname'], $_POST['constvalue'], $typeconst[$_POST['consttype']], 0, isset($_POST['constnote']) ? $_POST['constnote'] : ''));
|
||||
{
|
||||
print $db->error();
|
||||
print $db->error();
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,7 +65,7 @@ if ($_GET['action'] == 'delete')
|
||||
{
|
||||
if (! dolibarr_del_const($db, $_GET['constname']));
|
||||
{
|
||||
print $db->error();
|
||||
print $db->error();
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,13 +95,13 @@ print '<td colspan="2">'.nl2br($langs->trans('OptionModeTrueDesc'));
|
||||
// Write info on way to count VAT
|
||||
if ($conf->global->MAIN_MODULE_COMPTABILITE)
|
||||
{
|
||||
// print "<br>\n";
|
||||
// print nl2br($langs->trans('OptionModeTrueInfoModuleComptabilite'));
|
||||
// print "<br>\n";
|
||||
// print nl2br($langs->trans('OptionModeTrueInfoModuleComptabilite'));
|
||||
}
|
||||
else
|
||||
{
|
||||
// print "<br>\n";
|
||||
// print nl2br($langs->trans('OptionModeTrueInfoExpert'));
|
||||
// print "<br>\n";
|
||||
// print nl2br($langs->trans('OptionModeTrueInfoExpert'));
|
||||
}
|
||||
print "</td></tr>\n";
|
||||
print '<tr '.$bc[true].'><td width="200"><input type="radio" name="compta_mode" value="CREANCES-DETTES"'.($compta_mode == 'CREANCES-DETTES' ? ' checked' : '').'> '.$langs->trans('OptionModeVirtual').'</td>';
|
||||
@ -115,7 +117,7 @@ $sql ="SELECT rowid, name, value, type, note";
|
||||
$sql.=" FROM llx_const";
|
||||
$sql.=" WHERE name like 'COMPTA_%' and name not in ('COMPTA_MODE')";
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows($result);
|
||||
$i = 0;
|
||||
@ -140,12 +142,12 @@ if ($result)
|
||||
print '<input type="hidden" name="constname" value="'.$obj->name.'">';
|
||||
|
||||
print '<tr '.$bc[$var].' class="value">';
|
||||
|
||||
|
||||
// Param
|
||||
print '<td>'.stripslashes(nl2br($obj->note));
|
||||
print $obj->name;
|
||||
print "</td>\n";
|
||||
|
||||
|
||||
// Value
|
||||
print '<td>';
|
||||
if ($obj->type == 'yesno')
|
||||
@ -170,7 +172,7 @@ if ($result)
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
if ($num)
|
||||
{
|
||||
print "</table>\n";
|
||||
|
||||
@ -34,6 +34,9 @@ $langs->load('taxes');
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ if($min == 0 or $min!=floatval(strval($min))){
|
||||
}
|
||||
|
||||
// Define modetax (0 or 1)
|
||||
// 0=normal, 1=option vat for services is on debit
|
||||
$modetax = $conf->global->TAX_MODE;
|
||||
if ($_GET["modetax"]) $modetax=$_GET["modetax"];
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ if (empty($year))
|
||||
$q=(! empty($_GET["q"]))?$_GET["q"]:1;
|
||||
|
||||
// Define modetax (0 or 1)
|
||||
// 0=normal, 1=option vat for services is on debit
|
||||
$modetax = $conf->global->TAX_MODE;
|
||||
if ($_GET["modetax"]) $modetax=$_GET["modetax"];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user