feat: pdf
This commit is contained in:
@@ -5,11 +5,39 @@ import (
|
||||
"time"
|
||||
|
||||
"git.schreifuchs.ch/lou-taylor/accounting/issue"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Report struct {
|
||||
Date time.Time
|
||||
Issues []issue.Issue
|
||||
Style template.CSS
|
||||
Total string
|
||||
func New(issues []issue.Issue, company, client Entity, rate float64) *Report {
|
||||
return &Report{
|
||||
Date: time.Now(),
|
||||
Issues: issues,
|
||||
Rate: rate,
|
||||
Company: company,
|
||||
Client: client,
|
||||
ID: uuid.NewString(),
|
||||
}
|
||||
}
|
||||
|
||||
type Report struct {
|
||||
Date time.Time
|
||||
Issues []issue.Issue
|
||||
Style template.CSS
|
||||
Rate float64
|
||||
ID string
|
||||
Company Entity
|
||||
Client Entity
|
||||
}
|
||||
type Entity struct {
|
||||
Name string
|
||||
Address Address
|
||||
Contact string
|
||||
IBAN string
|
||||
}
|
||||
type Address struct {
|
||||
Street string
|
||||
Number string
|
||||
ZIPCode string
|
||||
Place string
|
||||
Country string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user