Commit graph

7 commits

Author SHA1 Message Date
Sungho Cho
c6ace4f710 This work is from the previous pr, I have merged it all together so its
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>
2020-04-27 23:49:07 +01:00
Rémy HUBSCHER
7587e292fb
Remove obsolete python code (<3.6). (#571) 2020-04-24 12:32:52 +02:00
Rémy HUBSCHER
53dae96bdb
Pin WTForms 2.2.1 2020-04-23 10:22:50 +02:00
Rémy HUBSCHER
299c64a48c
Add isort support. (#561) 2020-04-21 13:59:41 +02:00
Rémy HUBSCHER
5d3266873e
Update known working set. (#558)
* Update known working set.

* Pin dependencies in setup.cfg.

* Cleanup Makefile.

* Try the python_version trick.
2020-04-21 10:30:13 +02:00
Andrew Dickinson
026a072235
Add Project History Page (#553)
Co-Authored-By: Glandos <bugs-github@antipoul.fr>

All project activity can be tracked, using SQLAlchemy-continuum.
IP addresses can optionally be recorded.
2020-04-20 15:30:27 +02:00
480939afe5 Remove support for python2.
In the same move :
- use a setup.cfg file for packaging
- remove the use of six
2019-10-11 19:52:37 +02:00