-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] account_payment_return_import_pain_ch
parse the payment return for pain CH. Adapt the module that does it automatically.
- Loading branch information
1 parent
20ed733
commit af762e5
Showing
16 changed files
with
786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
===================================== | ||
Account Payment Return Import PAIN CH | ||
===================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:54745c2c4ef3d0388d46f01beed0e55985ccba0c8fcb7de012440749ed49d01b | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Mature | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-CompassionCH%2Fl10n_switzerland-lightgray.png?logo=github | ||
:target: https://github.com/CompassionCH/l10n_switzerland/tree/14.0/account_payment_return_import_pain_ch | ||
:alt: CompassionCH/l10n_switzerland | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
This module allow you to parse and import pain002 files. It will automatically cancel payment and reconciliation for rejected payment. | ||
|
||
** Features list :** | ||
* import pain002 CH files | ||
* parse pain002 CH files | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/CompassionCH/l10n_switzerland/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/CompassionCH/l10n_switzerland/issues/new?body=module:%20account_payment_return_import_pain_ch%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Compassion CH | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Simon Gonzalez | ||
* Marco Monzione | ||
* Benoît Schopfer | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is part of the `CompassionCH/l10n_switzerland <https://github.com/CompassionCH/l10n_switzerland/tree/14.0/account_payment_return_import_pain_ch>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2019 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Account Payment Return Import PAIN CH", | ||
"summary": """ | ||
This addon allows to import payment returns from PAIN CH.""", | ||
"version": "14.0.1.0.0", | ||
"development_status": "Mature", | ||
"license": "AGPL-3", | ||
"author": "Odoo Community Association (OCA),Compassion CH", | ||
"website": "https://github.com/OCA/l10n-switzerland", | ||
"depends": [ | ||
# OCA/account-payment | ||
"account_payment_return", | ||
"account_payment_return_import", | ||
"account_payment_return_import_iso20022", | ||
# OCA/bank-payment | ||
"account_payment_order", | ||
], | ||
"data": ["data/payment.return.reason.csv"], | ||
} |
49 changes: 49 additions & 0 deletions
49
account_payment_return_import_pain_ch/data/payment.return.reason.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
id,code,name | ||
AC01,AC01,IncorrectAccountNumber | ||
AC04,AC04,ClosedAccountNumber | ||
AC06,AC06,BlockedAccount | ||
AG01,AG01,TransactionForbidden | ||
AG02,AG02,InvalidBankOperationCode | ||
AM02,AM02,NotAllowedAmount | ||
AM03,AM03,NotAllowedCurrency | ||
AM05,AM05,Duplication | ||
BE01,BE01,InconsistenWithEndCustomer | ||
BE04,BE04,MissingCreditorAddress | ||
BE05,BE05,UnrecognisedInitiatingParty | ||
BE06,BE06,UnknownEndCustomer | ||
BE07,BE07,MissingDebtorAddress | ||
DT01,DT01,InvalidDate | ||
FF01,FF01,InvalidFileFormat | ||
MD01,MD01,NoMandate | ||
MD02,MD02,MissingMandatoryInformationInMandate | ||
MD07,MD07,EndCustomerDeceased | ||
MD08,MD08,NoMandateServiceByAgent | ||
MD09,MD09,NoMandateServiceOnCustomer | ||
MD10,MD10,NoMandateServiceForSpecified | ||
MD11,MD11,UnrecognisedAgent | ||
MD12,MD12,NotUniqueMandateReference | ||
MD13,MD13,IncorrectCustomerAuthentication | ||
MD14,MD14,IncorrectAgent | ||
MD15,MD15,IncorrectCurrency | ||
MD16,MD16,RequestedByCustomer | ||
MD17,MD17,RequestedByInitiatingParty | ||
MD18,MD18,RequestedByInitiatingPartyAndCustomer | ||
MD19,MD19,MandateCancelledDueToEarlySettlement | ||
MD20,MD20,MandateExpired | ||
MD21,MD21,MandateCancelledDueToFraud | ||
MD22,MD22,MandateInitiationCancelled | ||
MD23,MD23,MandateAmendmentCancelled | ||
MS02,MS02,NotSpecifiedReasonCustomerGenerated | ||
MS03,MS03,NotSpecifiedReasonAgentGenerated | ||
NARR,NARR,Narrative | ||
RC01,RC01,BankIdentifierIncorrect | ||
RF01,RF01,NotUniqueTransactionReference | ||
RR01,RR01,MissingDebtorAccountOrIdentification | ||
RR02,RR02,MissingDebtorNameOrAddress | ||
RR03,RR03,MissingCreditorNameOrAddress | ||
RR04,RR04,RegulatoryReason | ||
SL01,SL01,SpecificServiceOfferedByDebtorAgent | ||
SL11,SL11,CreditorNotOnWhitelistOfDebtor | ||
SL12,SL12,CreditorOnBlacklistOfDebtor | ||
SL13,SL13,MaximumNumberOfDirectDebitTransactionsExceeded | ||
SL14,SL14,MaximumDirectDebitTransactionAmountExceeded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import payment_return |
12 changes: 12 additions & 0 deletions
12
account_payment_return_import_pain_ch/models/payment_return.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2020 Emanuel Cino <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class PaymentReturn(models.Model): | ||
_inherit = "payment.return" | ||
|
||
payment_order_id = fields.Many2one( | ||
"account.payment.order", "Originating Payment order" | ||
) |
3 changes: 3 additions & 0 deletions
3
account_payment_return_import_pain_ch/readme/CONTRIBUTORS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* Simon Gonzalez | ||
* Marco Monzione | ||
* Benoît Schopfer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This module allow you to parse and import pain002 files. It will automatically cancel payment and reconciliation for rejected payment. | ||
|
||
** Features list :** | ||
* import pain002 CH files | ||
* parse pain002 CH files |
Oops, something went wrong.