Commit graph

15 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
Andrew Dickinson
55419ab94b
Add .idea/ folder to gitignore (#585) 2020-04-26 14:22:21 +02:00
Rémy HUBSCHER
6129191b26
Fix sqlite only migration. (#579) 2020-04-25 11:55:46 +02:00
Nicolas Vanvyve
9aa7e62d0f Import previously exported json data (#518)
Fix #417 

* New tab upload

* Extract data from JSON

* Add users

* Black format

* Try to add bill

* Import bills

* Add french translation msg

* Black reformat missing

* Deactivated users are supported

* Test import

* Remove temp file in upload_json()

* Incomplete tests

* tests import

* Update ihatemoney/translations/fr/LC_MESSAGES/messages.po

Co-Authored-By: Rémy HUBSCHER <hubscher.remy@gmail.com>

* Remove useless variable and check json format

* Use String.IO and test for wrong json

* Remove coma

Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
2020-01-13 21:17:55 +01:00
a5f54bb47e Enhance pytest support, update ProxyFix import. 2019-10-11 20:52:05 +02:00
74c51be5a3 Fix #434 Use the debts lib to solve settlements. 2019-09-24 21:25:06 +02:00
0livd
75104d9c19 Add python 3.6 support (#259)
Closes #253
2017-08-20 12:21:59 +02:00
42c9af528f Add tox support. 2017-03-28 17:50:11 +02:00
08a4935566 Update the README with makefile changes 2017-03-28 17:49:22 +02:00
3953b70c03 Update the .gitignore file 2017-03-28 17:41:34 +02:00
b3e7925d66 Add a setup.py file 2017-03-21 16:33:13 +01:00
97132ce88a Fix some problems related to postgresql and models 2011-10-13 21:27:56 +02:00
Arnaud Bos
89e1bbe134 Make the identifier clearer to the end-user.
- Send an email to the user with the summary of the created project
  containing a reminder of the identifier, password and a link.

- Add flash message with the identifier in the /invite page/

- Add a small note containing the identifier in the upper right corner
  of the project main page.
2011-09-14 01:16:25 +02:00
Arnaud Bos
f48fc22335 Edit .gitignore 2011-09-10 00:48:20 +02:00
3bbc3343a2 add a gitignore file 2011-07-30 15:49:12 +02:00