Sortieren von Beträgen mit Tausenderpunkt und Komma

This commit is contained in:
Andreas Österreicher
2012-07-03 14:23:13 +00:00
parent 9db6b47aa0
commit 6204666373
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -474,6 +474,7 @@ if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data
this.benchmark = benchmark;
function log(s) {
alert(s);
if (typeof console != "undefined" && typeof console.debug != "undefined") {
console.log(s);
} else {
@@ -1084,7 +1085,7 @@ if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data
ts.addParser({
id: "dedate",
is: function(s) {
return /^\d{1,2}.\d{1,2}.\d{2,4}$/.test(s);
return /^\d{1,2}[.]\d{1,2}[.]\d{2,4}$/.test(s);
},
format: function(s) {
s = s.replace(/(\d{1,2}).(\d{1,2}).(\d{2,4})/, "$2/$1/$3");
@@ -1096,7 +1097,7 @@ if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data
ts.addParser({
id: "digitmittausenderpunkt",
is: function(s) {
return /^[0-9]*[.][0-9]*[,]*[0-9]*$/.test(s);
return /^[0-9]*[.]*[0-9]*[,]*[0-9]*$/.test(s);
},
format: function(s) {
return $.tablesorter.formatFloat(s.replace('.',""));
+2 -2
View File
@@ -37,7 +37,7 @@ A:visited
color: blue;
}
A:focu
A:focus
{
cursor:hand;
}
@@ -121,7 +121,7 @@ table.dark td
option.rechnung_nichtfreigegeben
{
background-color: lightred;
background-color: lightpink;
}
option.rechnung_freigegebenvorhanden
+1 -1
View File
@@ -704,7 +704,7 @@ if($aktion == 'suche')
echo '<td>'.$date->formatDatum($row->insertamum, 'd.m.Y')."</td>\n";
echo '<td>'.$freigegeben=($row->freigegeben=='t')?'ja':'nein'."</td>\n";
echo '<td>'.$geliefert.'</td>';
echo '<td>'.number_format($brutto, 2, ",",".")."</td>\n";
echo '<td class="number">'.number_format($brutto, 2, ",",".")."</td>\n";
echo '<td>'.$row->titel."</td>\n";
echo '<td>'.$date->formatDatum($row->updateamum,'d.m.Y').' '.$row->updatevon ."</td>\n";