diff --git a/app/Models/Account.php b/app/Models/Account.php index efbfd5b20470..3f8ca4810cb3 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -830,7 +830,7 @@ class Account extends Eloquent // White Label case FEATURE_WHITE_LABEL: - if ($this->isNinjaAccount() || (!$selfHost && $planDetails && !$plan_details['expires'])) { + if ($this->isNinjaAccount() || (!$selfHost && $planDetails && !$planDetails['expires'])) { return false; } // Fallthrough @@ -1262,7 +1262,7 @@ class Account extends Eloquent public function attatchPDF() { - return $this->hasFeaure(FEATURE_PDF_ATTACHMENT) && $this->pdf_email_attachment; + return $this->hasFeature(FEATURE_PDF_ATTACHMENT) && $this->pdf_email_attachment; } public function getEmailDesignId() diff --git a/resources/views/invoices/view.blade.php b/resources/views/invoices/view.blade.php index 730094e659af..13d83c3746cf 100644 --- a/resources/views/invoices/view.blade.php +++ b/resources/views/invoices/view.blade.php @@ -84,7 +84,7 @@ window.invoice = {!! $invoice->toJson() !!}; invoice.features = { customize_invoice_design:{{ $invoice->client->account->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN) ? 'true' : 'false' }}, - remove_created_by:{{ $invoice->client->account)->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }}, + remove_created_by:{{ $invoice->client->account->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }}, invoice_settings:{{ $invoice->client->account->hasFeature(FEATURE_INVOICE_SETTINGS) ? 'true' : 'false' }} }; invoice.is_quote = {{ $invoice->is_quote ? 'true' : 'false' }};