Commit graph

47 commits

Author SHA1 Message Date
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
Romain Bignon
af08bd0eeb several fixes 2010-08-12 18:17:19 +02:00
Romain Bignon
d8a739f86f applying patch from Olf to add the 'history' command to boobank and backends (refs #373) 2010-08-12 18:17:19 +02:00
Romain Bignon
e980e040ba capabilities objets inherit from CapBaseObject (refs #369) 2010-08-12 17:22:04 +02:00
Christophe Benz
45ffb0fe7d s/ICap/IBaseCap and add constants 2010-08-12 16:04:53 +02:00
Christophe Benz
12234bfb52 fix other properties setters in bank 2010-07-14 17:14:52 +02:00
Romain Bignon
ca7d37e3cb renames 2010-07-13 18:47:31 +02:00
Romain Bignon
893bd3e70b fix boobank 2010-07-13 14:49:01 +02:00
Romain Bignon
0deef319f0 pyflakes fixes 2010-07-12 23:53:36 +02:00
Christophe Benz
fd2f534be9 move import to right file 2010-07-12 13:57:58 +02:00
Christophe Benz
470f2a9fe2 use real comments for licence header 2010-06-22 16:27:33 +02:00
Christophe Benz
af3ebade90 use properties for setters 2010-06-22 16:26:24 +02:00
Christophe Benz
40d5cc3e0e change Results API 2010-05-11 16:55:55 +02:00
Romain Bignon
56fea28640 split module loader in ModulesLoader and BackendsConfig classes 2010-04-06 21:17:51 +02:00
Romain Bignon
5d5d1ac0f7 new ICapBank capability 2010-04-04 16:50:26 +02:00