FIX patch sequence type choose on SEPA
FIX changeset-7d91fbb60c04
This commit is contained in:
parent
b695b7be4f
commit
ee4796154a
|
@ -1,20 +1,15 @@
|
|||
diff -r 8e41d4f4ca77 payment.py
|
||||
--- a/trytond/trytond/modules/account_payment_sepa/payment.py Tue Jul 05 22:51:45 2016 +0200
|
||||
+++ b/trytond/trytond/modules/account_payment_sepa/payment.py Fri Mar 24 06:34:14 2017 +0100
|
||||
@@ -491,10 +491,12 @@
|
||||
diff -r 97d9b0a5b64b trytond/trytond/modules/account_payment_sepa/payment.pypayment.py
|
||||
--- a/trytond/trytond/modules/account_payment_sepa/payment.py Mon Jun 05 11:54:05 2017 +0200
|
||||
+++ b/trytond/trytond/modules/account_payment_sepa/payment.py Mon Jun 05 11:55:23 2017 +0200
|
||||
@@ -445,9 +445,9 @@
|
||||
def sequence_type(self):
|
||||
if self.type == 'one-off':
|
||||
return 'OOFF'
|
||||
- elif (not self.payments
|
||||
- or all(not p.sepa_mandate_sequence_type for p in self.payments)
|
||||
- or all(p.rejected for p in self.payments)):
|
||||
- elif not self.payments:
|
||||
- return 'FRST'
|
||||
+ ## Comented because the 'self.payments' browse take a lot of time. In
|
||||
+ ## some cases hours.
|
||||
+ ##elif (not self.payments
|
||||
+ ## or all(not p.sepa_mandate_sequence_type for p in self.payments)
|
||||
+ ## or all(p.rejected for p in self.payments)):
|
||||
+ ## return 'FRST'
|
||||
# TODO manage FNAL
|
||||
- # TODO manage FNAL
|
||||
+ # elif not self.payments:
|
||||
+ # return 'FRST'
|
||||
+ # # TODO manage FNAL
|
||||
else:
|
||||
return 'RCUR'
|
||||
|
|
Loading…
Reference in New Issue