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:
Cédric Krier committed 2024-03-08 18:22:37 +01:00
1 parent f9194b5879
commit a84af1b956
1 file changed
+1
+1
View File
@@ -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