Fix for entity footer
This commit is contained in:
parent
9171381225
commit
bd6e3db554
2 changed files with 3 additions and 1 deletions
|
|
@ -204,6 +204,7 @@ class InvoiceController extends BaseController
|
|||
*/
|
||||
public function store(StoreInvoiceRequest $request)
|
||||
{
|
||||
|
||||
$client = Client::find($request->input('client_id'));
|
||||
|
||||
$invoice = $this->invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->id));
|
||||
|
|
|
|||
|
|
@ -349,7 +349,8 @@ class HtmlEngine
|
|||
$data['$item'] = ['value' => '', 'label' => ctrans('texts.item')];
|
||||
$data['$description'] = ['value' => '', 'label' => ctrans('texts.description')];
|
||||
|
||||
$data['$entity_footer'] = ['value' => $this->client->getSetting("{$this->entity_string}_footer"), 'label' => ''];
|
||||
//$data['$entity_footer'] = ['value' => $this->client->getSetting("{$this->entity_string}_footer"), 'label' => ''];
|
||||
$data['$entity_footer'] = ['value' => $this->entity->footer, 'label' => ''];
|
||||
|
||||
$arrKeysLength = array_map('strlen', array_keys($data));
|
||||
array_multisort($arrKeysLength, SORT_DESC, $data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue