Fix for expense documents
This commit is contained in:
parent
8c2e5ebdbf
commit
d53d7739b4
1 changed files with 7 additions and 5 deletions
|
|
@ -1857,11 +1857,13 @@ class Account extends Eloquent
|
|||
|
||||
public function isModuleEnabled($entityType)
|
||||
{
|
||||
if (in_array($entityType, [
|
||||
ENTITY_CLIENT,
|
||||
ENTITY_INVOICE,
|
||||
ENTITY_PRODUCT,
|
||||
ENTITY_PAYMENT,
|
||||
if ( ! in_array($entityType, [
|
||||
ENTITY_RECURRING_INVOICE,
|
||||
ENTITY_CREDIT,
|
||||
ENTITY_QUOTE,
|
||||
ENTITY_TASK,
|
||||
ENTITY_EXPENSE,
|
||||
ENTITY_VENDOR,
|
||||
])) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue