From a9a94df97389e1fa43c4fd81f5f488921ae7eec8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 13 Nov 2016 09:14:40 +0200 Subject: [PATCH] Fix for expense documents --- app/Models/Account.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 5825d8d32b..bf7e2e3968 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -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; }