mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Hide tasks invoice line item table if module is disabled
This commit is contained in:
parent
13c83c5d11
commit
7f8f1b414b
@ -1593,6 +1593,7 @@ class Account extends Eloquent
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// note: single & checks bitmask match
|
||||||
return $this->enabled_modules & static::$modules[$entityType];
|
return $this->enabled_modules & static::$modules[$entityType];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,7 +254,10 @@
|
|||||||
<table class="table invoice-table">
|
<table class="table invoice-table">
|
||||||
|
|
||||||
@include('invoices.edit_table', ['isTasks' => false])
|
@include('invoices.edit_table', ['isTasks' => false])
|
||||||
@include('invoices.edit_table', ['isTasks' => true])
|
|
||||||
|
@if ($account->isModuleEnabled(ENTITY_TASK))
|
||||||
|
@include('invoices.edit_table', ['isTasks' => true])
|
||||||
|
@endif
|
||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user