feat: pdf
This commit is contained in:
25
report/invoice.go
Normal file
25
report/invoice.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package report
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
|
||||
"git.schreifuchs.ch/lou-taylor/accounting/invoice"
|
||||
)
|
||||
|
||||
func (r Report) QRInvoice() template.URL {
|
||||
i := invoice.Invoice{
|
||||
ReceiverIBAN: r.Company.IBAN,
|
||||
IsQrIBAN: false,
|
||||
ReceiverName: r.Company.Name,
|
||||
ReceiverStreet: r.Company.Address.Street,
|
||||
ReceiverNumber: r.Company.Address.Number,
|
||||
ReceiverZIPCode: r.Company.Address.ZIPCode,
|
||||
ReceiverPlace: r.Company.Address.Place,
|
||||
ReceiverCountry: r.Company.Address.Country,
|
||||
Reference: "21 00000 00003 13947 14300 09017",
|
||||
Amount: "25",
|
||||
Currency: "CHF",
|
||||
}
|
||||
src, _ := i.GetQR()
|
||||
return template.URL(src)
|
||||
}
|
||||
Reference in New Issue
Block a user