@php($hdr = $this->getHeaderSummary()) @php($delta = (float) ($hdr['delta'] ?? 0)) @php($deltaOk = $delta == 0.0) @php($linkedFe = $this->getLinkedFatturaElettronica()) @php($linkedFeDetails = $linkedFe ? $this->getLinkedFeXmlDetails() : [])
{{ $this->getSchema('top') }}
{{ $this->getSchema('header') }}
Righe fattura
{{ $this->getSchema('form') }}
Totali
Imponibile
€ {{ number_format((float) ($hdr['imponibile'] ?? 0), 2, ',', '.') }}
IVA
€ {{ number_format((float) ($hdr['iva'] ?? 0), 2, ',', '.') }}
Totale documento
€ {{ number_format((float) ($hdr['totale'] ?? 0), 2, ',', '.') }}
Ritenuta (RA)
€ {{ number_format((float) ($hdr['ra'] ?? 0), 2, ',', '.') }}
Netto da pagare
€ {{ number_format((float) ($hdr['netto'] ?? 0), 2, ',', '.') }}
Quadratura (delta)
€ {{ number_format($delta, 2, ',', '.') }}
Somma righe: € {{ number_format((float) ($hdr['somma_righe'] ?? 0), 2, ',', '.') }}
Funzioni base
Memorizza Archivio Nuova
@if($linkedFe) PDF (da FE)
FE #{{ $linkedFe->id }}
Apri Scarica
PDF fattura (FE #{{ $linkedFe->id }})
@endif Prima nota
Crea primanota Abbina primanota Assegna contropartite
@php($gestioneTipoSelected = $this->getSelectedGestioneTipo()) @if($gestioneTipoSelected === 'ordinaria') @php($tabs = $this->getTabelleMillesimaliByTipo('ordinaria')) Tabelle (Ordinarie)
@forelse($tabs as $t) @php($voci = $this->getVociSpesaByTabellaMillesimale((int) ($t['id'] ?? 0)))
{{ $t['label'] ?? ('Tabella #' . ($t['id'] ?? '')) }}
    @forelse($voci as $v)
  • {{ $v['label'] ?? ('Voce #' . ($v['id'] ?? '')) }}
  • @empty
  • Nessuna voce collegata a questa tabella.
  • @endforelse
@empty
Nessuna tabella ordinaria trovata.
@endforelse
@elseif($gestioneTipoSelected === 'riscaldamento') @php($tabs = $this->getTabelleMillesimaliByTipo('riscaldamento')) Tabelle (Riscaldamento)
@forelse($tabs as $t) @php($voci = $this->getVociSpesaByTabellaMillesimale((int) ($t['id'] ?? 0)))
{{ $t['label'] ?? ('Tabella #' . ($t['id'] ?? '')) }}
    @forelse($voci as $v)
  • {{ $v['label'] ?? ('Voce #' . ($v['id'] ?? '')) }}
  • @empty
  • Nessuna voce collegata a questa tabella.
  • @endforelse
@empty
Nessuna tabella riscaldamento trovata.
@endforelse
@elseif($gestioneTipoSelected === 'straordinaria') @php($straTabs = $this->getStraordinarieLegacyTabelleList()) Tabelle (Straordinarie)
@forelse($straTabs as $s) @php($nStra = (int) ($s['n_stra'] ?? 0)) @php($voci = $nStra > 0 ? $this->getVociSpesaByNumeroStraordinaria($nStra) : [])
{{ $s['titolo'] ?? ('Straordinaria #' . $nStra) }}
    @forelse($voci as $v)
  • {{ $v['label'] ?? ('Voce #' . ($v['id'] ?? '')) }}
  • @empty
  • Nessuna voce collegata a questa straordinaria.
  • @endforelse
@empty
Nessuna tabella straordinaria trovata (gescon_import.straordinarie).
@endforelse
@endif @php($fornitoreOverview = $this->getFornitoreOverview()) @if($fornitoreOverview) Fornitore (saldo)
Aperto (netto)
€ {{ number_format((float) ($fornitoreOverview['aperto_netto'] ?? 0), 2, ',', '.') }}
Totale (netto)
€ {{ number_format((float) ($fornitoreOverview['tot_netto'] ?? 0), 2, ',', '.') }}
Pagato (netto)
€ {{ number_format((float) ($fornitoreOverview['pagato_netto'] ?? 0), 2, ',', '.') }}
@if(!empty($fornitoreOverview['ultima_data_documento']))
Ultima fattura: {{ $fornitoreOverview['ultima_data_documento'] }}
@endif
@if(!empty($fornitoreOverview['ultime_note']) && is_array($fornitoreOverview['ultime_note']))
Note recenti
@foreach($fornitoreOverview['ultime_note'] as $n)
#{{ $n['id'] ?? '—' }} @if(!empty($n['data_documento'])) · {{ $n['data_documento'] }} @endif
{{ $n['note'] ?? '' }}
@endforeach
@endif
@endif