formatting
This commit is contained in:
parent
776bc44514
commit
145e1f71e7
@ -643,8 +643,12 @@ class Document extends Model
|
|||||||
{
|
{
|
||||||
$query = $this->where('id', $value);
|
$query = $this->where('id', $value);
|
||||||
|
|
||||||
if (request()->route()->hasParameter('recurring_invoice') || request()->route()->hasParameter('recurring_bill')) {
|
if (request()->route()->hasParameter('recurring_invoice')) {
|
||||||
$query->isRecurring();
|
$query->invoiceRecurring();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (request()->route()->hasParameter('recurring_bill')) {
|
||||||
|
$query->billRecurring();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $query->firstOrFail();
|
return $query->firstOrFail();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user