X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=odtgen.sh;h=1dfa5e87083d736bdc31035e19f81d7b14e12da0;hb=8383d6e4dee56e69569f930e9e5d374ae0bdedcc;hp=177065a9c9a0fd10f92cba31058aceacc51f1b98;hpb=026cd2e0fc6081c19d681a40720f7a70b449f3d8;p=invoices
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