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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fad9fe71
Commit
fad9fe71
authored
Sep 6, 2014
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Sort out type & subtype by Chart of accounts
parent
f9dc25cf
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/accountancy/class/accountingaccount.class.php
+2
-2
2 additions, 2 deletions
htdocs/accountancy/class/accountingaccount.class.php
htdocs/accountancy/class/html.formventilation.class.php
+6
-2
6 additions, 2 deletions
htdocs/accountancy/class/html.formventilation.class.php
with
8 additions
and
4 deletions
htdocs/accountancy/class/accountingaccount.class.php
+
2
−
2
View file @
fad9fe71
This diff is collapsed.
Click to expand it.
htdocs/accountancy/class/html.formventilation.class.php
+
6
−
2
View file @
fad9fe71
...
@@ -166,7 +166,9 @@ class FormVentilation extends Form
...
@@ -166,7 +166,9 @@ class FormVentilation extends Form
$out
=
''
;
$out
=
''
;
$sql
=
"SELECT DISTINCT pcg_type "
;
$sql
=
"SELECT DISTINCT pcg_type "
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"accountingaccount "
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"accountingaccount as aa"
;
$sql
.
=
" INNER JOIN "
.
MAIN_DB_PREFIX
.
"accounting_system as asy ON aa.fk_pcg_version = asy.pcg_version"
;
$sql
.
=
" AND asy.rowid = "
.
$conf
->
global
->
CHARTOFACCOUNTS
;
$sql
.
=
" ORDER BY pcg_type"
;
$sql
.
=
" ORDER BY pcg_type"
;
dol_syslog
(
get_class
(
$this
)
.
"::select_pcgtype sql="
.
$sql
,
LOG_DEBUG
);
dol_syslog
(
get_class
(
$this
)
.
"::select_pcgtype sql="
.
$sql
,
LOG_DEBUG
);
...
@@ -220,7 +222,9 @@ class FormVentilation extends Form
...
@@ -220,7 +222,9 @@ class FormVentilation extends Form
$out
=
''
;
$out
=
''
;
$sql
=
"SELECT DISTINCT pcg_subtype "
;
$sql
=
"SELECT DISTINCT pcg_subtype "
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"accountingaccount "
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"accountingaccount as aa"
;
$sql
.
=
" INNER JOIN "
.
MAIN_DB_PREFIX
.
"accounting_system as asy ON aa.fk_pcg_version = asy.pcg_version"
;
$sql
.
=
" AND asy.rowid = "
.
$conf
->
global
->
CHARTOFACCOUNTS
;
$sql
.
=
" ORDER BY pcg_subtype"
;
$sql
.
=
" ORDER BY pcg_subtype"
;
dol_syslog
(
get_class
(
$this
)
.
"::select_pcgsubtype sql="
.
$sql
,
LOG_DEBUG
);
dol_syslog
(
get_class
(
$this
)
.
"::select_pcgsubtype sql="
.
$sql
,
LOG_DEBUG
);
...
...
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