ihatemoney/ihatemoney/templates
TomRoussel 720f0e52dd
Adding bill types and automatic settling between people (#1290)
* Bill types added in Bill and Project Model, Implemented in BillForm
* import and export bill feature updated with bill type, tests modified to reflect the behavior
* eliminating unnecessary bill type
* typo fixed, test cases fixed for the current bill types
* button added
* settle button added
* new changes
* test cases added
* bchen-reimbursement
* tests for different bill types
* test cases fixed
* fixed reimbursement test case
* Replaced assertEqual with assert
* Fixed missing bill_type in unit tests
* Removed commented code
* Reverted unnecessary string edit
* Changed bill_type to an Enum
* Added test checking correct bill_type validation
* Fixed  billtype displaying in all caps
* Removed 'Transfer' bill type
* Added migration rule and set default bill_type in alembic
* bill_type is now an optional parameter in the BillForm
* Use enum name instead of value as SQL server_default

SQLAlchemy uses the Enum names in the database, as the values could be
generic python objects.
https://docs.sqlalchemy.org/en/20/core/type_basics.html#sqlalchemy.types.Enum

* Removed bill type from the Bills html table
* Replaced string bill type with enum
* Made "Settlement" translatable
* Manually handle the new Enum creation

Alembic does not handle postgres Enums correctly, so we need to manually
generate the new enum type.
See https://github.com/sqlalchemy/alembic/issues/278

---------

Co-authored-by: Ruitao Li <ruital@andrew.cmu.edu>
Co-authored-by: MelodyZhangYiqun <98992024+MelodyZhangYiqun@users.noreply.github.com>
Co-authored-by: Ruitao Li <49292515+FlowingCloudRTL@users.noreply.github.com>
Co-authored-by: MelodyZhangYiqun <yiqunz@andrew.cmu.edu>
Co-authored-by: Brandan Chen <bychen@andrew.cmu.edu>
Co-authored-by: Emilie Zhou <54161959+ez157@users.noreply.github.com>
Co-authored-by: Tom <tom.roussel@esat.kuleuven.be>
2024-03-16 12:20:48 +01:00
..
404.html Fix missing HTML tag (#583) 2020-04-25 14:03:40 +02:00
add_bill.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
add_member.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
admin.html Enhance the dashboard. (#262) 2017-09-04 15:44:20 +02:00
authenticate.html Rename all strings to "participants", clean old and small weird stuff (#871) 2021-11-01 18:25:57 +01:00
create_project.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
dashboard.html More consistent translations 2023-07-14 10:09:34 +02:00
display_errors.html Fix error escaping; (#388) 2018-09-03 20:52:48 +02:00
download_mobile_app.html Rename all strings to "participants", clean old and small weird stuff (#871) 2021-11-01 18:25:57 +01:00
edit_member.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
edit_project.html - factor confirm deletion between project and bill 2023-01-28 17:06:33 +01:00
forms.html Adding bill types and automatic settling between people (#1290) 2024-03-16 12:20:48 +01:00
helpers.js - factor confirm deletion between project and bill 2023-01-28 17:06:33 +01:00
history.html [History] Add details of bills in history 2023-10-01 23:57:47 +02:00
home.html use double quotes so that value that contains single quote is not a syntax error 2022-08-28 11:34:38 +02:00
invitation_mail.en.j2 Change token path authentication to /PROJECT/join/TOKEN (#843) 2021-10-13 22:00:38 +02:00
invitation_mail.fr.j2 Change token path authentication to /PROJECT/join/TOKEN (#843) 2021-10-13 22:00:38 +02:00
layout.html Fix 404 page crash 2023-07-28 17:20:32 +02:00
list_bills.html Simplifies adding a bill with keyboard only 2023-09-03 12:14:08 +02:00
password_reminder.en.j2 Include project code into project authentication token (#802) 2021-10-10 14:43:40 +02:00
password_reminder.fr.j2 Include project code into project authentication token (#802) 2021-10-10 14:43:40 +02:00
password_reminder.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
password_reminder_sent.html Move translations in template and translate link 2019-09-18 21:27:52 +02:00
project_feed.xml feat: project RSS feed. 2023-07-28 15:22:55 +02:00
recent_projects.html Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
reminder_mail.en.j2 Send an email when the project is created via the API. (#938) 2021-11-25 00:49:17 +01:00
reminder_mail.fr.j2 Send an email when the project is created via the API. (#938) 2021-11-25 00:49:17 +01:00
reset_password.html Use token based auth to reset passwords (#269) 2017-10-26 19:46:34 +02:00
send_invites.html Fix indentation of translation string 2023-07-29 14:28:20 +02:00
settle_bills.html Adding bill types and automatic settling between people (#1290) 2024-03-16 12:20:48 +01:00
showcase.html Fix : use url_for in showcase template. (#974) 2021-12-22 19:25:55 +01:00
sidebar_table_layout.html Rework flash messages (#943) 2021-12-01 22:42:20 +01:00
statistics.html Localize month names in the statistics view 2021-07-20 19:42:14 +02:00