[REF] Account Banking SEPA Direct Debit: check SEPA ready

This commit is contained in:
Thomas Binsfeld
2019-02-22 13:49:43 +01:00
committed by Reyes4711
parent 22d3538a56
commit 1913ad2512
12 changed files with 214 additions and 126 deletions

View File

@@ -125,7 +125,7 @@ msgid "As you changed the bank account attached to this mandate, the 'Sequence T
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid "Automatically switched from <b>First</b> to <b>Recurring</b> when the debit order <a href=# data-oe-model=account.payment.order data-oe-id=%d>%s</a> has been marked as uploaded."
msgstr ""
@@ -217,9 +217,9 @@ msgid "Mandate update"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, python-format
msgid "Missing SEPA Direct Debit mandate on the bank payment line with partner '%s' (reference '%s')."
msgid "Missing SEPA Direct Debit mandate on the line with partner {partner_name} (reference {reference})."
msgstr ""
#. module: account_banking_sepa_direct_debit
@@ -234,6 +234,11 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
msgid "Payment Lines"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -322,15 +327,15 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, python-format
msgid "The SEPA Direct Debit mandate with reference '%s' for partner '%s' has expired."
msgid "The SEPA Direct Debit mandate with reference {mandate_ref} for partner {partner_name} has expired."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, python-format
msgid "The mandate with reference '%s' for partner '%s' has type set to 'One-Off' and it has a last debit date set to '%s', so we can't use it."
msgid "The SEPA Direct Debit mandate with reference {mandate_ref} for partner {partner_name} has type set to 'One-Off' but has a last debit date set to {last_debit_date}. Therefore, it cannot be used."
msgstr ""
#. module: account_banking_sepa_direct_debit

View File

@@ -141,7 +141,7 @@ msgid ""
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -243,11 +243,11 @@ msgid "Mandate update"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
#. module: account_banking_sepa_direct_debit
@@ -262,6 +262,12 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Bankzahlungszeilen"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -353,19 +359,20 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
#. module: account_banking_sepa_direct_debit

View File

@@ -156,7 +156,7 @@ msgstr ""
"'Tipo de secuencia' se ha vuelto a 'Inicial'."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -278,11 +278,11 @@ msgid "Mandate update"
msgstr "Actualizacion de mandato"
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, fuzzy, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
"Falta el mandato de adeudo directo SEPA en la linea de pago bancario de la "
"empresa '%s' (referencia '%s')."
@@ -299,6 +299,12 @@ msgstr "Único"
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Líneas de pago bancario"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -393,21 +399,22 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr "Identificador de acreedor SEPA '%s' no válido."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, fuzzy, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
"El mandato de adeudo directo SEPA con referencia '%s' para la empresa '%s' "
"ha expirado."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, fuzzy, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
"El mandato con referencia '%s' para la empresa '%s' tipo como 'Único', ya "
"tiene como fecha de último cobro '%s', por lo que no se puede usar."

View File

@@ -156,7 +156,7 @@ msgstr ""
"'Type de séquence' a été remis à 'First'."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -274,11 +274,11 @@ msgid "Mandate update"
msgstr "Mise-à-jour du mandat"
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, fuzzy, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
"Absence du mandat de prélèvement SEPA sur la ligne de paiement bancaire avec "
"le partenaire' %s' (référence'%s')."
@@ -295,6 +295,12 @@ msgstr "One-Off"
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Lignes de paiement bancaire"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -389,21 +395,22 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr "L'identification de créancier SEPA \"%s\" est invalide."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, fuzzy, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
"Le mandat de prélèvement SEPA portant la référence '%s' pour le partenaire "
"'%s' a expiré."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, fuzzy, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
"Le mandat portant la référence '%s' pour le partenaire '%s' est de type 'One-"
"Off' et il a une date de dernier débit au '%s', donc il n'est pas utilisable."

View File

