Commit graph

4 commits

Author SHA1 Message Date
2ef9db274e
feat(invoice): add additional charge for extra guests in invoice template
Include a note stating that an additional fee of 15€ per day per extra person will be applied. This change clarifies billing details for users.
2025-05-25 19:31:45 +02:00
44cf04bac7
update report template (#43) 2025-02-22 12:28:56 +01:00
dc8cd24c1d
make it smaller 2025-02-04 18:58:44 +01:00
bddc4bb0fc
embed html template (#40)
### TL;DR

Implemented embedded file system for static assets using Go's `embed` package.

### What changed?

- Created a new `assets.go` file to define an embedded filesystem for static assets
- Moved all static assets (HTML, icons, images, JS) under a nested `assets` directory
- Updated PDF generation to use the embedded filesystem when parsing HTML templates
- Modified main application to use the embedded filesystem for serving static files
- Added logging statements for invoice generation

### How to test?

1. Run the application and verify static assets are served correctly
2. Generate a PDF invoice and confirm it renders properly
3. Check that all HTML error pages (400, 401, 403, 404, 500) are accessible
4. Verify images and icons load correctly throughout the application

### Why make this change?

Using an embedded filesystem ensures all static assets are compiled into the binary, making deployment simpler and more reliable. This eliminates the need to manage separate asset files and ensures the application has all required resources available at runtime.
2025-02-04 18:49:20 +01:00