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:
1 parent
2b500dd6e8
commit
a4dbd1008d
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user