rentease/internal/server
Ruidy 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
..
auth.go refactor authentication service 2024-09-13 17:32:18 +02:00
handle_api_sync.go create invoice (#39) 2025-02-04 11:34:14 +01:00
handle_auth.go refactor authentication service 2024-09-13 17:32:18 +02:00
handle_bookings.go Raw 34 enable payments (#35) 2025-01-24 17:30:35 +01:00
handle_healthz.go move calendar to driver layer 2024-09-11 09:09:23 +02:00
handle_payments.go fix: only update the payments on payment creation 2025-01-25 00:21:30 +01:00
handle_pdf.go create invoice (#39) 2025-02-04 11:34:14 +01:00
handle_reports.go move booking to service layer 2024-09-12 22:18:12 +02:00
helper.go hx boost helper 2024-09-09 22:34:29 +02:00
middleware.go upgrade to Go 1.23 2024-08-21 07:41:54 +02:00
option.go refactor: server option to own filed 2024-08-15 23:48:35 +02:00
routes.go create invoice (#39) 2025-02-04 11:34:14 +01:00
server.go move booking to service layer 2024-09-12 22:18:12 +02:00
tracing.go basic tracing middleware 2024-03-11 22:11:08 +01:00