26 lines
644 B
Go
26 lines
644 B
Go
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)
|
|
}
|