Create payment only for the first matching party reception of direct debit
Closes #13086 (grafted from 360c0848e5b5b3762b850b655cfe767ed3905c79) --HG-- branch : 7.0
This commit is contained in:
1 parent
f9194b5879
commit
a84af1b956
1 file changed
+1
@@ -232,6 +232,7 @@ class MoveLine(metaclass=PoolMeta):
|
||||
for reception in line.party.reception_direct_debits:
|
||||
if reception.match(pattern):
|
||||
payments.extend(reception.get_payments(line))
|
||||
break
|
||||
Payment.save(payments)
|
||||
return payments
|
||||
|
||||
|
||||
Reference in new issue
Block a user