Commit graph

18 commits

Author SHA1 Message Date
9b2510460a
feat: store invoice PDFs in minio
Some checks are pending
CI / checks (push) Waiting to run
2026-03-20 23:58:57 +01:00
afc61e02f1
refactor: improve booking error handling and responses
Some checks failed
CI / checks (push) Has been cancelled
Refactor booking retrieval to return errors instead of nil values,
enabling more robust error handling throughout the booking, payment,
and PDF endpoints. Add custom HTTP error page rendering for not found
and internal server errors. Update interfaces and tests to match new
method signatures. This improves user feedback and code maintainability.
2025-11-17 19:26:45 +01:00
4bd47dc6e9
feat(deps): migrate from Echo to Chi, update Stripe/Sentry (#49)
Some checks failed
CI / checks (push) Has been cancelled
2025-11-02 21:45:37 +01:00
6bdbd36869
fix card calculation sql (#44) 2025-02-22 14:19:48 +01:00
44cf04bac7
update report template (#43) 2025-02-22 12:28:56 +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
34ce10ff86
move booking to service layer 2024-09-12 22:18:12 +02:00
876d54d7bb
move pdf to driver layer 2024-09-11 11:04:34 +02:00
aa5dd17d07
move config and constant packages to internal 2024-09-08 21:34:36 +02:00
ac10e65097
Refactor service (#14)
* add comments to main file

* create health check handler

health check

* use naming convention for booking handler

* use naming convention for hamndlers

naming convention

* clean up
2024-08-07 09:12:50 +02:00
83f2490870
change the pdf filenames 2024-03-20 17:15:52 +01:00
761719f1bf
rename packages to singular 2024-03-03 18:49:03 +01:00
96710d033a
new rport builder 2024-03-03 14:25:36 +01:00
575dc5ad7b
create report pdf 2024-03-03 14:03:23 +01:00
37cadd8b20
add customer number seed 2024-02-22 22:08:46 +01:00
804d08caba
update readme 2024-02-21 22:38:08 +01:00
ec853f6b66
send data to render pdf 2024-02-18 14:01:33 +01:00
d2d0fc4337
split handlers 2024-02-16 15:42:58 +01:00