1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Include archived in payment requests

This commit is contained in:
Hillel Coren 2017-08-07 09:22:01 +03:00
parent 22e31fe323
commit 1edb480ae5
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class CreatePaymentAPIRequest extends PaymentRequest
}
$this->invoice = $invoice = Invoice::scope($this->invoice_id)
->withArchived()
->invoices()
->firstOrFail();

View File

@ -25,6 +25,7 @@ class CreatePaymentRequest extends PaymentRequest
{
$input = $this->input();
$this->invoice = $invoice = Invoice::scope($input['invoice'])
->withArchived()
->invoices()
->firstOrFail();