X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=odtgen.sh;h=5efbcc2887dfb70a346cd1871f5a8dfa07fe79f9;hb=da0991fe5c1d910682dd7bcb03adafee2a42ca37;hp=c0f244825b74fad45a4d4e490c11cee03e5181ef;hpb=1d50621aa549b7a5c673a72de1dc74f368a5c58a;p=invoices
diff --git a/odtgen.sh b/odtgen.sh
index c0f2448..5efbcc2 100755
--- a/odtgen.sh
+++ b/odtgen.sh
@@ -12,7 +12,7 @@ odt_manifest(){
}
odt_stylesheet(){
- local iban="$2" bic="$3"
+ local iban="$1" bic="$2"
cat <<-EOF
@@ -46,8 +46,8 @@ odt_stylesheet(){
Bankverbindung - IBAN:
- ${iban} |
- BIC:
+ ${iban}
+ | BIC:
${bic}
@@ -69,16 +69,16 @@ odt_content(){
-
+
-
+
-
+
-
+
@@ -136,7 +136,7 @@ odt_content(){
-->$(HTML "$client" |sed -r 's;(
\;)?
\;;;g')
- Rechnung ${issuance}
+ Rechnung ${number}
@@ -180,7 +180,7 @@ odt_content(){
${time}
- ${item}
+ ${work}
${hours}
@@ -286,7 +286,7 @@ genodt(){
genpdf(){
local id="$1"
genodt "$id"
- writer --convert-to pdf --outdir "export/" "export/${id}.odt" >/dev/null
+ lowriter --convert-to pdf --outdir "export/" "export/${id}.odt" >/dev/null
rm "export/${id}.odt"
}