8f865e9bff
Added helper methods for first and last day of month. Sub-bookings are now showed in the bookings index view.
Lukas Halbritter2018-10-01 09:56:55 +02:00
491a6f6153
Added iSeed generator to generate a seeder from the current database content.
Lukas Halbritter2018-09-30 21:50:04 +02:00
3f6fe26ff0
Optimized (sub-)booking methods and index view for eager loading.
Lukas Halbritter2018-09-30 21:38:25 +02:00
4566441d8c
The SubBooking factory now uses the abs() function to generate values, since amount is an absolute value and the sign is stored as property of the i_o_type.
Lukas Halbritter2018-09-28 22:42:51 +02:00
eb4e15670d
Made some layout changes: 1. Added loading time message as footer. 2. Added pollux logo as header. 3. Added bookings link in the main menu. 4. Set font type to sans serif.
Lukas Halbritter2018-09-28 22:32:40 +02:00
e00e15ef62
Member state in the PeopeController update method is initialized as new model, if there is no corresponding member state in the database.
Lukas Halbritter2018-09-26 10:40:00 +02:00
494c5cf47c
Set the foreign key person_targets->person_id from 'on delete restrict' to 'on delete cascade', since it should be possible to delete a person which is even and has paid all debts.
Lukas Halbritter2018-09-25 15:20:19 +02:00
1982ee0260
Removed method field from person edit file. The method is automatically fetched in the layout.form.person file by checking, if $person->id is null.
Lukas Halbritter2018-09-25 15:17:52 +02:00
39f0ca3c1c
Fixed some issues in the person form: 1. Added csrf field. 2. Added dropdown menue for the title. 3. Added an input for the date of birth. 4. Fixed the appearance of the member state edit section.
Lukas Halbritter2018-09-25 15:11:25 +02:00
89a86771b4
Made Person mass assignable. Added an isEven() function to check, if the person has any open targets.
Lukas Halbritter2018-09-25 15:07:33 +02:00
0be3623fb3
Re-sorted routes to avoid an 'page not found error'. The /people/create route was covered by the /people/{person} route. Since 'create' was assumed to be an person id, the page was not found.
Lukas Halbritter2018-09-25 15:05:03 +02:00
81cc32db29
Added a layout for the people create/edit form. Implemented the edit view for people.
Lukas Halbritter2018-09-24 18:54:34 +02:00
9f11eddc79
Added the link to edit people in the people index view.
Lukas Halbritter2018-09-24 18:53:19 +02:00
c3ea32f228
Added all prototypes to the PeopleController. NOT ALL OF THEM ARE IMPLEMENTED, YET!
Lukas Halbritter2018-09-24 18:51:49 +02:00
c8fcb4c959
Added AccountType methods to get all types which are expediture or income.
Lukas Halbritter2018-09-20 16:45:00 +02:00
f2a12d40d7
Added a signedAmount() function to the SubBooking model.
Lukas Halbritter2018-09-19 22:25:18 +02:00
020c1c50d8
Added a bunch of new functions to the PersonTarget model, mainly to get filtered model collections from the database.
Lukas Halbritter2018-09-19 22:22:54 +02:00
ac080eb485
Added some basic methods to the models to get roperties from related models or the related models themselfes.
Lukas Halbritter2018-09-14 11:27:08 +02:00
204e7527bd
Added seeders for members-states and person targets.
Lukas Halbritter2018-09-14 09:53:01 +02:00
ed702a0398
Added member state section to the people.show view. Updated account section of the same view.
Lukas Halbritter2018-09-13 16:27:20 +02:00
f394ed773b
Changed foreign key id field name in person_targets and account_classes from 'io_type' to 'io_type_id'.
Lukas Halbritter2018-09-13 16:04:40 +02:00
47569b0525
Adde 'fullName' method to the Person model to achieve the full name as string.
Lukas Halbritter2018-09-13 15:57:40 +02:00
1b10f45a7d
Added helper function 'formatAmount' to auto format floats top german format.
Lukas Halbritter2018-09-13 15:55:42 +02:00
562cbe6b9a
Merge branch 'people' of ssh://halbi.ddnss.de:2122/media/raid/repositories/pollux into people
Lukas Halbritter2018-09-12 11:57:23 +02:00
5ec117e1af
Changed functions in Person model such that they return a Relation instead of an Eloquent collection and adjusted the PersonController accordingly.
Lukas Halbritter2018-09-11 17:11:46 +02:00
003ff1435a
Added person factory. Fixed missing comma in TestProjectsTableSeeder.
Lukas Halbritter2018-09-11 15:51:45 +02:00
dd184c227f
Changed io_type to i_o_type in the foreign key definitions of person targets and account classes.
Lukas Halbritter2018-09-09 11:55:56 +02:00
3c772423bb
Added factor field ot i_o_types table. Added seeders for i_o_types and scopes tables.
Lukas Halbritter2018-09-09 10:55:32 +02:00
bef4571b99
Changed table name 'io_types' to 'i_o_types'. Changed field name 'type' to 'name' in i_o_types table.
Lukas Halbritter2018-09-09 10:05:35 +02:00
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.
Lukas Halbritter2018-09-09 10:01:37 +02:00
50acdbd71e
Added functions to get targets an actuals of a person.
Lukas Halbritter2018-09-09 09:58:52 +02:00
cdba55315d
Added a PeopleController. Added a basic route to the index page of all people. Added views and controller for this purpose.
Lukas Halbritter2018-09-07 22:50:36 +02:00
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.
Lukas Halbritter2018-09-07 22:47:38 +02:00
eb820c58b2
Added scope migration and vertice in the model diagram.
Lukas Halbritter2018-09-07 10:33:02 +02:00
cc111ca2ed
Added IO_type migration. Changed person_targets migration to use a foreign key to the io_types table instead of an enum.
Lukas Halbritter2018-09-07 10:15:07 +02:00
9a1983d42f
Solved rollback problem in create_people_table (foreign key problem).
Lukas Halbritter2018-09-04 00:29:32 +02:00