Commit graph

20 commits

Author SHA1 Message Date
e72ad67c98
update deps 2025-06-23 19:02:48 +02:00
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
7d909f34e3
remove payment status field on item (#41) 2025-02-22 02:34:13 +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
cf1620592a
create invoice (#39)
### TL;DR

Enhanced invoice generation with improved formatting and Euro symbol display

### What changed?

- Added Euro symbol (€) to monetary values in the invoice template
- Implemented new invoice data structure with dedicated types for lines and payments
- Created ToInvoice method to properly format booking data for invoice generation
- Added HTML template parsing and rendering functionality
- Improved date formatting for consistency
- Added new API endpoint for booking creation

### How to test?

1. Create a new booking through the API
2. Navigate to the PDF generation endpoint
3. Verify that monetary values display with Euro symbol
4. Check that dates are properly formatted
5. Confirm that payment history and totals are correctly calculated
6. Validate that the generated HTML maintains proper formatting

### Why make this change?

To improve invoice readability and consistency by standardizing monetary value display and providing better data structure for invoice generation. This change also makes the system more maintainable by separating concerns between data transformation and presentation.
2025-02-04 11:34:14 +01:00
541c813be0
Raw 34 enable payments (#35)
Closes #34
2025-01-24 17:30:35 +01:00
04be887ad8
remove unused css 2024-08-23 16:24:24 +02:00
4fc580c93e
update css and js 2024-08-10 13:37:42 +02:00
f66ada145a
use google signin button 2024-05-19 21:37:17 +02:00
08739d10ba
add favicons 2024-03-11 21:12:46 +01:00
56704a4062
improve landing page 2024-03-03 15:04:19 +01:00
575dc5ad7b
create report pdf 2024-03-03 14:03:23 +01:00
3d6d1474a2
add host details 2024-03-03 12:15:45 +01:00
6a25589751
embed assets in binry 2024-02-25 00:08:11 +01:00
b42fe35831
update css lib and UI 2024-02-17 13:56:51 +01:00
b237484b58
add links to useful websites 2024-02-17 13:37:23 +01:00
dd13e5f3ce
styling 2024-02-16 22:10:54 +01:00
88f4dd1e65
change app name and add assets 2024-02-04 14:04:30 +01:00