Commit graph

64 commits

Author SHA1 Message Date
Romain Bignon
6fcac89dd5 first step in python3 support 2014-05-17 14:27:55 +02:00
Romain Bignon
6099560b8c change currencies integer constants to ISO code strings 2014-02-16 19:48:17 +01:00
Romain Bignon
5b03648b68 add Account.TYPE_CARD 2014-02-02 10:50:01 +01:00
Simon Murail
790a685b2d Patch de la capability bank: ajout d'un type pour les dépôts d'espèces
Ci-joint le patch.

Cordialement,
Simon

From a31841ccf4467acf8453d80cee8ff948e5daeb96 Mon Sep 17 00:00:00 2001
From: smurail <simon.murail@budget-insight.com>
Date: Thu, 21 Nov 2013 13:37:24 +0100
Subject: [PATCH 1/1] add TYPE_CASH_DEPOSIT to Transaction

Signed-off-by: smurail <simon.murail@budget-insight.com>
2013-11-21 13:56:38 +01:00
Romain Bignon
cd0f61d078 use raw label to calculate unique_id 2013-11-15 15:46:44 +01:00
Romain Bignon
b8a154ac57 add Invstment in __all__ 2013-08-03 22:10:54 +02:00
Romain Bignon
9df4fd37be use repr() to prevent encoding issues 2013-08-03 13:20:22 +02:00
Romain Bignon
e2a67a954a Recipient inherits from Currency 2013-08-02 12:53:27 +02:00
Romain Bignon
c452b2b0aa typo 2013-08-01 14:42:24 +02:00
Florent
31800effcf Remove unused import 2013-07-30 10:36:58 +02:00
Florent
4d5b84a2a8 Move Currency from ICapBank to ICapBase 2013-07-30 10:35:25 +02:00
Laurent Bachelier
c47548caa2 CapBank: More help for date fields, introduce vdate 2013-07-29 18:16:28 +02:00
Romain Bignon
745b5fbd1b add method to convert currency value to text 2013-07-27 14:27:04 +02:00
Noé Rubinstein
4502b9b015 capabilities.bank: add Transaction.unique_id 2013-07-26 22:56:09 +02:00
Florent Fourcot
94830f7510 Add a code string for stocks 2013-07-08 21:36:35 +02:00
Florent Fourcot
17ddb8a57b Add Investment objects and iter_investment in ICapBank 2013-07-08 21:23:06 +02:00
Laurent Bachelier
7094931c92 Easy spacing fixes, trailing stuff
Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
2013-03-16 00:54:55 +01:00
Laurent Bachelier
d1fcd6c153 Fix repr() on transactions with unicode labels
repr only wants str.
2013-02-05 16:32:18 +01:00
Laurent Bachelier
81e3da8bb0 More robust currency guessing
This allows to parse PayPal balances which includes both symbol and letters, for
instance "$ 42,00 USD".
Also, it does not require adding any new symbols to the regular
expression.
It might break modules, though numerous cases were tested.
2013-02-05 16:32:17 +01:00
Romain Bignon
922bf1d465 currency detection is now case insensitive 2013-01-03 18:04:06 +01:00
Romain Bignon
d91dad2b2b support currencies 2012-12-06 13:21:13 +01:00
Florent
8091d9042a Add "reason" field to Transfer 2012-09-27 13:14:03 +02:00
Romain Bignon
aea269e9f6 create UserError exception
Modules can raise this exception when they want to print errors to user
2012-04-25 13:43:52 +02:00
Romain Bignon
b157e92d5b use decimal.Decimal instead of float to store amounts of money 2012-03-29 16:31:18 +02:00
Romain Bignon
c6a141595c change way to describe fields of CapBaseObject, and lot of documentation 2012-03-26 14:35:54 +02:00
Romain Bignon
e6d5fd019f add a field 'rdate' to store date of payment 2012-03-22 16:33:05 +01:00
Romain Bignon
1e000acf3a remove unused imports 2012-03-13 22:45:39 +01:00
Laurent Bachelier
1430b40bc5 Fix some collecton validation
And add restrict_level helper method.
2012-03-13 22:08:46 +01:00
Laurent Bachelier
42a1fee141 Fix account types and add account types support to bnporc, for the account types I could get.
Types were taken from KMyMoney, which is for personal tracking, however
some types had no use (cash not something the bank can provide,
maybe credit card but it is usually the "coming" field for us).
Sources: https://en.wikipedia.org/wiki/Bank_account (but not focused on
personal banking) and it's French translation which was more interesting.
Other websites for American and Australian banking almost always mentioned three
accounts: checking/current, savings/deposits, term/fixed deposits.

