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
dc545672
Commit
dc545672
authored
17 years ago
by
Yannick Warnier
Browse files
Options
Downloads
Patches
Plain Diff
Problème de formatage numérique des débits - requête résultante erronée
parent
ddc41863
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/bank/search.php
+3
-3
3 additions, 3 deletions
htdocs/compta/bank/search.php
with
3 additions
and
3 deletions
htdocs/compta/bank/search.php
+
3
−
3
View file @
dc545672
...
@@ -132,11 +132,11 @@ $sql .= " AND fk_type like '" . $type . "'";
...
@@ -132,11 +132,11 @@ $sql .= " AND fk_type like '" . $type . "'";
$si
=
0
;
$si
=
0
;
$debit
=
ereg
_replace
(
'
,
'
,
'
.
'
,
$debit
);
$debit
=
price2num
(
str
_replace
(
'
-
'
,
''
,
$debit
)
)
;
$credit
=
ereg
_replace
(
'
,
'
,
'
.
'
,
$credit
);
$credit
=
price2num
(
str
_replace
(
'
-
'
,
''
,
$credit
)
)
;
if
(
is_numeric
(
$debit
))
{
if
(
is_numeric
(
$debit
))
{
$si
++
;
$si
++
;
$sqlw
[
$si
]
.
=
" b.amount = "
.
-
$debit
;
$sqlw
[
$si
]
.
=
" b.amount =
-
"
.
$debit
;
}
}
if
(
is_numeric
(
$credit
))
{
if
(
is_numeric
(
$credit
))
{
$si
++
;
$si
++
;
...
...
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