@@ -142,7 +142,7 @@ msgid ""
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -242,11 +242,11 @@ msgid "Mandate update"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
#. module: account_banking_sepa_direct_debit
@@ -261,6 +261,12 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Stavke izvoda"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -352,19 +358,20 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
#. module: account_banking_sepa_direct_debit

View File

@@ -142,7 +142,7 @@ msgid ""
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -242,11 +242,11 @@ msgid "Mandate update"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
#. module: account_banking_sepa_direct_debit
@@ -261,6 +261,12 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Betalingsordre"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -352,19 +358,20 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
#. module: account_banking_sepa_direct_debit

View File

@@ -156,7 +156,7 @@ msgstr ""
"naar 'Eerste'."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -271,11 +271,11 @@ msgid "Mandate update"
msgstr "Machtiging bijwerken"
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, fuzzy, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
"Missende SEPA Incasso mandaten op betaalregel met klant '%s' (referentie "
"'%s')."
@@ -292,6 +292,12 @@ msgstr "Eenmalig"
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Bank betaalregels"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -386,20 +392,21 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr "De SEPA Incassant-ID '%s' is ongeldig."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, fuzzy, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
"De SEPA incasso machtiging met referentie '%s' voor relatie '%s' is verlopen."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, fuzzy, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
"De machtiging referentie '%s' voor relatie %s' is ingesteld op 'eenmalig' en "
"de laatste incasso datum is ingesteld op '%s'. Zodoende kunnen we deze niet "

View File

@@ -142,7 +142,7 @@ msgid ""
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -243,11 +243,11 @@ msgid "Mandate update"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
#. module: account_banking_sepa_direct_debit
@@ -262,6 +262,12 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Linhas de pagamento bancária"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -353,19 +359,20 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
#. module: account_banking_sepa_direct_debit

View File

@@ -157,7 +157,7 @@ msgstr ""
"vrnil v 'Prvi'."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:274
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:252
#, python-format
msgid ""
"Automatically switched from <b>First</b> to <b>Recurring</b> when the debit "
@@ -274,11 +274,11 @@ msgid "Mandate update"
msgstr "Posodobitev mandata"
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:78
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:28
#, fuzzy, python-format
msgid ""
"Missing SEPA Direct Debit mandate on the bank payment line with partner "
"'%s' (reference '%s')."
"Missing SEPA Direct Debit mandate on the line with partner {partner_name} "
"(reference {reference})."
msgstr ""
"Pri postavki bančnega plačila partnerja '%s' (sklic '%s') manjka SEPA "
"direktna obremenitev."
@@ -295,6 +295,12 @@ msgstr "Enkratna"
msgid "PAIN Version"
msgstr ""
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_line
#, fuzzy
msgid "Payment Lines"
msgstr "Postavke bančnih plačil"
#. module: account_banking_sepa_direct_debit
#: model:ir.model,name:account_banking_sepa_direct_debit.model_account_payment_method
msgid "Payment Methods"
@@ -389,21 +395,22 @@ msgid "The SEPA Creditor Identifier '%s' is invalid."
msgstr ""
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:85
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:33
#, fuzzy, python-format
msgid ""
"The SEPA Direct Debit mandate with reference '%s' for partner '%s' has "
"expired."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has expired."
msgstr ""
"SEPA mandat za direktno obremenitev s sklicem '%s' za partnerja '%s' je "
"potekel."
#. module: account_banking_sepa_direct_debit
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_order.py:93
#, python-format
#: code:addons/account_banking_sepa_direct_debit/models/account_payment_line.py:41
#, fuzzy, python-format
msgid ""
"The mandate with reference '%s' for partner '%s' has type set to 'One-Off' "
"and it has a last debit date set to '%s', so we can't use it."
"The SEPA Direct Debit mandate with reference {mandate_ref} for partner "
"{partner_name} has type set to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used."
msgstr ""
"Pri mandatu s sklicem '%s' za partnerja '%s' je tip nastavljen na "
"'enkraten', zadnji datum obremenitve pa ima nastavljen na '%s', zato ga ne "