And some code refactoring.
2012-03-11 01:33:20 +01:00
Romain Bignon
008bf57264 add field Account.type 2012-03-10 09:04:46 +01:00
Romain Bignon
be14595308 apply changes to ICapBank API 2012-02-26 18:30:40 +01:00
Romain Bignon
b8d05430ec add a 'type' field on Transaction object 2012-02-26 15:05:04 +01:00
Laurent Bachelier
bfb3689456 Add object type filtering to iter_resources 2012-02-05 13:30:02 +01:00
Laurent Bachelier
682e14c86a Make CapCollection understandable and useable by humans
* Make the declaration of fct and it in the constructor Collection,
 instead of adding them from the outside
* Add a function to flatten a list containing collection (solves the
 radioob search crash)
* Better display of collections in the "ls" command (and display both id
 and title)
* The "cd" command goes to the root of the path (like the UNIX cd)
* Move the Video object of canalplus in a correct path
* Make Collection iterable
* Add comments to CapCollection
* Cache the result of fct in a Collection; it is only called once
* CollectionNotFound errors can be more explicit by providing a path
* Require utf-8 in collection paths
* Code cleanups
2012-02-02 23:44:13 +01:00
Laurent Bachelier
a19b1be338 The past participle of split is "split", not "splitted" 2012-02-02 14:26:35 +01:00
Romain Bignon
51f8efc41d display the 'N' entry only when available 2011-09-09 09:54:07 +02:00
ffourcot
9d900578a3 Add a new field to Operations to permit a better export to qif
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2011-09-08 17:58:47 +02:00
Romain Bignon
7b29d2dc80 CapBank derivates from CapCollection and add a method iter_transfer_recipients 2011-05-07 14:22:54 +02:00
Romain Bignon
7e2bb91b3b change license to AGPLv3+ 2011-04-08 12:48:07 +02:00
juke
9fb8b150f2 line too long 2011-02-10 17:15:13 +01:00
Romain Bignon
0278af175f use datetime.date objects and transform coming labels 2010-12-27 18:28:24 +01:00
Romain Bignon
a23c2d159a fix print of Account objects 2010-11-14 14:12:23 +01:00
Romain Bignon
3860f87f76 return a Transfer object insetad of only an ID 2010-10-31 10:26:06 +01:00
Romain Bignon
3e643ef7ab use 'table' as default formatter in boobank 2010-10-16 18:59:45 +02:00
Romain Bignon
916400467e use "basestring" instead of "(str,unicode)" 2010-10-16 17:44:09 +02:00
Romain Bignon
cc541cc64a pyflakes fixes 2010-10-08 13:52:56 +02:00
Romain Bignon
92c6507f71 use the new add_field() method to define fields 2010-10-08 13:43:57 +02:00
Nicolas Duhamel
935531c5ae Return transfer id Prevent when the two accounts aren't on the same backend
Signed-off-by: Nicolas Duhamel <nicolas@jombi.fr>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2010-09-28 22:27:40 +02:00
Nicolas Duhamel
81706f23ad Add a transfer capability and implante it in bp and boobank
Make a transfer in boobank like that:

>transfer fromaccountid toaccoundid amount

Signed-off-by: Nicolas Duhamel <nicolas@jombi.fr>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
2010-09-24 18:05:32 +02:00
Romain Bignon
aaffdbf8d6 fix: the operation's label might be unicode (reported by blino) 2010-08-26 17:54:39 +02:00