]> git.plutz.net Git - invoices/commitdiff
allow quarter hours input
authorPaul Hänsch <paul@plutz.net>
Mon, 28 Mar 2022 10:45:33 +0000 (12:45 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 28 Mar 2022 10:45:33 +0000 (12:45 +0200)
invoices.sh

index a1ec2339be82ce4e994d215282a221b5fe01b663..b99d8f2431b4a9b6e0b465acd3992b4a34f24794 100755 (executable)
@@ -174,7 +174,7 @@ $({ sed 1d "invoices/$id"; printf 'time= work= hours=\n'; } \
 %s] ]
             [td [textarea name=work
 %s] ]
-            [td [input type=number name=hours value="%.2g" step=any] ]
+            [td [input type=number name=hours value="%g" step=any] ]
             [td %s]
    ]' "$(UNSTRING "${time#time=}" |HTML)" \
       "$(UNSTRING "${work#work=}" |HTML)" \