From db2e37d31b485431e5c952154566b72e8db9ee0c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 31 Dec 2015 16:33:29 +0200 Subject: [PATCH] Hide payments file for non-Wave imports --- resources/views/accounts/import_export.blade.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/accounts/import_export.blade.php b/resources/views/accounts/import_export.blade.php index 4dc452c7d46a..c6f4d451e317 100644 --- a/resources/views/accounts/import_export.blade.php +++ b/resources/views/accounts/import_export.blade.php @@ -5,7 +5,8 @@ @@ -134,7 +135,9 @@ @foreach (\App\Services\ImportService::$sources as $source) if (val === '{{ $source }}') { @foreach (\App\Services\ImportService::$entityTypes as $entityType) - @if (class_exists(\App\Services\ImportService::getTransformerClassName($source, $entityType))) + @if ($source != IMPORT_WAVE && $entityType == ENTITY_PAYMENT) + // do nothing + @elseif (class_exists(\App\Services\ImportService::getTransformerClassName($source, $entityType))) $('.{{ $entityType }}-file').show(); @endif @endforeach