Go to file
jordi fita mas 3aa53cf1a9 “Mockup” for the new booking form
It does nothing but compute the total of a booking, much like it does
for guests.  In fact, i use the same payment relations to do the exact
same computation, otherwise i am afraid i will make a mistake in the
ACSI or such, now or in future version; better if both are exactly the
same.

The idea is that once the user creates the booking, i will delete that
payment, because it makes no sense to keep it in this case; nobody is
going to pay for it.

Had to reuse the grid showing the bookings of campsites because
employees need to select one or more campsites to book, and need to see
which are available.  In this case, i have to filter by campsite type
and use the arrival and departure dates to filter the months, now up to
the day, not just month.

Had to change max width of th and td in the grid to take into account
that now a month could have a single day, for instance, and the month
heading can not stretch the day or booking spans would not be in their
correct positions.

For that, i needed to access campsiteEntry, bookingEntry, and Month from
campsite package, but campsite imports campsite/types, and
campsite/types already imports booking for the BookingDates type.  To
break the cycle, had to move all that to booking and use from campsite;
it is mostly unchanged, except for the granularity of dates up to days
instead of just months.

The design of this form calls for a different way of showing the totals,
because here employees have to see the amount next to the input with
the units, instead of having a footer with the table.  I did not like
the idea of having to query the database for that, therefore i “lifter”
the payment draft into a struct that both public and admin forms use
to show they respective views of the cart.
2024-04-23 21:07:41 +02:00
cmd/camper Increase HTTP timeout 2024-03-05 12:05:00 +01:00
debian Tag version 8 of the database 2024-04-22 13:43:38 +02:00
demo Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
deploy Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
pkg “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00
po Show booking on booking grid 2024-04-19 21:09:28 +02:00
revert Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
test Fix tests for booking and booking_campsite 2024-04-21 21:57:34 +02:00
verify Allow many campsites for each reservation 2024-04-21 21:28:41 +02:00
web “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Send an email on notification of success payment 2024-02-13 05:20:35 +01:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
guix.scm Add Guix package definition 2024-01-28 18:12:38 +01:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Tag version 8 of the database 2024-04-22 13:43:38 +02:00