Commit graph

11 commits

Author SHA1 Message Date
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
34ce10ff86
move booking to service layer 2024-09-12 22:18:12 +02:00
6fbac3ec39
fix linter 2024-09-09 21:15:28 +02:00
542dbf0f97
split the service layer 2024-09-08 23:12:13 +02:00
f4250fb275
cleanup 2024-08-23 08:21:22 +02:00
75832d251d
use colorful logger 2024-08-21 16:56:11 +02:00
ee3674e12f
better date formatting 2024-06-29 09:28:51 +02:00
ba22fa0ffc
log and return message 2024-06-15 07:55:48 +02:00
cee291a88f
move to service 2024-06-14 13:07:53 +02:00
f9066d3ecb
extract booking data 2024-06-14 12:27:55 +02:00
0db50b2268
add validation to login form 2024-06-08 13:23:43 +02:00