possible to continue their fine work.
Add original currency and amount fields to Bill model
Add default currency to Project model
Add minor fix to String length
Reorganize the new migration file
Crete a migration file for Project.default_currency
Change models.py to have Project.default_currency
Added new fields to to_serialize()
Update bill view to display original currencies and original amounts
Minor change to new labels
Add new fields to tests
Include default_currency field in tests.py
Datafield entry in forms
adding a stray file
added requests to the requirements file
Added another exception for catching errors related to mail
Testing to find the issue
revert change
Adding a removed change to list_bills.html template
added currency conversion to the CurrencyConversion class
fixed typo in function name
Edit BillForm to have currency dropdown and convert functionality
Show currency dropdown in BillForm
Fix minor issues with BillForm task
Edit tests.py to include missing original_currency and amount fields
Fix failing tests
Fix other failing tests
Final fix to tests
Ran black on the project directory
Make small ammendments to tests
Temporarily set maxDiff as None
Fix test failure in test_export()
formatted util file so it could pass formatting tests
changed the structure of the table in the bill view to be more reader friendly, by adding the different curriencies in their respective columns
Cleaning up pr with comments from previous prs
Signed-off-by: dark0dave <dark0dave@mykolab.com>
Now caching respone for one day to ensure it is not call often
Signed-off-by: dark0dave <dark0dave@mykolab.com>
Updated migration and currency converter to help existing bills
Signed-off-by: dark0dave <dark0dave@mykolab.com>
Currently the string representation of a Bill is: "<amount> for <description>"
It is used in the History Page to describe changes that were applied to
Bills, for instance:
Bill "42.0 for Test" renamed to "Another Test"
This is inconsistent, not easy to read, and the "for" in the middle is not
translatable.
To solve this issue, simply switch the string representation of a bill to
its description.
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
* Direct Alembic to ignore the sqlite_sequence table
* Direct Alembic to ignore the sqlite_sequence table
* Fix "Skipping unsupported ALTER" warning on database migration
* Fix user-facing string and update translation catalog
In the flash message confirming member creation, change "member had been
added" into the correct form "member has been added".
No translation has been changed. Some translators seem to have already
spotted the mistake while translating, but I can't tell for all languages.
* Change "Person" to "Participant" in history view
Currently, the main user-facing term is "Participant", as seen for
instance in the "Add participant" form. "Person" is not used anywhere in
the interface.
See #302 for a more general discussion on choosing the right terminology.
* Fix obsolete translations.
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
* Reorganize "Contributing" documentation to be more accessible to new contributors
The following changes were done:
- move "How to contribute" first, and "Set up a dev environment" as the
second section. This way, a new contributor has access to the most
general information first, instead of the very specific "dev
environment" documentation.
- reduce "How to contribute" / "As a developer" by moving the part about
tests to a new "Contributing as a developer" section (see below). This
way, all types of contributions get roughly the same amount of text in
the first "How to contribute" section.
- add a new "Contributing as a developer" section, which lists items that
are useful when preparing a code contribution (running tests, formatting
code, create database migration). These items were moved either from
"How to contribute" or from "Set up a dev environment".
* Add brief documentation about updating and adding tests
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
According to https://hosted.weblate.org/projects/i-hate-money/i-hate-money/
these translations are almost complete (69% and 58% currently, but that's
because there have been lots of new strings to translate recently)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
Co-Authored-By: Glandos <bugs-github@antipoul.fr>
All project activity can be tracked, using SQLAlchemy-continuum.
IP addresses can optionally be recorded.
* Added DataTables for table sorting, pagination, and searching of bill_table for dashboard. Issue #112
* Moved datatables CSS/JS to dashboard to reduce loaded data throughout
* Moved link back to proper place, in head tab, but added if to prevent loading CSS/JS for datatables outside of the dashboard. Also added eye icon to drill into list_billa API to be more consistent with the look and feel of the overall site.
Co-authored-by: bmatt <bmatt@nuc01.attlocal.net>
* Align tables in statistics
The table in sidebar is now aligned with the one in content, to avoid
redundant informations.
All tables are back to normal on small devices.
* fix test
* run black on tests