
Sign in with LDAP credentials over Keycloak and select your preferred meals on landing page.
You need to be signed in with LDAP credentials and you will see small share icon on each day in a week. You can send your guest the link and he will be able to enroll for particular day giving his First/Last name and Company information.
Click on your balance. Now you get your Balance from the last day of the last month and a overview of all transaction in the current month.
In your transaction history you also can pay your debts with PayPal.
Admin has access to all user features as well.
Route: /menu Available at: Choose "Menu" in admin navigation bar. Actions: Create new week and edit existing ones.
Description: List of current and upcoming weeks. Already created / edited weeks are green. Weeks which haven't been created yet, are displayed with a grey background color.
Route: /menu/{YYYY}W{KW}/new oder /menu/{week-id}/edit Available at: Choose "Menu" in admin navigation bar and click on one of the listed weeks. Actions: Disable whole week or some days.
Description: Here you can select the desired dishes for the selected week. Additionally you can disable some days or the whole week in case of (public) holiday.
Route: /dish Available at: Choose "Dishes" in admin navigation bar. Actions Add variation, Create, edit and delete dishes
Route: /dish Available at: Choose "Dishes" in admin navigation bar. Actions Add variation, edit and delete dishes
Description: Lists all existing variations for particular dishes. You can edit and delete them. If you click on "ADD VARIATION" you can add new variation to some Dish.
Route: /category Available at: Choose "Categories" in admin navigation bar. Actions: Create, edit and delete categories
Description: Lists all existing (dish) categories. You can edit and delete them. If you click on "CREATE CATEGORY" you can create a new one.
Route: /print/costsheet Available at: Choose "Costs" in admin navigation bar. Actions: Book transaction for user, "CASH REGISTER" (Accounting book)
Description: Lists all users and their outstanding debts. Debts are structured in 6 different columns: Total, current month (all debts in this month till current day), one column for each of the last three month, all debts before the last three month summed up in one column. Additionally you can add a transaction (positive or negative) to a users profile, by clicking on the plus sign. Also you can request an account settlement if an employee leaves. You can find the 3 dots button right beside the add transaction icon. You can only settle accounts with a positive amount of money. The log for account settlements is in the app/logs Folder.
Route: /accounting/book Available at: Choose "Costs" in admin navigation bar. Click on button "CASH REGISTER".
Description: Lists all transactions booked for users in the last month.
Finance has access to all user features and the finance tab.
Route: /accounting/book/finance/list Available at: Choose "Finace" in finance navigation bar. Actions Select Date to list all transaction and export as pdf.
We're using ddev for local development. ddev is a CLI tool which uses Docker to simplify local development. Please make sure that ddev, mkcert and docker are installed and run the following to get started:
ddev start
Point your webbrowser to https://meals.test :tada:
Don't forget to add to your local hosts file if not done automatically via ddev: 127.0.0.1 meals.test
# get into the container
ddev ssh
# change directory
cd app/Resources
# build production assets
yarn build
# stylelint for SASS files
ddev ssh
cd /var/www/html/app/Resources
yarn lint-sass
ddev ssh
php app/console doctrine:schema:update --force
php app/console doctrine:schema:update --force --env=dev
The following roles are in use:
To load up some test data, run
php app/console doctrine:fixtures:load --env=dev
It generates dishes, meals and users.
You can use "john", "jane, "alice" and "bob" to login. Their password is just their username. The User "kochomi" is allowed to modify dishes and edit meals.
Some tests require a working database. The database dedicated for running tests can be configured by setting
the database name in app/config/parameters.yml as database_name_testing. Credentials should be the same
as for the dev environment.
Before running phpunit make sure the database schema is up-to-date:
sudo -i
mysql
> CREATE USER 'mealz_test'@'localhost' IDENTIFIED BY 'mealz_test';
> CREATE DATABASE mealz_test;
> GRANT ALL PRIVILEGES ON mealz_test.* TO 'mealz_test'@'localhost';
php app/console doctrine:schema:update --env=test --force
bin/phpunit -c app/config/commons/development/phpunit.xml
Notes:
Content type
Image
Digest
sha256:04b7610a6…
Size
115.8 MB
Last updated
8 days ago
docker pull aoepeople/meals