@@ -18,6 +18,7 @@ class invoice extends Base {
1818 this . invoiceCurrency = this . config . get ( 'invoiceCurrency' ) ;
1919 this . invoiceCurrencyPerHour = this . config . get ( 'invoiceCurrencyPerHour' ) ;
2020 this . invoiceVAT = this . config . get ( 'invoiceVAT' ) ;
21+ this . invoicePositionText = this . config . get ( 'invoicePositionText' ) ;
2122 this . invoiceCurrencyMaxUnit = this . config . get ( 'invoiceCurrencyMaxUnit' ) ;
2223 this . totalhForInvoice = ( this . spent - this . spentFree ) / 3600.0 ;
2324 // round subtotals to 0.01 and total to invoiceCurrencyMaxUnit.
@@ -56,7 +57,7 @@ class invoice extends Base {
5657 let from = this . concat ( this . config . get ( 'invoiceSettings' ) . from , '</br>' ) ;
5758 let opening = this . concat ( this . config . get ( 'invoiceSettings' ) . opening , '</br>' ) ;
5859 let closing = this . concat ( this . config . get ( 'invoiceSettings' ) . closing , '</br>' ) ;
59- let positionText = this . concat ( this . config . get ( 'invoiceSettings' ) . positionText , '</br>' ) ;
60+
6061
6162 this . out +=
6263`<div class="senderBox">${ from } </div>
@@ -72,7 +73,7 @@ class invoice extends Base {
7273${ opening }
7374
7475<div class="positionBox">
75- <div class="positionDesc">${ positionText } (${ this . totalhForInvoice . toFixed ( 2 ) } Stunden zu ${ this . invoiceCurrencyPerHour } ${ this . invoiceCurrency } )</div>
76+ <div class="positionDesc">${ this . invoicePositionText } (${ this . totalhForInvoice . toFixed ( 2 ) } Stunden zu ${ this . invoiceCurrencyPerHour } ${ this . invoiceCurrency } )</div>
7677<div class="positionValue">${ this . invoiceCurrency } ${ this . totalForInvoiceExkl . toFixed ( 2 ) } </div>
7778<div class="positionDesc">MWST (${ this . invoiceVAT * 100 } %)</div>
7879<div class="positionValue">${ this . invoiceCurrency } ${ this . totalForInvoiceMwst . toFixed ( 2 ) } </div>
0 commit comments