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
61737065
Commit
61737065
authored
9 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Fix: [ bug #1906 ] Deplacement does not allow translated decimal format
parent
d549c00b
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
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/compta/deplacement/fiche.php
+17
-10
17 additions, 10 deletions
htdocs/compta/deplacement/fiche.php
with
18 additions
and
10 deletions
ChangeLog
+
1
−
0
View file @
61737065
...
@@ -10,6 +10,7 @@ Fix: [ bug #1757 ] Sorting breaks product/service statistics
...
@@ -10,6 +10,7 @@ Fix: [ bug #1757 ] Sorting breaks product/service statistics
Fix: [ bug #1797 ] Tulip supplier invoice module takes creation date instead of invoice date
Fix: [ bug #1797 ] Tulip supplier invoice module takes creation date instead of invoice date
Fix: [ bug #1792 ] Users are not allowed to see margins module index page when no product view permission is enabled
Fix: [ bug #1792 ] Users are not allowed to see margins module index page when no product view permission is enabled
Fix: [ bug #1846 ] Browser IE11 not detected
Fix: [ bug #1846 ] Browser IE11 not detected
Fix: [ bug #1906 ] Deplacement does not allow translated decimal format
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
Fix: Avoid missing class error for fetch_thirdparty method #1973
Fix: Avoid missing class error for fetch_thirdparty method #1973
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/deplacement/fiche.php
+
17
−
10
View file @
61737065
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License as published by
...
@@ -123,8 +124,14 @@ else if ($action == 'add' && $user->rights->deplacement->creer)
...
@@ -123,8 +124,14 @@ else if ($action == 'add' && $user->rights->deplacement->creer)
{
{
$error
=
0
;
$error
=
0
;
$km
=
GETPOST
(
'km'
);
if
(
$km
)
{
$km
=
price2num
(
$km
);
}
$object
->
date
=
dol_mktime
(
12
,
0
,
0
,
GETPOST
(
'remonth'
,
'int'
),
GETPOST
(
'reday'
,
'int'
),
GETPOST
(
'reyear'
,
'int'
));
$object
->
date
=
dol_mktime
(
12
,
0
,
0
,
GETPOST
(
'remonth'
,
'int'
),
GETPOST
(
'reday'
,
'int'
),
GETPOST
(
'reyear'
,
'int'
));
$object
->
km
=
GETPOST
(
'km'
,
'int'
)
;
$object
->
km
=
$km
;
$object
->
type
=
GETPOST
(
'type'
,
'alpha'
);
$object
->
type
=
GETPOST
(
'type'
,
'alpha'
);
$object
->
socid
=
GETPOST
(
'socid'
,
'int'
);
$object
->
socid
=
GETPOST
(
'socid'
,
'int'
);
$object
->
fk_user
=
GETPOST
(
'fk_user'
,
'int'
);
$object
->
fk_user
=
GETPOST
(
'fk_user'
,
'int'
);
...
@@ -182,8 +189,14 @@ else if ($action == 'update' && $user->rights->deplacement->creer)
...
@@ -182,8 +189,14 @@ else if ($action == 'update' && $user->rights->deplacement->creer)
{
{
$result
=
$object
->
fetch
(
$id
);
$result
=
$object
->
fetch
(
$id
);
$km
=
GETPOST
(
'km'
);
if
(
$km
)
{
$km
=
price2num
(
$km
);
}
$object
->
date
=
dol_mktime
(
12
,
0
,
0
,
GETPOST
(
'remonth'
,
'int'
),
GETPOST
(
'reday'
,
'int'
),
GETPOST
(
'reyear'
,
'int'
));
$object
->
date
=
dol_mktime
(
12
,
0
,
0
,
GETPOST
(
'remonth'
,
'int'
),
GETPOST
(
'reday'
,
'int'
),
GETPOST
(
'reyear'
,
'int'
));
$object
->
km
=
GETPOST
(
'km'
,
'int'
)
;
$object
->
km
=
$km
;
$object
->
type
=
GETPOST
(
'type'
,
'alpha'
);
$object
->
type
=
GETPOST
(
'type'
,
'alpha'
);
$object
->
socid
=
GETPOST
(
'socid'
,
'int'
);
$object
->
socid
=
GETPOST
(
'socid'
,
'int'
);
$object
->
fk_user
=
GETPOST
(
'fk_user'
,
'int'
);
$object
->
fk_user
=
GETPOST
(
'fk_user'
,
'int'
);
...
@@ -225,12 +238,6 @@ else if ($action == 'setdated' && $user->rights->deplacement->creer)
...
@@ -225,12 +238,6 @@ else if ($action == 'setdated' && $user->rights->deplacement->creer)
$result
=
$object
->
setValueFrom
(
'dated'
,
$dated
,
''
,
''
,
'date'
);
$result
=
$object
->
setValueFrom
(
'dated'
,
$dated
,
''
,
''
,
'date'
);
if
(
$result
<
0
)
dol_print_error
(
$db
,
$object
->
error
);
if
(
$result
<
0
)
dol_print_error
(
$db
,
$object
->
error
);
}
}
else
if
(
$action
==
'setkm'
&&
$user
->
rights
->
deplacement
->
creer
)
{
$object
->
fetch
(
$id
);
$result
=
$object
->
setValueFrom
(
'km'
,
GETPOST
(
'km'
,
'int'
));
if
(
$result
<
0
)
dol_print_error
(
$db
,
$object
->
error
);
}
else
if
(
$action
==
'setnote_public'
&&
$user
->
rights
->
deplacement
->
creer
)
else
if
(
$action
==
'setnote_public'
&&
$user
->
rights
->
deplacement
->
creer
)
{
{
$object
->
fetch
(
$id
);
$object
->
fetch
(
$id
);
...
@@ -385,7 +392,7 @@ else if ($id)
...
@@ -385,7 +392,7 @@ else if ($id)
// Km
// Km
print
'<tr><td class="fieldrequired">'
.
$langs
->
trans
(
"FeesKilometersOrAmout"
)
.
'</td><td>'
;
print
'<tr><td class="fieldrequired">'
.
$langs
->
trans
(
"FeesKilometersOrAmout"
)
.
'</td><td>'
;
print
'<input name="km" class="flat" size="10" value="'
.
$object
->
km
.
'">'
;
print
'<input name="km" class="flat" size="10" value="'
.
price
(
$object
->
km
)
.
'">'
;
print
'</td></tr>'
;
print
'</td></tr>'
;
// Where
// Where
...
@@ -477,7 +484,7 @@ else if ($id)
...
@@ -477,7 +484,7 @@ else if ($id)
print
'<tr><td valign="top">'
;
print
'<tr><td valign="top">'
;
print
$form
->
editfieldkey
(
"FeesKilometersOrAmout"
,
'km'
,
$object
->
km
,
$object
,
$conf
->
global
->
MAIN_EDIT_ALSO_INLINE
&&
$user
->
rights
->
deplacement
->
creer
,
'numeric:6'
);
print
$form
->
editfieldkey
(
"FeesKilometersOrAmout"
,
'km'
,
$object
->
km
,
$object
,
$conf
->
global
->
MAIN_EDIT_ALSO_INLINE
&&
$user
->
rights
->
deplacement
->
creer
,
'numeric:6'
);
print
'</td><td>'
;
print
'</td><td>'
;
print
$form
->
editfieldval
(
"FeesKilometersOrAmout"
,
'km'
,
$object
->
km
,
$object
,
$conf
->
global
->
MAIN_EDIT_ALSO_INLINE
&&
$user
->
rights
->
deplacement
->
creer
,
'numeric:6'
);
print
$form
->
editfieldval
(
"FeesKilometersOrAmout"
,
'km'
,
price
(
$object
->
km
)
,
$object
,
$conf
->
global
->
MAIN_EDIT_ALSO_INLINE
&&
$user
->
rights
->
deplacement
->
creer
,
'numeric:6'
);
print
"</td></tr>"
;
print
"</td></tr>"
;
// Where
// Where
...
...
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