invoiceninja/app/Http/Controllers
Dave Shoreman fb47c29c91
Find old EUA to get tx_days for new agreement
The end user agreement ID isn't stored with the bank integration, but it
*is* returned as part of the error for an expired account which works
perfectly for the case of renewing an expired requisition.

When `tx_days` isn't set in the request (i.e. it's a renewal) we instead
extract the EUA ID from the account error after getting the integration,
then once we have the EUA we're able to restore the old tx_days setting.

Since the BankIntegration query is used in both endpoints, this moves it
to a method with `firstOrFail()` rather than `first()` which also allows
for a cleanup of the integration saving code with try/catch/finally to
make it a little clearer which values apply to both new+existing cases.
2025-01-13 19:06:01 +00:00
..
Auth Add defaults for the preview on recurring invoice 2024-12-27 11:03:22 +11:00
Bank Find old EUA to get tx_days for new agreement 2025-01-13 19:06:01 +00:00
ClientPortal Improve sort order in client portal tables 2024-11-26 14:55:42 +11:00
Contact Static Analysis 2024-06-16 08:30:25 +10:00
Gateways Style fixes 2024-11-20 11:15:49 +11:00
InAppPurchase Update copyright 2024-04-12 14:15:41 +10:00
OpenAPI php-cs-fixer 2023-02-16 12:36:09 +11:00
Reports Style fixes 2024-11-20 11:15:49 +11:00
Shop Static Analysis 2024-06-16 08:30:25 +10:00
Support/Messages Static analysis 2024-06-15 17:34:08 +10:00
Traits Static Analysis 2024-06-16 14:35:56 +10:00
VendorPortal Style fixes 2024-11-20 11:15:49 +11:00
AccountController.php Style fixes 2024-11-20 11:15:49 +11:00
ActivityController.php V5.11.0 2024-12-09 08:44:27 +11:00
BankIntegrationController.php Fixes for nordigen 2024-12-18 20:20:57 +11:00
BankTransactionController.php Style fixes 2024-11-20 11:15:49 +11:00
BankTransactionRuleController.php Static Analysis 2024-06-16 08:30:25 +10:00
BaseController.php Style fixes 2024-11-20 11:15:49 +11:00
BrevoController.php Style fixes 2024-11-20 11:15:49 +11:00
ChartController.php Rollback for new payment flow 2024-08-22 16:45:06 +10:00
ClientController.php Style fixes 2024-11-20 11:15:49 +11:00
ClientGatewayTokenController.php Add support for setting a payment method as default 2024-10-22 06:57:36 +11:00
ClientStatementController.php Static Analysis 2024-06-16 08:30:25 +10:00
CompanyController.php Style fixes 2024-11-20 11:15:49 +11:00
CompanyGatewayController.php Style fixes 2024-11-20 11:15:49 +11:00
CompanyLedgerController.php Static Analysis 2024-06-16 08:30:25 +10:00
CompanyUserController.php Style fixes 2024-11-20 11:15:49 +11:00
ConnectedAccountController.php Static analysis 2024-06-15 17:34:08 +10:00
Controller.php Update copyright 2024-04-12 14:15:41 +10:00
CreditController.php Style fixes 2024-11-20 11:15:49 +11:00
DesignController.php Updates for tax model 2024-12-04 08:24:53 +11:00
DocumentController.php Style fixes 2024-11-20 11:15:49 +11:00
EInvoiceController.php Fixes for invoice terms display incorrectly 2025-01-10 10:47:57 +11:00
EInvoicePeppolController.php Cleanup for peppol 2024-12-21 10:28:21 +11:00
EInvoiceTokenController.php Style fixes 2024-11-20 11:15:49 +11:00
EmailController.php Coalesce reminder resolution for invoices and quotes 2024-11-25 11:24:36 +11:00
EmailHistoryController.php entity history query 2024-08-12 14:30:19 +10:00
ExpenseCategoryController.php Static Analysis 2024-06-16 08:30:25 +10:00
ExpenseController.php v5.10.35 2024-10-12 19:57:42 +11:00
ExportController.php Fixes for recurring invoice queries 2024-08-05 08:37:21 +10:00
FilterController.php Static Analysis 2024-06-16 14:35:56 +10:00
GroupSettingController.php Style fixes 2024-11-20 11:15:49 +11:00
HostedMigrationController.php Style fixes 2024-11-20 11:15:49 +11:00
ImportController.php Style fixes 2024-11-20 11:15:49 +11:00
ImportJsonController.php Update copyright 2024-04-12 14:15:41 +10:00
ImportQuickbooksController.php Style fixes 2024-11-20 11:15:49 +11:00
InvoiceController.php Style fixes 2024-11-20 11:15:49 +11:00
LicenseController.php Style fixes 2024-11-20 11:15:49 +11:00
LogoutController.php Static Analysis 2024-06-16 08:30:25 +10:00
MailgunController.php minor code cleanups 2024-12-16 16:09:52 +01:00
MigrationController.php Style fixes 2024-11-20 11:15:49 +11:00
OneTimeTokenController.php Style fixes 2024-11-20 11:15:49 +11:00
PaymentController.php Style fixes 2024-11-20 11:15:49 +11:00
PaymentNotificationWebhookController.php Rollback for new payment flow 2024-08-22 16:45:06 +10:00
PaymentTermController.php Static Analysis 2024-06-16 08:30:25 +10:00
PaymentWebhookController.php Update copyright 2024-04-12 14:15:41 +10:00
PingController.php Minor fixes 2024-10-03 15:05:22 +10:00
PostMarkController.php fix: allow checking blocked state before querying database in webhooks 2024-12-16 11:24:47 +01:00
PreviewController.php Adjustments for design and dom elements / attributes 2025-01-13 14:16:55 +11:00
PreviewPurchaseOrderController.php Style fixes 2024-11-20 11:15:49 +11:00
ProductController.php Style fixes 2024-11-20 11:15:49 +11:00
ProjectController.php Refactor for bulk project invoicing 2024-12-31 11:52:35 +11:00
ProtectedDownloadController.php Static Analysis + ACSS 2024-06-17 16:08:06 +10:00
PurchaseOrderController.php Style fixes 2024-11-20 11:15:49 +11:00
QuoteController.php Style fixes 2024-11-20 11:15:49 +11:00
RecurringExpenseController.php Static Analysis 2024-06-16 08:30:25 +10:00
RecurringInvoiceController.php Style fixes 2024-11-20 11:15:49 +11:00
RecurringQuoteController.php Static Analysis 2024-06-16 08:30:25 +10:00
SchedulerController.php Update copyright 2024-04-12 14:15:41 +10:00
SearchController.php Active global search across all entities 2024-12-12 11:57:33 +11:00
SelfUpdateController.php Style fixes 2024-11-20 11:15:49 +11:00
SetupController.php Update .env.example vars 2024-09-16 18:37:53 +10:00
SmtpController.php Fixes for smtp_port cast 2024-10-18 06:53:54 +11:00
StaticController.php Style fixes 2024-11-20 11:15:49 +11:00
StripeConnectController.php Style fixes 2024-11-20 11:15:49 +11:00
StripeController.php Update copyright 2024-04-12 14:15:41 +10:00
SubdomainController.php Style fixes 2024-11-20 11:15:49 +11:00
SubscriptionController.php Style fixes 2024-11-20 11:15:49 +11:00
SubscriptionStepsController.php php-cs-fixer 2024-06-14 17:09:44 +10:00
SystemLogController.php Static Analysis 2024-06-16 08:30:25 +10:00
TaskController.php Task Status Order tests 2025-01-03 21:27:14 +11:00
TaskSchedulerController.php Update copyright 2024-04-12 14:15:41 +10:00
TaskStatusController.php Static Analysis 2024-06-16 08:30:25 +10:00
TaxRateController.php Style fixes 2024-11-20 11:15:49 +11:00
TemplateController.php Static Analysis 2024-06-16 08:30:25 +10:00
TemplatePreviewController.php Style fixes 2024-11-20 11:15:49 +11:00
TokenController.php Static Analysis 2024-06-16 08:30:25 +10:00
TwilioController.php Style fixes 2024-11-20 11:15:49 +11:00
TwoFactorController.php Style fixes 2024-11-20 11:15:49 +11:00
UserController.php Static Analysis 2024-06-16 08:30:25 +10:00
VendorController.php Style fixes 2024-11-20 11:15:49 +11:00
WebCronController.php Static analysis 2024-06-15 17:34:08 +10:00
WebhookController.php Static Analysis 2024-06-16 08:30:25 +10:00