mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Hide payments file for non-Wave imports
This commit is contained in:
parent
2144870b96
commit
db2e37d31b
@ -5,7 +5,8 @@
|
||||
|
||||
<style type="text/css">
|
||||
.contact-file,
|
||||
.task-file {
|
||||
.task-file,
|
||||
.payment-file {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user