Fix sequence type when mandate is set before processing

Skip payment without stored sequence type when computing the sequence type.

issue4516
review8881004
This commit is contained in:
Cédric Krier committed 2015-02-19 13:55:14 +01:00
1 parent 2b500dd6e8
commit a4dbd1008d
1 file changed
+1
+1
View File
@@ -480,6 +480,7 @@ class Mandate(Workflow, ModelSQL, ModelView):
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)):
return 'FRST'
# TODO manage FNAL