X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=odtgen.sh;h=9ed1e22bbc7c57e3ecf9f9793da49f9cc88120c9;hb=95445a19d5a6dc3133a3e539e1c012425149a401;hp=c0f244825b74fad45a4d4e490c11cee03e5181ef;hpb=1d50621aa549b7a5c673a72de1dc74f368a5c58a;p=invoices
diff --git a/odtgen.sh b/odtgen.sh
index c0f2448..9ed1e22 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}
@@ -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"
}