Skip to content

Commit 4ae5f6e

Browse files
author
Andreas Müller
committed
added reference to qr code
1 parent 9a82bac commit 4ae5f6e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Defaults to `table`. `csv` and `markdown` can be printed to stdout, `pdf` and `x
282282
There are additional options for the invoice output as given in the following example:
283283

284284
```shell
285-
gtt report --output=invoice --file=invoice.md --from 2021-02-01 --to 2021-02-28 --closed --invoiceCurrencyMaxUnit 1 --invoiceTitle "Rechnung" --invoiceAddress "Firma" "Mr. X" "Strasse" "10000 Ort" "Land" --invoiceCurrency "EUR" --invoiceCurrencyPerHour "50" --invoiceVAT "0.15" --invoiceDate "1.03.2021" --invoicePositionText "Position Text"
285+
gtt report --output=invoice --file=invoice.md --from 2021-02-01 --to 2021-02-28 --closed --invoiceCurrencyMaxUnit 1 --invoiceTitle "Rechnung" --invoiceReference "Reference" --invoiceAddress "Firma" "Mr. X" "Strasse" "10000 Ort" "Land" --invoiceCurrency "EUR" --invoiceCurrencyPerHour "50" --invoiceVAT "0.15" --invoiceDate "1.03.2021" --invoicePositionText "Position Text"
286286
```
287287

288288
For paper invoice, further process the output with a css, see the folder preview (styles.css, invoice.pdf)

src/gtt-report.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ program
6666
.option('--show_without_times', 'show issues/merge requests without time records')
6767
.option('--from_dump <file>', 'instead of querying gitlab, use data from the given dump file')
6868
.option('--invoiceTitle <title>', 'title on invoice')
69+
.option('--invoiceReference <reference>', 'payment reference on invoice')
6970
.option('--invoiceAddress [address...]', 'address')
7071
.option('--invoiceCurrency <currency>', 'currecnty on invoice')
7172
.option('--invoiceCurrencyPerHour <number>', 'hourly wage rate on invoice')
@@ -133,6 +134,7 @@ config
133134
.set('subgroups', program.opts().subgroups)
134135
.set('_verbose', program.opts().verbose)
135136
.set('invoiceTitle', program.opts().invoiceTitle)
137+
.set('invoiceReference', program.opts().invoiceReference)
136138
.set('invoiceAddress', program.opts().invoiceAddress)
137139
.set('invoiceCurrency', program.opts().invoiceCurrency)
138140
.set('invoiceCurrencyPerHour', program.opts().invoiceCurrencyPerHour)

src/output/invoice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class invoice extends Base {
7171
const data = {
7272
currency: "CHF",
7373
amount: this.totalForInvoice,
74-
reference: this.config.get('invoiceTitle'),
74+
reference: this.config.get('invoiceReference'),
7575
creditor: {
7676
name: this.config.get('invoiceSettings').from [0],
7777
address: this.config.get('invoiceSettings').from [2],

0 commit comments

Comments
 (0)