diff --git a/app/Http/Requests/CreatePaymentAPIRequest.php b/app/Http/Requests/CreatePaymentAPIRequest.php index a35c291e852f..f7a521c4c918 100644 --- a/app/Http/Requests/CreatePaymentAPIRequest.php +++ b/app/Http/Requests/CreatePaymentAPIRequest.php @@ -31,6 +31,7 @@ class CreatePaymentAPIRequest extends PaymentRequest } $this->invoice = $invoice = Invoice::scope($this->invoice_id) + ->withArchived() ->invoices() ->firstOrFail(); diff --git a/app/Http/Requests/CreatePaymentRequest.php b/app/Http/Requests/CreatePaymentRequest.php index d9e187a6e159..f9a912b59eec 100644 --- a/app/Http/Requests/CreatePaymentRequest.php +++ b/app/Http/Requests/CreatePaymentRequest.php @@ -25,6 +25,7 @@ class CreatePaymentRequest extends PaymentRequest { $input = $this->input(); $this->invoice = $invoice = Invoice::scope($input['invoice']) + ->withArchived() ->invoices() ->firstOrFail();