1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Include archived in payment requests

This commit is contained in:
Hillel Coren 2017-08-07 09:22:24 +03:00
parent 8f7256f49f
commit c85309c14f
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();