Commit Graph
88 Commits
Author SHA1 Message Date
Lukas Halbritter 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.
2018-09-28 22:42:51 +02:00
Lukas Halbritter 2ecf78c53d Added routes for the booking pages. 2018-09-28 22:41:57 +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 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.
2018-09-28 22:32:40 +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 8512dc28b6 Added title to the people.show view. 2018-09-26 10:38:06 +02:00
Lukas Halbritter 377230ef73 Implemented deletion and creation of people. 2018-09-25 15:24:31 +02:00
Lukas Halbritter 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.

Before showing the delete confirmation dialog, it is checked, if there is any
open target.
2018-09-25 15:20:19 +02:00
Lukas Halbritter 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.
2018-09-25 15:17:52 +02:00
Lukas Halbritter bacb3a2738 Added subnav section in master layout. 2018-09-25 15:17:32 +02:00
Lukas Halbritter 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.
2018-09-25 15:11:25 +02:00
Lukas Halbritter d71ceb1c77 Added delete link in the people index. 2018-09-25 15:10:12 +02:00
Lukas Halbritter eef1ecca6b Embedded people show view into the master layout. 2018-09-25 15:09:26 +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 110c82c376 Run composer update. 2018-09-25 15:07:01 +02:00
Lukas Halbritter 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.
2018-09-25 15:05:03 +02:00
Lukas Halbritter 81cc32db29 Added a layout for the people create/edit form.
Implemented the edit view for people.
2018-09-24 18:54:34 +02:00
Lukas Halbritter 9f11eddc79 Added the link to edit people in the people index view. 2018-09-24 18:53:19 +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 f86ce156f9 Added all routes for the people. 2018-09-24 18:50:29 +02:00
Lukas Halbritter f201a98e6e Added the Form and HTML package by the Laravel Collective. 2018-09-24 18:49:24 +02:00
Lukas Halbritter c82cc4ed2d Added a very basic layout structure. 2018-09-24 14:08:08 +02:00
Lukas Halbritter ecd815e182 The account of a person now shows the sub-bookings which belong to a target. 2018-09-20 16:49:33 +02:00
Lukas Halbritter b38d7ea54e Added factory and seeder for sub-bookings. 2018-09-20 16:48:56 +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 11775170d6 Fixed typo 2018-09-14 11:26:44 +02:00
Lukas Halbritter 204e7527bd Added seeders for members-states and person targets. 2018-09-14 09:53:01 +02:00
Lukas Halbritter ed702a0398 Added member state section to the people.show view.
Updated account section of the same view.
2018-09-13 16:27:20 +02:00
Lukas Halbritter f394ed773b Changed foreign key id field name in person_targets and account_classes from
'io_type' to 'io_type_id'.

Implemented PersonTarget factory.
2018-09-13 16:04:40 +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
Lukas Halbritter 562cbe6b9a Merge branch 'people' of ssh://halbi.ddnss.de:2122/media/raid/repositories/pollux into people 2018-09-12 11:57:23 +02:00
Lukas Halbritter b66aaa9566 Added some seeders. 2018-09-12 11:57:04 +02:00
Lukas Halbritter 15c32209b2 Added model factories for the remaining models. 2018-09-12 11:56:28 +02:00
Lukas Halbritter fcc59f16ae Added helper function file and updated composer.json accordingly. 2018-09-12 11:07:42 +02:00
Lukas Halbritter 6ff2da68ed The PersonFactory is now using factory states to decide if male, female or
company.
2018-09-12 10:23:09 +02:00
Lukas Halbritter da2dfc1701 Commented out the member states section in the people table seeder to please
Adrian ;-)
2018-09-11 21:30:09 +02:00
Lukas Halbritter 1a71c405fb Added empty MemberState factory.
Don't forget to use states in the Person factory.
2018-09-11 18:30:45 +02:00
Lukas Halbritter c8c9f528f0 Updated ER-model pdf. 2018-09-11 18:10:31 +02: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 003ff1435a Added person factory.
Fixed missing comma in TestProjectsTableSeeder.
2018-09-11 15:51:45 +02:00
Lukas Halbritter cb653c795a Edited fields of people table in the ER-diagram. 2018-09-11 15:47:41 +02:00
Lukas Halbritter 1f44202faf Added seeds for projects table. 2018-09-11 11:40:17 +02:00
Lukas Halbritter 9d55db30e7 Fixed some typos in the database concept (mainly wrong table names). 2018-09-11 11:07:16 +02:00
Lukas Halbritter f59ee5247a Added some test persons and member-states to the seeders. 2018-09-11 11:04:57 +02:00
Lukas Halbritter 3860b5b187 Fixed typo. 2018-09-11 10:55:58 +02:00
Lukas Halbritter cceec0a6bb Completed seeder for the account types table. 2018-09-11 10:53:06 +02:00
Lukas Halbritter 276e617b62 Added seeder for account types and account classes. 2018-09-10 12:33:20 +02:00
Lukas Halbritter 5bdb4bf502 Changed scope column name to scope_id in table account_classes. 2018-09-10 12:01:19 +02:00
Lukas Halbritter 965d40c178 Added number column to account classes table. 2018-09-10 11:59:33 +02:00
Lukas Halbritter 7008b54f2c Added seeders and seeder folder structure. 2018-09-10 11:36:51 +02:00
Lukas Halbritter dd184c227f Changed io_type to i_o_type in the foreign key definitions of person targets
and account classes.
2018-09-09 11:55:56 +02:00
Lukas Halbritter a4e4025cd4 Set default for the birthday of a person to null. 2018-09-09 11:52:50 +02:00
Lukas Halbritter cb0cfacced Removed merged files from last commit. 2018-09-09 11:46:42 +02:00
Lukas Halbritter ab3339bc0e Merged migration files. 2018-09-09 11:44:00 +02:00
Lukas Halbritter c44ae86dc9 Merge branch 'dev' into people 2018-09-09 10:57:19 +02:00
Lukas Halbritter 39cff71700 Merge branch 'migrations' into dev 2018-09-09 10:56:50 +02:00
Lukas Halbritter 3c772423bb Added factor field ot i_o_types table.
Added seeders for i_o_types and scopes tables.
2018-09-09 10:55:32 +02:00
Lukas Halbritter bef4571b99 Changed table name 'io_types' to 'i_o_types'.
Changed field name 'type' to 'name' in i_o_types table.
2018-09-09 10:05:35 +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 fe50b6eb85 Added swap files to .gitignore. 2018-09-08 12:24:17 +02:00
Lukas Halbritter 291e227a2a Made notes column in table bookings nullable. 2018-09-08 12:22:37 +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 3d8681ecf8 Changed migration order to avoid creating foreign keys to tables which do not
exist.
2018-09-07 12:12:34 +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 eb820c58b2 Added scope migration and vertice in the model diagram. 2018-09-07 10:33:02 +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 9a1983d42f Solved rollback problem in create_people_table (foreign key problem). 2018-09-04 00:29:32 +02:00
Lukas Halbritter acca76f814 Added migration for projects table. 2018-09-03 17:02:30 +02:00
Lukas Halbritter f03e7511f2 Added io_types to the ER-model and changed some mistakes in the diagram. 2018-09-03 15:31:45 +02:00
Lukas Halbritter 18e27144e7 Added person_target migration. 2018-09-03 15:24:07 +02:00
Lukas Halbritter 286fea3c1d Added ER-model of the database structure. 2018-09-03 15:03:50 +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