mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 06:14:35 -04:00
Fix for entity footer
This commit is contained in:
parent
9171381225
commit
bd6e3db554
@ -204,6 +204,7 @@ class InvoiceController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function store(StoreInvoiceRequest $request)
|
public function store(StoreInvoiceRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$client = Client::find($request->input('client_id'));
|
$client = Client::find($request->input('client_id'));
|
||||||
|
|
||||||
$invoice = $this->invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->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['$item'] = ['value' => '', 'label' => ctrans('texts.item')];
|
||||||
$data['$description'] = ['value' => '', 'label' => ctrans('texts.description')];
|
$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));
|
$arrKeysLength = array_map('strlen', array_keys($data));
|
||||||
array_multisort($arrKeysLength, SORT_DESC, $data);
|
array_multisort($arrKeysLength, SORT_DESC, $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user