118 lines
5.0 KiB
Plaintext
118 lines
5.0 KiB
Plaintext
@if (isLoading)
|
|
{
|
|
<div class="col-12">
|
|
<LoadingData></LoadingData>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
if (ListRecords.Count == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped text-left">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center text-nowrap">
|
|
@if (ShowSelect)
|
|
{
|
|
<button class="btn btn-sm btn-info" @onclick="ResetSel" title="Reset selezione"><i class="fas fa-sync-alt"></i></button>
|
|
}
|
|
</th>
|
|
<th>
|
|
Documento
|
|
<Sorter ParamName="NumAnno" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th>
|
|
Descrizione
|
|
</th>
|
|
<th class="text-right">
|
|
Importi
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@cssSelect(record.IdxBillExt)">
|
|
<td class="text-center text-nowrap">
|
|
@if (ShowSelect)
|
|
{
|
|
<button class="btn btn-sm btn-info" @onclick="() => Select(record)"><i class="fas fa-search"></i></button>
|
|
}
|
|
<div class="text-center my-1">
|
|
@if (record.HasBill)
|
|
{
|
|
<i class="fas fa-file-invoice text-success" title="Registrazione Fattura OK"></i>
|
|
}
|
|
else
|
|
{
|
|
<i class="fas fa-file-invoice text-secondary" title="Manca registrazione Fattura"></i>
|
|
}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
@($"{record.DateIns:yyyy-MM-dd}")
|
|
<div>
|
|
<b>@record.Num</b>/<small>@record.YearRef</small>
|
|
</div>
|
|
@if (record.HasBill)
|
|
{
|
|
foreach (var item in record.B2ONav)
|
|
{
|
|
<div class="small text-success">
|
|
@item.OrderNav.Num / @item.OrderNav.YearRef
|
|
</div>
|
|
}
|
|
}
|
|
</td>
|
|
<td style="min-width: 30rem;">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-2">
|
|
<small>(@record.CustomerId)</small>
|
|
<b>@record.RagSoc</b>
|
|
@if (record.CustomerId == 0)
|
|
{
|
|
<i class="fas fa-users text-secondary"></i>
|
|
}
|
|
else
|
|
{
|
|
<i class="fas fa-users text-success"></i>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="d-flex">
|
|
<div class="px-2">
|
|
@if (isSelect(record.IdxBillExt))
|
|
{
|
|
@((MarkupString)fixReturn(record.Descript))
|
|
}
|
|
else
|
|
{
|
|
@((MarkupString)fixReturn(limChar(record.Descript, 150)))
|
|
}
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="text-nowrap text-right">
|
|
<div>
|
|
F: <b>@($"{record.Net:C2}")</b>
|
|
</div>
|
|
<div>
|
|
I: <b>@($"{record.Paid:C2}")</b>
|
|
</div>
|
|
@if(record.AccMovAmount != record.Net)
|
|
{
|
|
<div class="text-danger">
|
|
Δ @($"{record.AccMovAmount - record.Net:C3}")
|
|
</div>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
} |