projects
/
misc
/
kostenrechnung
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67fab82
)
Reformat decimal values
author
Joey Schulze
<joey@infodrom.org>
Sun, 9 May 2010 19:17:47 +0000
(21:17 +0200)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 9 May 2010 19:17:47 +0000
(21:17 +0200)
masks/arbeitsberichte.php
patch
|
blob
|
history
diff --git
a/masks/arbeitsberichte.php
b/masks/arbeitsberichte.php
index
6a3de29
..
a45fa66
100644
(file)
--- a/
masks/arbeitsberichte.php
+++ b/
masks/arbeitsberichte.php
@@
-317,6
+317,7
@@
function einsatz_insert($mask)
while (true) {
if ($num) $app = ':'.$num;
if (empty($_POST['geraet'.$app])) break;
+ $_POST['geraetstunden'.$app] = str_replace(',','.',$_POST['geraetstunden'.$app]);
$sql = sprintf("INSERT INTO einsatzgeraete (einsatz,geraet,anbaugeraet,stunden,sys_user,sys_edit) " .
"VALUES (%d,%d,%s,%.2f,'%s',now())",
$einsatz,