mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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">
|
<style type="text/css">
|
||||||
.contact-file,
|
.contact-file,
|
||||||
.task-file {
|
.task-file,
|
||||||
|
.payment-file {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -134,7 +135,9 @@
|
|||||||
@foreach (\App\Services\ImportService::$sources as $source)
|
@foreach (\App\Services\ImportService::$sources as $source)
|
||||||
if (val === '{{ $source }}') {
|
if (val === '{{ $source }}') {
|
||||||
@foreach (\App\Services\ImportService::$entityTypes as $entityType)
|
@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();
|
$('.{{ $entityType }}-file').show();
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user