Commit Graph
18 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 27287d1165 Set clearing account when payment or group is set
issue9164
review303101006
2020-03-30 09:42:10 +02:00
Sebastien Marie e57f1677e8 Use the date of the statement as date for the clearing move
issue9030
review253031002
2020-03-20 19:10:30 +01:00
Sebastien Marie a749094ba4 Prevent calling succeed or fail with duplicate payments
issue9064
review266821003
2020-03-05 23:02:21 +01:00
Cédric Krier f1b03eb8b8 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:51 +01:00
Cédric Krier 68320be7c1 Group line per payment only if they have the attribute
The line can be a statement line or an origin which does not have a payment
field.

issue8606
review274001008
2019-09-28 23:17:31 +02:00
Cédric Krier febc431586 Add support for payment and payment_group on Statement Rule
issue7925
review45851002
2019-01-17 17:34:50 +01:00
Cédric Krier 6cc21ffed7 Add extras modules to ModuleTestCase
issue7935
review50661002
2019-01-17 17:22:22 +01:00
Sebastien Marie fa1e7dc8e3 Update payment_group field to use the company function field
It will read the value from statement and from origin (if statement is not
set), so both could work and let the user choose a payment_group.

issue7930
2018-12-22 06:34:33 +01:00
Cédric Krier dd32870e40 Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:03 +02:00
Cédric Krier 05de7d9ba4 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:43 +02:00
Cédric Krier 4402bd8dd8 Add cron task to post clearing move after journal delay
issue6895
review43691002
2018-01-12 12:59:50 +01:00
Cédric Krier 4019ace94c Fail payments base on the sign of the line amount
Bank sometimes credit the account for the payment group and debit later for the
individual failing payments.

issue5940
review29601002
2016-10-12 22:38:11 +02:00
Sergi Almacellas Abellana abe5c4d575 Mark payment as succeeded when imported in statement
issue5765
review22221002
2016-08-29 09:58:06 +02:00
Sergi Almacellas Abellana 58b5851b32 Use clearing account when the payment journal has a clearing account
This allows to suggest the clearing account when processing a payment that
does not have a clearing move but it will have when succeeded.

issue5814
review32461002
2016-08-24 11:53:54 +02:00
Jonathan Levy cb05e77e62 Add Python3 support
issue3211
review19051002
2016-03-08 12:19:16 +01:00
Cédric Krier b9d97c349d create_move has moved from Line to Statement
Since issue4386, the override of create_move must be done on Statement.

issue4454
review10001002
2015-01-07 14:56:17 +01:00
Cédric Krier 22eed3594b New API for on_change
issue4203
review8581002
2014-10-29 20:39:19 +01:00
Cédric Krier 08d2680918 Initial commit
review12281002
2014-09-17 21:54:48 +02:00