Include archived in payment requests
This commit is contained in:
parent
8f7256f49f
commit
c85309c14f
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue