FE importate Scarichi da Cassetto Fiscale Lista AdE
Stabile attivo per archivio FE
{{ $this->activeStabileLabel }}
L'elenco mostra solo le fatture collegate allo stabile attivo selezionato nella topbar.
{{ $this->table }}
Totale fatture: {{ $this->getArchivioRigheVisteCount() }}
@php($anno = (int) ($this->cassettoAnno ?? now()->year)) @php($nowTs = now()->timestamp) @php($quarterStatus = $this->getCassettoQuarterStatus($anno)) @php($yearSummary = $this->getCassettoYearSummary($anno)) @php($cassettoLogs = $this->getCassettoDownloadLogs()) @php($cassettoAvailable = in_array('cassetto_fiscale', (array) ($this->feModuleStatus['sources'] ?? []), true)) Scarichi da Cassetto Fiscale
Destinazione scarico corrente
{{ $this->activeStabileLabel }}
I trimestri scaricati in questa tab vengono associati allo stabile attivo visibile in topbar al momento del click.
@if(! $cassettoAvailable)
Cassetto Fiscale non abilitato per questo soggetto
Lo storico locale resta consultabile, ma i nuovi scarichi sono disattivati finche il servizio Cassetto Fiscale non viene abilitato sull'amministratore dello stabile attivo.
@endif
Verifica trimestri gia scaricati e confronto tra riepilogo Cassetto, file ricevuti e archivio locale.
Vista
Anno
Cassetto
{{ (int) $yearSummary['remote_total'] }}
da riepiloghi disponibili
File pacchetti
{{ (int) $yearSummary['files_total'] }}
XML/P7M trovati nei download
Archivio FE
{{ (int) $yearSummary['local_total'] }}
fatture locali {{ $anno }}
Lista AdE
{{ (int) $yearSummary['ade_total'] }}
righe di controllo
Da verificare
{{ (int) $yearSummary['missing_estimate'] }}
differenza Cassetto vs archivio
@if(!empty($quarterStatus)) @if($this->cassettoViewMode === 'cards')
@foreach($quarterStatus as $row) @php($stato = (string) ($row['stato'] ?? '')) @php($isComplete = $stato === 'COMPLETO') @php($isVerify = $stato === 'VERIFICA') @php($isDownloaded = (bool) ($row['download_complete'] ?? false)) @php($key = $row['quarter'] . '-' . $anno) @php($clickTs = (int) ($this->quarterDownloads[$key] ?? 0)) @php($isBusy = $clickTs > 0 && ($nowTs - $clickTs) < 120) @php($isRunning = $stato === 'IN CORSO') @php($isBlocked = ! $cassettoAvailable) @php($processed = (int) $row['imported'] + (int) $row['duplicates'] + (int) $row['errors']) @php($filesTotal = (int) $row['files_total']) @php($progress = $filesTotal > 0 ? min(100, (int) floor(($processed / max(1, $filesTotal)) * 100)) : ($isRunning ? 5 : 0))
{{ $row['quarter'] }} {{ $anno }}
{{ $stato }}
{{ \Carbon\Carbon::parse($row['dal'])->format('d-m-Y') }} - {{ \Carbon\Carbon::parse($row['al'])->format('d-m-Y') }} @if(!empty($row['log_id'])) · log #{{ (int) $row['log_id'] }} @endif
Cassetto
{{ ($row['remote_total'] ?? null) !== null ? (int) $row['remote_total'] : 'n/d' }}
File
{{ $filesTotal }}
Archivio
{{ (int) $row['local_total'] }}
Lista AdE
{{ (int) $row['ade_total'] }}
Da verificare
{{ ($row['missing_estimate'] ?? null) !== null ? (int) $row['missing_estimate'] : 'n/d' }}
{{ $processed }} / {{ $filesTotal }} file lavorati {{ $progress }}%
{{ (int) $row['imported'] }} importate, {{ (int) $row['duplicates'] }} duplicate, {{ (int) $row['errors'] }} errori @if(!empty($row['created_at'])) · aggiornato {{ \Carbon\Carbon::parse($row['created_at'])->format('d-m-Y H:i') }} @endif
@endforeach
@else
@foreach($quarterStatus as $row) @php($stato = (string) ($row['stato'] ?? '')) @php($isComplete = $stato === 'COMPLETO') @php($isVerify = $stato === 'VERIFICA') @php($isDownloaded = (bool) ($row['download_complete'] ?? false)) @php($key = $row['quarter'] . '-' . $anno) @php($clickTs = (int) ($this->quarterDownloads[$key] ?? 0)) @php($isBusy = $clickTs > 0 && ($nowTs - $clickTs) < 120) @php($isRunning = $stato === 'IN CORSO') @php($isBlocked = ! $cassettoAvailable) @php($processed = (int) $row['imported'] + (int) $row['duplicates'] + (int) $row['errors']) @php($filesTotal = (int) $row['files_total']) @php($progress = $filesTotal > 0 ? min(100, (int) floor(($processed / max(1, $filesTotal)) * 100)) : ($isRunning ? 5 : 0)) @endforeach
Trimestre Periodo Stato Cassetto File Archivio FE Lista AdE Da verificare Avanzamento Import Dup. Err. Scarico
{{ $row['quarter'] }} {{ $anno }} {{ \Carbon\Carbon::parse($row['dal'])->format('d-m-Y') }} - {{ \Carbon\Carbon::parse($row['al'])->format('d-m-Y') }} {{ $stato }} {{ ($row['remote_total'] ?? null) !== null ? (int) $row['remote_total'] : 'n/d' }} {{ $filesTotal }} {{ (int) $row['local_total'] }} {{ (int) $row['ade_total'] }} {{ ($row['missing_estimate'] ?? null) !== null ? (int) $row['missing_estimate'] : 'n/d' }}
{{ $processed }}/{{ $filesTotal }}{{ $progress }}%
{{ (int) $row['imported'] }} {{ (int) $row['duplicates'] }} {{ (int) $row['errors'] }}
@endif @endif @if($cassettoLogs->isNotEmpty())
Ultimi scarichi
@foreach($cassettoLogs as $log) @php($logProcessed = (int) $log->imported + (int) $log->duplicates + (int) $log->errors) @php($logFiles = (int) $log->files_total) @php($logProgress = $logFiles > 0 ? min(100, (int) floor(($logProcessed / max(1, $logFiles)) * 100)) : 0)
{{ \Carbon\Carbon::parse($log->dal)->format('d-m-Y') }} - {{ \Carbon\Carbon::parse($log->al)->format('d-m-Y') }} #{{ (int) $log->id }}
{{ \Carbon\Carbon::parse($log->created_at)->format('d-m-Y H:i') }} · stato {{ strtoupper((string) $log->status) }} · metadati {{ $log->metadati ? 'si' : 'no' }}
Cassetto{{ ($log->remote_total ?? null) !== null ? (int) $log->remote_total : 'n/d' }}
File{{ $logFiles }}
Archivio{{ (int) ($log->local_total ?? 0) }}
Import{{ (int) $log->imported }}
Errori{{ (int) $log->errors }}
@if(!empty($log->message))
{{ $log->message }}
@endif
@endforeach
@endif