Construct & update entity if invoices is available in context
This commit is contained in:
parent
c6826d495a
commit
4cbdc8b521
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ trait DesignHelpers
|
|||
$this->entity = $this->context['entity'];
|
||||
}
|
||||
|
||||
if (isset($this->context['invoices'])) {
|
||||
$this->invoices = $this->context['invoices'];
|
||||
$this->entity = $this->invoices->first();
|
||||
}
|
||||
|
||||
$this->document();
|
||||
|
||||
return $this;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue