aboutsummaryrefslogtreecommitdiff
path: root/budget
AgeCommit message (Collapse)AuthorFilesLines
2017-01-16Merge pull request #164 from zorun/fix_zero_transfersAlexis Metaireau4-8/+48
Fix zero-amount transfers and other rounding issues
2017-01-03Workaround rounding issues when displaying balance of usersBaptiste Jonglez2-6/+6
A user with a "0.00" balance would have either a "+0.00" in green or a "-0.00" in red, depending on the exact value of the floating-point value. Fix this by simply rounding to 2 digits before comparing to zero.
2017-01-03Prevent transfers with a zero amount in the settle pageBaptiste Jonglez1-2/+2
This workarounds a rounding issue caused by the (incorrect) usage of floats for bill amounts. This fixes #138
2017-01-03Add a test to catch zero-amount transfers in the settle pageBaptiste Jonglez1-0/+40
2017-01-02Sort bills by (date.desc, ID.desc) instead of just date.descBaptiste Jonglez1-1/+2
When viewing the list of bills, bills are (correctly) sorted by date. But the order of all bills for a given day is not intuitive: I would expect bills to be sorted by reverse order of insertion. That is, the last bill to be added for a given day should appear first, not last. Otherwise, when adding several bills in a row for a given day, it's confusing to see that the new bills do not appear on top of the list. Fix this by sorting by decreasing ID after sorting by date.
2016-09-12Merge pull request #150 from fredericsureau/negative-amountsAlexis Metaireau2-6/+2
Allow negative bill amounts
2016-09-12Update negative amounts testfredericsureau1-3/+1
2016-09-12Allow negative bill amountsfredericsureau1-3/+1
2016-06-28Convert readthedocs links for their .org -> .io migration for hosted projectsAdam Chainz1-1/+1
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard. Test Plan: Manually visited all the links I’ve modified.
2016-06-18Fix migrations upgrade path for MySQLJocelyn Delande1-1/+15
For some reason, the migration path from unmanaged db (from alembic point-of-view) to managed db, through the initial migration works well with sqlite… But not with mysql where the db system tries to re-create the existing tables. This commit is a way to detect if we are migrating from pre-alembic era and skip the first migration (which would do nothing anyway), marking it as already executed. It's quite hackish but that's the best I found so far to get it working with both MySQL and SQLite.
2016-06-16Update translationJocelyn Delande2-1/+4
2016-06-16Add migration to initialize Person weightsJocelyn Delande1-0/+39
That's for Persons that existed before the weights were added to model.
2016-06-16Hide the member weights in members list if all weights are "1".Jocelyn Delande4-1/+31
2016-06-16Added member edit formJocelyn Delande6-6/+60
2016-06-15display an edit button on members listJocelyn Delande2-1/+9
2016-06-15Ask for confirmation only for deleting usersJocelyn Delande1-1/+5
2016-06-15Added a template filter not to show zero decimals on user weightsJocelyn Delande3-1/+20
2016-06-15UI for showing user weights in user listJocelyn Delande2-1/+5
2016-06-15Added member weights support to APIJocelyn Delande2-8/+68
2016-06-15Add members weight in models and budget backend refs #94Jocelyn Delande4-3/+64
2016-05-31Add a manage.py CLI (flask_script)Jocelyn Delande1-0/+16
As it's the Flask-Migrate way to expose its commands (./manage.py db command). In our case, it's specially useful for creating new migrations.
2016-05-31Handle migrations through alembic/flask-MigrationsJocelyn Delande7-1/+230
Auto-initialization now applies migrations instead of using db. create_all() fix #83
2016-04-03Do not load user-overriden settings in unit tests.Jocelyn Delande4-7/+16
Loading not versioned settings.py during tests make them less predictable. That's inspired from django behaviour with DJANGO_SETTING_MODULE environment variable.
2015-11-09Merge pull request #122 from JocelynDelalande/configurable-prefixAlexis Metaireau4-13/+68
Made an URL prefix configurable in settings
2015-09-25Prevent comma to be included in URLMathieu Leplatre1-1/+1
2015-09-25Prevent comma to be included in URLMathieu Leplatre1-1/+1
2015-08-20Merge pull request #130 from JocelynDelalande/trailing-whitespacesQuentin Roy9-16/+16
Remove trailing whitespaces
2015-08-20Remove trailing whitespacesJocelyn Delande9-16/+16
2015-08-19Made an URL prefix configurable in settings, includes tests.Jocelyn Delande4-1/+49
2015-08-19Adds a way to (re)configure the running app, reloading settings.Jocelyn Delande1-12/+19
Currently, there is no way to reset settings after modifying them, which is anoying for tests.
2015-07-05Bugfix rounding settle algorithmAlexandre Avenel1-1/+1
In some cases, settle algorithm failed to deliver optimal solution due to a rounding bug.
2015-05-20Merge pull request #121 from JocelynDelalande/deprecated-default-mail-senderAlexis Metaireau3-2/+16
nicely deprecates DEFAULT_MAIL_SENDER
2015-05-01specified sizes for string columns for MySQLJocelyn Delande1-5/+5
2015-04-30nicely deprecates DEFAULT_MAIL_SENDER as it changed upstream for flask-mail>=0.8Jocelyn Delande3-2/+16
2015-04-15Merge pull request #119 from aavenel/fix-118Alexis Metaireau1-1/+1
Fix 118
2015-04-12Fix #118 : Create a new project with the name "dashboard" should raise an ↵Alexandre Avenel1-1/+1
exception
2014-07-22Format numbers in templatesAlexandre Avenel3-4/+4
2014-07-21Fix rounding error in balancesAlexandre Avenel1-1/+1
2013-10-17Merge pull request #106 from aavenel/bugfix105Alexis Metaireau2-1/+13
Bugfix #105 : TypeError: object of type 'NoneType' has no len()
2013-10-17Merge pull request #114 from aavenel/bugfix104Alexis Metaireau1-1/+4
bugfix #104 : ZeroDivisionError
2013-10-13Fix translation for password tooltipA.Avenel4-13/+13
- Javascript don't like non-escaped character - fix typo
2013-10-13Fix translation for password tooltipA.Avenel4-13/+13
- Javascript don't like non-escaped character - fix typo
2013-10-12bugfix #104 : ZeroDivisionErrorA.Avenel1-1/+4
- test if self.owers is null before returning value
2013-10-12Add unit-test for bug #105.A.Avenel2-4/+11
Small code refactoring for better readability
2013-08-23ihatemoney does not start anymore with flask-wtf 0.9: limit flask-wtf to ↵Quentin1-1/+1
version 0.8 in requirements.txt
2013-06-23Bugfix : error when you access /authenticate url without a project identifierA.Avenel1-1/+6
2013-05-09Merge pull request #96 from aavenel/masterAlexis Metaireau9-224/+460
New feature : Settle the bill
2013-05-09OptimizationA.Avenel1-4/+6
2013-05-09correct french translationA.Avenel3-243/+237
2013-04-08Bugfix#92 : error when deleting an userA.Avenel3-6/+16