X-Git-Url: http://git.plutz.net/?p=invoices;a=blobdiff_plain;f=odtgen.sh;fp=odtgen.sh;h=1dfa5e87083d736bdc31035e19f81d7b14e12da0;hp=177065a9c9a0fd10f92cba31058aceacc51f1b98;hb=af7737f425a9c32b53501fd9a72f8d1657c8aaf1;hpb=026cd2e0fc6081c19d681a40720f7a70b449f3d8
diff --git a/odtgen.sh b/odtgen.sh
index 177065a..1dfa5e8 100755
--- a/odtgen.sh
+++ b/odtgen.sh
@@ -190,10 +190,16 @@ odt_content(){
${work}
- ${hours}
+ $( awk "BEGIN {
+ if ( int(${hours}) == ${hours} )
+ printf \"%i\", ${hours};
+ else
+ printf \"%i:%i\", int(${hours}), int((${hours} - int(${hours})) * 60);
+ }"
+ )
- $((${hourly} * ${hours})) â¬
+ $(awk "BEGIN { printf \"%.2f\", ${hourly} * ${hours}; }" ) â¬
TROW