Commit Graph
48 Commits
Author SHA1 Message Date
Lukas Halbritter 20859fe4a9 Transferred the loading of the arrays for the booking forms into a own separate
method.
Impemented the booking.edit view and controller method.
2018-10-04 22:59:41 +02:00
Lukas Halbritter 0907b18671 Added methods to get the person that belongs to a target and a method to get all
targets which are nichot paid.
2018-10-04 20:35:39 +02:00
Lukas Halbritter 1e9e90ec17 The fullName() method is now able to return the name, but in the form 'LAST
NAME, FIRST NAME'.
2018-10-04 20:34:26 +02:00
Lukas Halbritter 201ffd3d7a Added a method to replace every ',' in a string with a '.'. 2018-10-04 20:32:46 +02:00
Lukas Halbritter bfe50dec65 Implemented the create method of the BookingsController and fixed some code
style issues.
2018-10-04 20:30:20 +02:00
Lukas Halbritter 9032793597 Added method to get the PersonTarget of a Booking. 2018-10-04 19:56:31 +02:00
Lukas Halbritter fe9cb367e5 Added a method to get the scope of an accountClass. 2018-10-04 19:55:52 +02:00
Lukas Halbritter f8eb022403 Added AccountType method numberAndName().
Fixed bug in bookings.index view: There is no error anymore when a booking has
no project assigned.
2018-10-04 19:53:59 +02:00
Lukas Halbritter cc203f36c7 Added some helpers for date string formatting. 2018-10-01 17:17:41 +02:00
Lukas Halbritter e9077193af Implemented eager loading for the people show view. 2018-10-01 09:58:04 +02:00
Lukas Halbritter 8f865e9bff Added helper methods for first and last day of month.
Sub-bookings are now showed in the bookings index view.
2018-10-01 09:56:55 +02:00
Lukas Halbritter 3f6fe26ff0 Optimized (sub-)booking methods and index view for eager loading. 2018-09-30 21:38:25 +02:00
Lukas Halbritter cc95c4b595 Added bookings controller and index view. 2018-09-28 22:47:35 +02:00
Lukas Halbritter 3b09645b5b Added the functions to get the models connected with the booking. 2018-09-28 22:45:32 +02:00
Lukas Halbritter 530ced47b2 Added the following functions to SubBooking:
Query scopes:
    interval($start, $end)
    joinBookings()
    withSignedAmount()
    joinAccountBranch()
  Sum functions:
    balanceAt($date)
    expedituresInInterval($start, $end, $group)
    incomesInInterval($start, $end, $group)
    cashFlowInInterval($start, $end, $type, $group)
2018-09-28 22:37:53 +02:00
Lukas Halbritter a8aa43e28c Swapped order in use directives. 2018-09-28 22:36:41 +02:00
Lukas Halbritter e00e15ef62 Member state in the PeopeController update method is initialized as new model,
if there is no corresponding member state in the database.
2018-09-26 10:40:00 +02:00
Lukas Halbritter 377230ef73 Implemented deletion and creation of people. 2018-09-25 15:24:31 +02:00
Lukas Halbritter 89a86771b4 Made Person mass assignable.
Added an isEven() function to check, if the person has any open targets.
2018-09-25 15:07:33 +02:00
Lukas Halbritter c3ea32f228 Added all prototypes to the PeopleController.
NOT ALL OF THEM ARE IMPLEMENTED, YET!
2018-09-24 18:51:49 +02:00
Lukas Halbritter c9bc400308 Added isPaid() method to PersonTarget model. 2018-09-20 16:48:16 +02:00
Lukas Halbritter c8fcb4c959 Added AccountType methods to get all types which are expediture or income. 2018-09-20 16:45:00 +02:00
Lukas Halbritter f2a12d40d7 Added a signedAmount() function to the SubBooking model. 2018-09-19 22:25:18 +02:00
Lukas Halbritter 020c1c50d8 Added a bunch of new functions to the PersonTarget model, mainly to get filtered
model collections from the database.
2018-09-19 22:22:54 +02:00
Lukas Halbritter ac080eb485 Added some basic methods to the models to get roperties from related models or
the related models themselfes.
2018-09-14 11:27:08 +02:00
Lukas Halbritter 47569b0525 Adde 'fullName' method to the Person model to achieve the full name as string. 2018-09-13 15:57:40 +02:00
Lukas Halbritter 1b10f45a7d Added helper function 'formatAmount' to auto format floats top german format. 2018-09-13 15:55:42 +02:00
goldnead e54a0008a9 Merge branch 'people' of ssh://halbi.ddnss.de:2122/media/raid/repositories/pollux into people 2018-09-12 11:43:11 +02:00
Lukas Halbritter fcc59f16ae Added helper function file and updated composer.json accordingly. 2018-09-12 11:07:42 +02:00
vagrant 4154c68111 added member-state seeds without checking for birthdates 2018-09-11 22:23:46 +00:00
Lukas Halbritter 5ec117e1af Changed functions in Person model such that they return a Relation instead of an
Eloquent collection and adjusted the PersonController accordingly.
2018-09-11 17:11:46 +02:00
Lukas Halbritter ecd6fda352 Added show function to the PeopleController. 2018-09-09 10:03:29 +02:00
Lukas Halbritter 0608094039 Added views for indexing all people and showing a single one.
Added a method to get all (sub-)bookings associated with a person-target.
2018-09-09 10:01:37 +02:00
Lukas Halbritter 50acdbd71e Added functions to get targets an actuals of a person. 2018-09-09 09:58:52 +02:00
Lukas Halbritter cbaa9b9174 Added function to get the date of a sub-booking. 2018-09-09 09:56:08 +02:00
Lukas Halbritter cdba55315d Added a PeopleController.
Added a basic route to the index page of all people.
Added views and controller for this purpose.
2018-09-07 22:50:36 +02:00
Lukas Halbritter 0d44875eb3 Added functions to get information about:
- active time of a member
  - state of a member
  - joining date of a member
... and a method to fetch all active people.
2018-09-07 22:47:38 +02:00
Lukas Halbritter b01762fdfb Added sub-bookings model and migration. 2018-09-07 14:06:29 +02:00
Lukas Halbritter 524378dcae Added account types model and migration. 2018-09-07 12:26:52 +02:00
Lukas Halbritter 3cf3075292 Added bookings migration and model. 2018-09-07 12:20:43 +02:00
Lukas Halbritter d00b21fa0d Added member state migration and model. 2018-09-07 10:41:16 +02:00
Lukas Halbritter f62a100376 Added account_classes migration and model. 2018-09-07 10:35:38 +02:00
Lukas Halbritter 105c04865c Added empty scope model 2018-09-07 10:34:31 +02:00
Lukas Halbritter cc111ca2ed Added IO_type migration.
Changed person_targets migration to use a foreign key to the io_types table
instead of an enum.
2018-09-07 10:15:07 +02:00
Lukas Halbritter acca76f814 Added migration for projects table. 2018-09-03 17:02:30 +02:00
Lukas Halbritter 18e27144e7 Added person_target migration. 2018-09-03 15:24:07 +02:00
Lukas Halbritter 3fc303e815 Added people migration. 2018-09-03 11:15:44 +02:00
Lukas Halbritter 8d09512669 Initial commit. Just a fresh laravel install. 2018-09-02 18:46:37 +02:00