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:
parent
22e31fe323
commit
1edb480ae5
@ -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