Qual: Suppression de 2 champs non utilisés et obsolètes par le nouveau system des droits
This commit is contained in:
parent
e12aa55897
commit
e630cd96d3
@ -844,8 +844,6 @@ class User
|
|||||||
$sql .= ", email = '$this->email'";
|
$sql .= ", email = '$this->email'";
|
||||||
$sql .= ", admin = $this->admin";
|
$sql .= ", admin = $this->admin";
|
||||||
$sql .= ", webcal_login = '$this->webcal_login'";
|
$sql .= ", webcal_login = '$this->webcal_login'";
|
||||||
$sql .= ", module_comm = 1";
|
|
||||||
$sql .= ", module_compta = 1";
|
|
||||||
$sql .= ", code = '$this->code'";
|
$sql .= ", code = '$this->code'";
|
||||||
$sql .= ", note = '$this->note'";
|
$sql .= ", note = '$this->note'";
|
||||||
$sql .= " WHERE rowid = $this->id;";
|
$sql .= " WHERE rowid = $this->id;";
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/user/index.php
|
\file htdocs/user/index.php
|
||||||
\brief Page d'accueil de la gestion des utilisateurs
|
\brief Page d'accueil de la gestion des utilisateurs
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -44,7 +44,7 @@ if (! $sortfield) {
|
|||||||
|
|
||||||
print_titre($langs->trans("ListOfUsers"));
|
print_titre($langs->trans("ListOfUsers"));
|
||||||
|
|
||||||
$sql = "SELECT u.rowid, u.name, u.firstname, u.code, u.login, u.module_comm, u.module_compta";
|
$sql = "SELECT u.rowid, u.name, u.firstname, u.code, u.login";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
||||||
if ($sortfield) { $sql.=" ORDER BY $sortfield $sortorder"; }
|
if ($sortfield) { $sql.=" ORDER BY $sortfield $sortorder"; }
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,9 @@
|
|||||||
-- sans AUCUNE erreur ni warning
|
-- sans AUCUNE erreur ni warning
|
||||||
-- ;
|
-- ;
|
||||||
|
|
||||||
|
alter table llx_user drop column module_comm;
|
||||||
|
alter table llx_user drop column module_compta;
|
||||||
|
|
||||||
alter table llx_user_rights add rowid integer AUTO_INCREMENT PRIMARY KEY;
|
alter table llx_user_rights add rowid integer AUTO_INCREMENT PRIMARY KEY;
|
||||||
alter table llx_facture add fk_mode_reglement integer after fk_cond_reglement ;
|
alter table llx_facture add fk_mode_reglement integer after fk_cond_reglement ;
|
||||||
|
|
||||||
@ -246,30 +249,6 @@ create table llx_user_param
|
|||||||
UNIQUE (fk_user,page,param)
|
UNIQUE (fk_user,page,param)
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|
||||||
create table llx_cash_account
|
|
||||||
(
|
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
datec datetime,
|
|
||||||
tms timestamp,
|
|
||||||
label varchar(30),
|
|
||||||
courant smallint default 0 not null,
|
|
||||||
clos smallint default 0 not null,
|
|
||||||
account_number varchar(8)
|
|
||||||
)type=innodb;
|
|
||||||
|
|
||||||
create table llx_cash
|
|
||||||
(
|
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
datec datetime,
|
|
||||||
dateo date NOT NULL,
|
|
||||||
amount real NOT NULL default 0,
|
|
||||||
label varchar(255),
|
|
||||||
fk_account integer,
|
|
||||||
fk_user_author integer,
|
|
||||||
fk_type varchar(4),
|
|
||||||
note text
|
|
||||||
)type=innodb;
|
|
||||||
|
|
||||||
|
|
||||||
update llx_bank set datev=dateo where datev is null;
|
update llx_bank set datev=dateo where datev is null;
|
||||||
|
|
||||||
|
|||||||
@ -1,34 +0,0 @@
|
|||||||
-- ===================================================================
|
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
--
|
|
||||||
-- $Id$
|
|
||||||
-- $Source$
|
|
||||||
--
|
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
|
||||||
-- it under the terms of the GNU General Public License as published by
|
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
|
||||||
-- (at your option) any later version.
|
|
||||||
--
|
|
||||||
-- This program is distributed in the hope that it will be useful,
|
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-- GNU General Public License for more details.
|
|
||||||
--
|
|
||||||
-- You should have received a copy of the GNU General Public License
|
|
||||||
-- along with this program; if not, write to the Free Software
|
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
create table llx_cash
|
|
||||||
(
|
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
datec datetime,
|
|
||||||
dateo date NOT NULL, -- date operation
|
|
||||||
amount real NOT NULL default 0,
|
|
||||||
label varchar(255),
|
|
||||||
fk_account integer, -- Pour gerer plusieurs caisse
|
|
||||||
fk_user_author integer,
|
|
||||||
fk_type varchar(4), -- Liquide, retrait, depot
|
|
||||||
note text
|
|
||||||
)type=innodb;
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
-- =============================================================================
|
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
--
|
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
|
||||||
-- it under the terms of the GNU General Public License as published by
|
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
|
||||||
-- (at your option) any later version.
|
|
||||||
--
|
|
||||||
-- This program is distributed in the hope that it will be useful,
|
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-- GNU General Public License for more details.
|
|
||||||
--
|
|
||||||
-- You should have received a copy of the GNU General Public License
|
|
||||||
-- along with this program; if not, write to the Free Software
|
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
--
|
|
||||||
-- $Id$
|
|
||||||
-- $Source$
|
|
||||||
--
|
|
||||||
--
|
|
||||||
-- courant : indique si c'est un compte courant
|
|
||||||
-- clos : le compte est-il clos ou encore ouvert
|
|
||||||
--
|
|
||||||
-- =============================================================================
|
|
||||||
|
|
||||||
create table llx_cash_account
|
|
||||||
(
|
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
||||||
datec datetime,
|
|
||||||
tms timestamp,
|
|
||||||
label varchar(30),
|
|
||||||
courant smallint DEFAULT 0 NOT NULL,
|
|
||||||
clos smallint DEFAULT 0 NOT NULL,
|
|
||||||
account_number varchar(8)
|
|
||||||
)type=innodb;
|
|
||||||
Loading…
Reference in New Issue
Block a user