invoiceninja/app/Http/Controllers/Bank
Dave Shoreman f6a7c0ddda
Attempt to reuse existing agreements
Implements changes from #10410 but using `Arr::first()` rather than a
foreach loop to fix bugs returning invalid or expired agreements.

If an agreement exists with at least the requested `$txDays` then that
is used, otherwise a new one is created with the given parameters. If it
fails, we error out because `createRequisition()` would fail regardless.

Skips accepting EUAs: seems it's done automatically during requisition.
2025-01-13 19:10:33 +00:00
..
NordigenController.php Attempt to reuse existing agreements 2025-01-13 19:10:33 +00:00
YodleeController.php Static analysis 2024-07-14 21:28:54 +10:00