Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
30e6dd93
Commit
30e6dd93
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Missing perf key on the most important table
parent
6601c9ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/accountancy/bookkeeping/list.php
+9
-6
9 additions, 6 deletions
htdocs/accountancy/bookkeeping/list.php
htdocs/install/mysql/tables/llx_accounting_bookkeeping.key.sql
+22
-0
22 additions, 0 deletions
...s/install/mysql/tables/llx_accounting_bookkeeping.key.sql
with
31 additions
and
6 deletions
htdocs/accountancy/bookkeeping/list.php
+
9
−
6
View file @
30e6dd93
...
...
@@ -204,20 +204,23 @@ $param = '';
$filter
=
array
();
if
(
!
empty
(
$search_date_start
))
{
$filter
[
't.doc_date>='
]
=
$search_date_start
;
$param
.
=
'&date_startmonth='
.
GETPOST
(
'date_startmonth'
,
'int'
)
.
'&date_startday='
.
GETPOST
(
'date_startday'
,
'int'
)
.
'&date_startyear='
.
GETPOST
(
'date_startyear'
,
'int'
);
$tmp
=
dol_getdate
(
$search_date_start
);
$param
.
=
'&date_startmonth='
.
$tmp
[
'mon'
]
.
'&date_startday='
.
$tmp
[
'mday'
]
.
'&date_startyear='
.
$tmp
[
'year'
];
}
if
(
!
empty
(
$search_date_end
))
{
$filter
[
't.doc_date<='
]
=
$search_date_end
;
$param
.
=
'&date_endmonth='
.
GETPOST
(
'date_endmonth'
,
'int'
)
.
'&date_endday='
.
GETPOST
(
'date_endday'
,
'int'
)
.
'&date_endyear='
.
GETPOST
(
'date_endyear'
,
'int'
);
$tmp
=
dol_getdate
(
$search_date_end
);
$param
.
=
'&date_endmonth='
.
$tmp
[
'mon'
]
.
'&date_endday='
.
$tmp
[
'mday'
]
.
'&date_endyear='
.
$tmp
[
'year'
];
}
if
(
!
empty
(
$search_doc_date
))
{
$filter
[
't.doc_date'
]
=
$search_doc_date
;
$tmp
=
dol_getdate
(
$search_doc_date
);
$param
.
=
'&doc_datemonth='
.
$tmp
[
'mon'
]
.
'&doc_dateday='
.
$tmp
[
'mday'
]
.
'&doc_dateyear='
.
$tmp
[
'year'
];
}
if
(
!
empty
(
$search_doc_type
))
{
$filter
[
't.doc_type'
]
=
$search_doc_type
;
$param
.
=
'&search_doc_type='
.
$search_doc_type
;
}
if
(
!
empty
(
$search_doc_date
))
{
$filter
[
't.doc_date'
]
=
$search_doc_date
;
$param
.
=
'&doc_datemonth='
.
GETPOST
(
'doc_datemonth'
,
'int'
)
.
'&doc_dateday='
.
GETPOST
(
'doc_dateday'
,
'int'
)
.
'&doc_dateyear='
.
GETPOST
(
'doc_dateyear'
,
'int'
);
}
if
(
!
empty
(
$search_doc_ref
))
{
$filter
[
't.doc_ref'
]
=
$search_doc_ref
;
$param
.
=
'&search_doc_ref='
.
$search_doc_ref
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/install/mysql/tables/llx_accounting_bookkeeping.key.sql
0 → 100644
+
22
−
0
View file @
30e6dd93
-- ============================================================================
-- Copyright (C) 2016 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 3 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, see <http://www.gnu.org/licenses/>.
--
-- ============================================================================
ALTER
TABLE
llx_accounting_bookkeeping
ADD
INDEX
idx_accounting_bookkeeping_doc_date
(
doc_date
);
ALTER
TABLE
llx_accounting_bookkeeping
ADD
INDEX
idx_accounting_bookkeeping_fk_docdet
(
fk_docdet
);
ALTER
TABLE
llx_accounting_bookkeeping
ADD
INDEX
idx_accounting_bookkeeping_numero_compte
(
numero_compte
);
ALTER
TABLE
llx_accounting_bookkeeping
ADD
INDEX
idx_accounting_bookkeeping_code_journal
(
code_journal
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment