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:
parent
8f7256f49f
commit
c85309c14f
@ -31,6 +31,7 @@ class CreatePaymentAPIRequest extends PaymentRequest
|
||||
}
|
||||
|
||||
$this->invoice = $invoice = Invoice::scope($this->invoice_id)
|
||||
->withArchived()
|
||||
->invoices()
|
||||
->firstOrFail();
|
||||
|
||||
|
@ -25,6 +25,7 @@ class CreatePaymentRequest extends PaymentRequest
|
||||
{
|
||||
$input = $this->input();
|
||||
$this->invoice = $invoice = Invoice::scope($input['invoice'])
|
||||
->withArchived()
|
||||
->invoices()
|
||||
->firstOrFail();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user