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
c5aed0c3
Commit
c5aed0c3
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix phpcs
parent
9a2e945b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/accountancy/class/accountancycategory.class.php
+11
-10
11 additions, 10 deletions
htdocs/accountancy/class/accountancycategory.class.php
with
11 additions
and
10 deletions
htdocs/accountancy/class/accountancycategory.class.php
+
11
−
10
View file @
c5aed0c3
...
...
@@ -429,7 +429,7 @@ class AccountancyCategory
return
-
1
;
}
}
public
function
getCats
()
{
global
$db
,
$langs
,
$user
,
$mysoc
;
...
...
@@ -462,7 +462,7 @@ class AccountancyCategory
if
(
$num
)
{
while
(
$i
<
$num
)
{
$obj
=
$this
->
db
->
fetch_object
(
$resql
);
$data
[]
=
array
(
'rowid'
=>
$obj
->
rowid
,
'code'
=>
$obj
->
code
,
...
...
@@ -483,10 +483,10 @@ class AccountancyCategory
return
-
1
;
}
}
// calcule
// calcule
const
PATTERN
=
'/(?:\-?\d+(?:\.?\d+)?[\+\-\*\/])+\-?\d+(?:\.?\d+)?/'
;
const
PARENTHESIS_DEPTH
=
10
;
...
...
@@ -535,11 +535,12 @@ class AccountancyCategory
return
0
;
}
/**
* get cpts of category
*
* @return array Result in table
* @param int $cat_id Category id
* @return array Result in table
*/
public
function
getCptsCat
(
$cat_id
)
{
global
$mysoc
;
...
...
@@ -554,7 +555,7 @@ class AccountancyCategory
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"accounting_account as t"
;
$sql
.
=
" WHERE t.fk_accounting_category = "
.
$cat_id
;
$sql
.
=
" ORDER BY t.account_number "
;
//echo $sql;
$resql
=
$this
->
db
->
query
(
$sql
);
...
...
@@ -582,5 +583,5 @@ class AccountancyCategory
return
-
1
;
}
}
}
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