feat: pdf

This commit is contained in:
u80864958
2025-08-22 15:59:26 +02:00
parent 11e7b6445c
commit 7c6916f3a1
14 changed files with 445 additions and 84 deletions

25
report/invoice.go Normal file
View 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)
}