Commit graph

19 commits

Author SHA1 Message Date
9c5123968a
payment form 2025-06-27 13:28:46 +02:00
968e5d2aef
line items 2025-06-27 13:15:53 +02:00
eaa40a62f3
booking details page header 2025-06-23 19:29:45 +02:00
7d909f34e3
remove payment status field on item (#41) 2025-02-22 02:34:13 +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
b8265cf80f
fix: only update the payments on payment creation 2025-01-25 00:21:30 +01:00
541c813be0
Raw 34 enable payments (#35)
Closes #34
2025-01-24 17:30:35 +01:00
ffa7f140d1
use daisyUI (#25)
* use tailwind and daisyui

* split the layout in multiple components

* remove unused code

* footer compoonent

* login form

log

* booking table

fd

* cancel style

* header

* booking form

* new booking

* line items

* line item

* report

* uniform headings
2024-11-16 19:24:26 +01:00
9765edc318
update templ version 2024-08-05 20:19:33 +02:00
aff18b2b12
split view models 2024-07-15 16:59:23 +02:00
967df34451
add external field to form 2024-07-14 23:35:39 +02:00
0a41989b01
cancel booking in db 2024-06-01 20:56:13 +02:00
04586832fa
add cancel flag on booking 2024-06-01 20:21:24 +02:00
0e1877e592
fix html table 2024-04-21 22:14:39 +02:00
bb8ea5fe07
require all fields to create item 2024-04-20 21:53:33 +02:00
1ea82268bd
move layouts to own folder 2024-04-12 11:22:55 +02:00
8db9e6ebb8
mark line item as paid 2024-03-22 12:13:22 +01:00
0215361e43
update booking form 2024-03-21 22:05:01 +01:00
761719f1bf
rename packages to singular 2024-03-03 18:49:03 +01:00
Renamed from internal/views/booking_by_id.templ (Browse further)