}
odt_stylesheet(){
- local iban="$2" bic="$3"
+ local iban="$1" bic="$2"
cat <<-EOF
<?xml version="1.0" encoding="UTF-8"?>
<style:footer>
<text:p text:style-name="MP1">
<text:span text:style-name="MT1">Bankverbindung - IBAN:</text:span>
- <text:span>${iban} |</text:span>
- <text:span text:style-name="MT1">BIC:</text:span>
+ <text:span>${iban}</text:span>
+ <text:span text:style-name="MT1">| BIC:</text:span>
<text:span>${bic}</text:span>
</text:p>
</style:footer>
-->$(HTML "$client" |sed -r 's;(
\;)?
\;;<text:line-break/>;g')<!--
--></text:p>
</draw:text-box>
- </draw:frame><text:span text:style-name="T3">Rechnung ${issuance}</text:span>
+ </draw:frame><text:span text:style-name="T3">Rechnung ${number}</text:span>
</text:p>
<text:p text:style-name="P3"/>
<text:p text:style-name="P3"/>
<text:p text:style-name="P3">${time}</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.2" office:value-type="string">
- <text:p text:style-name="P3">${item}</text:p>
+ <text:p text:style-name="P3">${work}</text:p>
</table:table-cell>
<table:table-cell table:style-name="Table1.2" office:value-type="string">
<text:p text:style-name="P5">${hours}</text:p>
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"
}