View File

@@ -6,3 +6,4 @@ from . import bank_payment_line
from . import account_payment_mode
from . import account_payment_method
from . import account_payment_order
from . import account_payment_line

View File

@@ -0,0 +1,48 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models, _
from odoo.exceptions import UserError
class AccountPaymentLine(models.Model):
_inherit = 'account.payment.line'
@api.multi
def draft2open_payment_line_check(self):
res = super(AccountPaymentLine, self).draft2open_payment_line_check()
sepa_dd_lines = self.filtered(
lambda l: l.order_id.payment_method_id.code == 'sepa_direct_debit')
sepa_dd_lines._check_sepa_direct_debit_ready()
return res
@api.multi
def _check_sepa_direct_debit_ready(self):
"""
This method checks whether the payment line(s) are ready to be used
in the SEPA Direct Debit file generation.
:raise: UserError if a line does not fulfils all requirements
"""
for rec in self:
if not rec.mandate_id:
raise UserError(_(
"Missing SEPA Direct Debit mandate on the line with "
"partner {partner_name} (reference {reference}).").format(
partner_name=rec.partner_id.name, reference=rec.name))
if rec.mandate_id.state != 'valid':
raise UserError(_(
"The SEPA Direct Debit mandate with reference "
"{mandate_ref} for partner {partner_name} has "
"expired.").format(
mandate_ref=rec.mandate_id.unique_mandate_reference,
partner_name=rec.partner_id.name))
if rec.mandate_id.type == 'oneoff' and \
rec.mandate_id.last_debit_date:
raise UserError(_(
"The SEPA Direct Debit mandate with reference "
"{mandate_ref} for partner {partner_name} has type set "
"to 'One-Off' but has a last debit date set to "
"{last_debit_date}. Therefore, it cannot be used.").format(
mandate_ref=rec.mandate_id.unique_mandate_reference,
partner_name=rec.partner_id.name,
last_debit_date=rec.mandate_id.last_debit_date))

View File

@@ -69,44 +69,22 @@ class AccountPaymentOrder(models.Model):
transactions_count_a += 1
priority = line.priority
categ_purpose = line.category_purpose
# The field line.date is the requested payment date
# taking into account the 'date_prefered' setting
# cf account_banking_payment_export/models/account_payment.py
# in the inherit of action_open()
if not line.mandate_id:
raise UserError(
_("Missing SEPA Direct Debit mandate on the "
"bank payment line with partner '%s' "
"(reference '%s').")
% (line.partner_id.name, line.name))
scheme = line.mandate_id.scheme
if line.mandate_id.state != 'valid':
raise Warning(
_("The SEPA Direct Debit mandate with reference '%s' "
"for partner '%s' has expired.")
% (line.mandate_id.unique_mandate_reference,
line.mandate_id.partner_id.name))
if line.mandate_id.type == 'oneoff':
seq_type = 'OOFF'
if line.mandate_id.last_debit_date:
raise Warning(
_("The mandate with reference '%s' for partner "
"'%s' has type set to 'One-Off' and it has a "
"last debit date set to '%s', so we can't use "
"it.")
% (line.mandate_id.unique_mandate_reference,
line.mandate_id.partner_id.name,
line.mandate_id.last_debit_date))
elif line.mandate_id.type == 'recurrent':
seq_type_map = {
'recurring': 'RCUR',
'first': 'FRST',
'final': 'FNAL',
}
seq_type_label = \
line.mandate_id.recurrent_sequence_type
seq_type_label = line.mandate_id.recurrent_sequence_type
assert seq_type_label is not False
seq_type = seq_type_map[seq_type_label]
# The field line.date is the requested payment date
# taking into account the 'date_preferred' setting
# cf account_banking_payment_export/models/account_payment.py
# in the inherit of action_open()
key = (line.date, priority, categ_purpose, seq_type, scheme)
if key in lines_per_group:
lines_per_group[key].append(line)