feat: reastructure and create commands
All checks were successful
Go / build (push) Successful in 57s

This commit is contained in:
2025-09-16 21:11:14 +02:00
parent 8180b38225
commit 7d160d5f59
15 changed files with 388 additions and 5 deletions

View File

@@ -45,11 +45,11 @@ func (s *Service) Generate(creditor, deptor model.Entity, mindur time.Duration,
)
html, err := r.ToHTML()
if err != nil {
return
return document, r, err
}
document, err = s.pdf.HtmlToPdf(html)
return
return document, r, err
}
func filter[T any](slice []T, ok func(T) bool) []T {