From 1edb480ae5cc587d5b924ad82449d9849f7dec93 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 7 Aug 2017 09:22:01 +0300 Subject: [PATCH] Include archived in payment requests --- app/Http/Requests/CreatePaymentAPIRequest.php | 1 + app/Http/Requests/CreatePaymentRequest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Http/Requests/CreatePaymentAPIRequest.php b/app/Http/Requests/CreatePaymentAPIRequest.php index a35c291e85..f7a521c4c9 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 d9e187a6e1..f9a912b59e 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();