feat: cli app

This commit is contained in:
2025-11-04 19:17:50 +01:00
parent 7d160d5f59
commit 8f5ae15ef0
14 changed files with 357 additions and 94 deletions

View File

@@ -14,10 +14,10 @@ type Report struct {
Invoice qrbill.Invoice
Rate float64
Company model.Entity
Client model.Entity
Client *model.Entity
}
func New(issues []issue.Issue, company, client model.Entity, rate float64) *Report {
func New(issues []issue.Issue, company model.Entity, client *model.Entity, rate float64) *Report {
r := &Report{
Date: time.Now(),
Issues: issues,
@@ -25,7 +25,7 @@ func New(issues []issue.Issue, company, client model.Entity, rate float64) *Repo
Company: company,
Client: client,
}
r.Invoice = qrbill.New(r.applyRate(r.Total()), r.Company, &r.Client)
r.Invoice = qrbill.New(r.applyRate(r.Total()), r.Company, r.Client)
return r
}