Commit Graph
49 Commits
Author SHA1 Message Date
Cédric Krier 7eb9efda2d Ensure values can be sorted
The values may contain None which is not orderable so we insert a third
argument before the value to prevent to compare None value against others.

issue9381
review303881005
2020-07-21 00:36:40 +02:00
David Harper 598d779340 Rename canceled states to cancelled
issue8927
review317461003
2020-06-04 11:13:25 +01:00
Sergi Almacellas Abellana 819b612ae9 Merge sepa identifier into eu_at_02
issue9181
review307371002
2020-04-20 14:28:05 +02:00
Cédric Krier aa44ad53f9 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
Sergi Almacellas Abellana 0d1d5d4015 Allow to customize message_id
issue9006
review278441002
2020-02-17 11:42:55 +01:00
Sergi Almacellas Abellana a154f306f4 Allow the sepa mandate to be set on draft payments
Also include account number on mandate rec_name

issue8990
review260831007
2020-02-17 11:18:54 +01:00
Nicolas Évrard 2a3da33576 Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Cédric Krier 3a1bdb65bf Add initiator id on journal
Each country/bank has its own requirement about the ID to use on the initiator
party so we add an option on the journal to define which identifier to use.

issue8063
review284021004
2019-10-08 18:24:45 +02:00
Sebastien Marie 3135cbf47a Use move_origin instead of origin to generate sepa_remittance_information
issue8550
review275831003
2019-08-01 18:23:35 +02:00
Nicolas Évrard d1cb606d15 Acknowledge the fact that message are bytes and not str
issue8409
review253671002
2019-06-07 09:59:51 +02:00
Nicolas Évrard 5e375b0820 Allow to store SEPA Message content on the file system
issue7295
review44851002
2019-06-05 18:32:08 +02:00
Cédric Krier 04431fde56 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:28 +01:00
Cédric Krier 596a1c0e1b Replace self by cls in classmethod
issue7630
review74341002
2018-09-19 00:15:58 +02:00
Cédric Krier faf87e2867 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 749fc8cee4 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Cédric Krier 40ecf60850 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:43 +02:00
Sergi Almacellas Abellana 1d77aa6e47 Add depends on Button
issue6919
review40811002
2018-02-19 11:37:41 +01:00
Cédric Krier 367a81571f Align cache of payments for sepa_payments property
After a sort, it is always good to re-browse to align the cache with the new
order.

issue7065
review35881002
2018-01-23 22:11:25 +01:00
Sergi Almacellas Abellana 288a4a85b1 Use identification for mandate record name
issue6831
review43591002
2017-10-31 12:16:13 +01:00
Sergi Almacellas Abellana 64a3d982b6 Use real field sql_base for sepa_end_to_end_id searcher
Function fields do not have any sql_type, so we must use the sql_type of the
real field in order to determine it.

issue6503
review37431002
2017-05-30 12:41:22 +02:00
Cédric Krier 33b31dc263 Add error message when processing payment without sepa_bank_account_number
The property is needed by pain.001 templates.

issue6331
review30111002
2017-03-13 22:45:57 +01:00
Cédric Krier 2660eca1d5 Fix typo in comment 2017-01-10 13:53:37 +01:00
Cédric Krier 0a88d87c4f Allow to always use RCUR
In November 2016, a simplified usage of sequence type will be effective:
http://www.europeanpaymentscouncil.eu/index.cfm/sepa-direct-debit/2016-sdd-rulebooks/

issue5931
review30591002
2016-10-11 18:14:27 +02:00
Cédric Krier 5af726253b Add Python3 support
issue3211
review21791002
2016-03-06 22:51:42 +01:00
Nicolas Évrard 1d3fbe93f9 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:53:47 +01:00
Sergi Almacellas Abellana 3aa30d6167 Add readonly states to mandate scheme
issue4997
review17541002
2015-09-29 12:33:05 +02:00
Cédric Krier f7ab69aacc Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:58:55 +02:00
Cédric Krier 47c50b20a4 Use value date of camt.054 as clearing date
issue4520
review8891002
2015-02-27 11:55:08 +01:00
Cédric Krier c9946699ff Prevent deleting bank account number used on mandate
issue4553
review10181003
2015-02-19 13:58:39 +01:00
Cédric Krier a4dbd1008d Fix sequence type when mandate is set before processing
Skip payment without stored sequence type when computing the sequence type.

issue4516
review8881004
2015-02-19 13:55:14 +01:00
Cédric Krier 4660ca36b4 Add missing company domain/field
issue4311
review7691002
2014-12-03 16:16:17 +01:00
Cédric Krier d53feae9f1 Fix most flake8 errors
review8771002
2014-12-02 12:54:47 +01:00
Cédric Krier e889c55946 Allow to re-generate message of payment group
issue4316
review14631002
2014-11-19 21:32:09 +01:00
Cédric Krier 01c01c63b3 Manage sequence type with rejected payments
If all previous payments are rejected, the sequence type must be FRST.

issue4317
review6641002
2014-11-19 21:19:16 +01:00
Cédric Krier ebb881ce1c Set correctly sequence type on payment
If the mandate is set on the payment before the process, the sequence type is
not set. Also the sequence type should be cleared when copying.

issue4322
review14641002
2014-11-10 23:27:17 +01:00
Cédric Krier 59a289a7af The type of message is wrong for payment processing
The messages generated by the payment process should be of type 'out' not 'in'.

issue4305
review10611002
2014-10-31 18:09:08 +01:00
Cédric Krier fc80b83e56 Add pain.001.003.03 and pain.008.003.02 flavors
issue4216
review9761002
2014-10-21 19:01:20 +02:00
Cédric Krier 5389509f06 Typo in get_sepa_end_to_end_id
issue4218
review6571002
2014-09-30 09:50:43 +02:00
Cédric Krier 301249c6c5 Add mandate report
issue3922
review9701002
2014-09-19 18:41:57 +02:00
Nicolas Évrard e0ae4ca5c1 Use FRST sequence type only for the first payment ever processed
issue4142
review12481003
2014-09-19 18:05:21 +02:00
Nicolas Évrard ec6fa319d0 Copying mandate should set relevent fields
issue4062
review14371002
2014-09-19 16:40:46 +02:00
Cédric Krier d9ed922949 Handle camt.054
issue4012
review9451004
2014-08-04 16:47:44 +02:00
Sergi Almacellas Abellana 9f44953139 Use grouped_slice helper.
issue3516
review10301002
2014-07-17 18:57:56 +02:00
Cédric Krier 137166697e Add generic SEPA Message
issue4001
review5411002
2014-07-09 00:48:35 +02:00
Cédric Krier 9122778b1d Use mandate account for receivable payment
issue4008
review14311002
2014-06-28 20:05:07 +02:00
Cédric Krier cafff27206 Add sequence and unique constraint for mandate identification
- Define a sequence in the account configuration for the mandate
  identification.
- Add a unique constraint per company on the mandate identification.

issue3963
review5391002
2014-06-22 17:13:47 +02:00
Cédric Krier 42c792d0b9 Add Direct Debit Business to Business scheme
issue3921
review7361002
2014-06-22 17:09:40 +02:00
Cédric Krier 0bb1c9d73d SEPA flavor should not be translatable
issue3822
2014-04-29 19:33:20 +02:00
Cédric Krier 253b780045 Initial commit
review1881002
2014-03-10 23:12:36 +01:00