Commit Graph

64 Commits

Author SHA1 Message Date
Thomas Ruoff
498f212ee0 use types instead of interfaces 2021-06-16 23:36:28 +02:00
Thomas Ruoff
9fe3fffb86 infer return type of functions 2021-03-22 23:14:48 +01:00
Thomas Ruoff
2174885f5a fix days validation on updating booking
days validation needs to ignore own days
2021-02-27 23:51:44 +01:00
Thomas Ruoff
e84d6549a0 make sure to generate just a single bill 2021-02-27 23:15:52 +01:00
Thomas Ruoff
2a5c9b8638 fix double booked day validation 2020-12-23 23:38:53 +01:00
Thomas Ruoff
b723fc5660 fix type errors hopefully *fingerscrossed* 2020-12-23 16:49:43 +01:00
Thomas Ruoff
c7cd252506 make getBookings parametrizable 2020-11-23 23:48:38 +01:00
Thomas Ruoff
10ed86e61f apply same for min in schema dates 2020-11-09 22:55:11 +01:00
Thomas Ruoff
cd6ae123bb daysbooked in timezone Europe/Berlin 2020-11-09 22:51:19 +01:00
Thomas Ruoff
650a7374ff add phone 2020-11-08 23:04:14 +01:00
Thomas Ruoff
088ca3ea5b use strings for startDate endDate
all the way to the FE
2020-11-06 23:52:00 +01:00
Thomas Ruoff
195da65cd9 remove *Document intefaces from FE code 2020-11-06 23:37:04 +01:00
Thomas Ruoff
c52e3bf921 add useCreateIndex to mongo connection 2020-11-02 22:04:26 +01:00
Thomas Ruoff
3d29e76b9a populate days on save 2020-10-30 23:57:40 +01:00
Thomas Ruoff
9a4d55a3e2 fix error when no bill was found 2020-10-10 00:45:50 +02:00
Thomas Ruoff
396e4b0a86 use fixed tarifs and add additional costs 2020-10-10 00:39:29 +02:00
Thomas Ruoff
a0cf63dcdc default to max milage found for a new bill 2020-10-08 00:35:21 +02:00
Thomas Ruoff
48c9fc9301 add free of charge rate 2020-10-08 00:17:29 +02:00
Thomas Ruoff
64029ec06a fix rates enum name 2020-10-07 22:46:13 +02:00
Thomas Ruoff
c396cdcbf9 further work on billing 2020-10-07 22:46:13 +02:00
Thomas Ruoff
f8434233d9 further work on bills 2020-10-07 22:46:13 +02:00
Thomas Ruoff
ec1b2e9629 enable bill storing 2020-10-07 22:46:13 +02:00
Thomas Ruoff
df6ec51af9 small change on bill schema 2020-10-07 22:46:13 +02:00
Thomas Ruoff
bf2ae41a4d fix enum 2020-10-07 22:46:13 +02:00
Thomas Ruoff
367a16fabb remove obsolete existence check for milageStart/End 2020-10-07 22:46:13 +02:00
Thomas Ruoff
2e73875d37 first stab on bill model 2020-10-07 22:46:13 +02:00
Thomas Ruoff
928d6b3d4e fix typing error 2020-09-29 23:30:38 +02:00
Thomas Ruoff
02c2b45747 replace momentjs (incl. calendar) 2020-09-29 23:30:38 +02:00
Thomas Ruoff
c136b2d2e1 popuplate booker when getting bookings 2020-09-18 00:53:10 +02:00
Thomas Ruoff
56c8263e90 firt attempt for an ics calendar 2020-09-18 00:53:10 +02:00
Thomas Ruoff
e3a9da6efa improve server side validation error for double booking 2020-09-15 23:37:07 +02:00
Thomas Ruoff
b5742f389e add BookingBill model 2020-09-12 00:07:42 +02:00
Thomas Ruoff
17ca9e1ae4 make org, purpose, destination optional 2020-09-10 22:40:29 +02:00
Thomas Ruoff
451d0e2d78 re-use models when hot reloading 2020-09-09 00:25:09 +02:00
Thomas Ruoff
654b4d706c remove debugging output 2020-09-09 00:25:09 +02:00
Thomas Ruoff
038e2b2420 another try to fix types for models 2020-09-09 00:25:09 +02:00
Thomas Ruoff
ef4c8ce24a fix validation error 2020-09-09 00:25:09 +02:00
Thomas Ruoff
0ed66962ba fix return type of findBookingDays 2020-09-09 00:25:09 +02:00
Thomas Ruoff
62a0e79664 make findBookedDays a static of schema 2020-09-09 00:25:09 +02:00
Thomas Ruoff
cf92a69fa7 return 400 when validation fails 2020-09-09 00:25:09 +02:00
Thomas Ruoff
4b16e07985 further code improvements 2020-09-09 00:25:09 +02:00
Thomas Ruoff
52a68e9989 further typing improvements 2020-09-09 00:25:09 +02:00
Thomas Ruoff
90ac05a907 fix most type errors
still have a few things outstanding
2020-09-09 00:25:09 +02:00
Thomas Ruoff
be1e22460d rename js/x ts/x 2020-09-09 00:25:09 +02:00
Thomas Ruoff
ec294eaabe add patch for bookings and only allow status 2020-08-25 23:56:41 +02:00
Thomas Ruoff
18722261eb use BOOKING_STATE in database calls 2020-08-25 23:55:42 +02:00
Thomas Ruoff
1dcfef205c add separate booking state 2020-08-25 23:54:31 +02:00
Thomas Ruoff
ebdcd5cd24 no need to use faulty regex in booker finding 2020-08-22 00:09:25 +02:00
Thomas Ruoff
7dea0153c4 add useUnifiedTopology to overcome warning 2020-08-22 00:07:54 +02:00
Thomas Ruoff
848e2d16c0 create index over booking uuid 2020-08-22 00:07:37 +02:00