< Summary

Information
Class: AspNetCoreGeneratedDocument.Areas_OneCFresh_Views_Catalog_VatRates
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/Views/Catalog/VatRates.cshtml
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 40
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 6
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ExecuteAsync()0%4260%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/Views/Catalog/VatRates.cshtml

#LineLine coverage
 1@model OzonOrdersWeb.Areas.OneCFresh.ViewModels.VatRatesViewModel
 2@{
 03    ViewData["Title"] = "Ставки НДС";
 4}
 5
 6<div class="d-flex align-items-center gap-2 mb-3">
 7    <h5 class="mb-0 fw-semibold">
 08        <i class="bi bi-percent me-2 text-primary"></i>@ViewData["Title"]
 9    </h5>
 010    <span class="badge bg-secondary">@Model.Items.Count</span>
 11</div>
 12
 013@if (TempData["Error"] is string err)
 14{
 015    <div class="alert alert-danger py-2 small">@err</div>
 16}
 17
 18<div class="table-responsive" style="max-width: 600px">
 19    <table class="table table-sm table-hover onec-table border">
 20        <thead class="table-light">
 21            <tr>
 22                <th>Ставка НДС</th>
 23                <th>GUID</th>
 24            </tr>
 25        </thead>
 26        <tbody>
 027            @foreach (var item in Model.Items)
 28            {
 29                <tr>
 030                    <td class="fw-semibold">@item.Description</td>
 031                    <td class="font-monospace text-muted" style="font-size:.75rem">@item.RefKey.ToString().ToUpper()</td
 32                </tr>
 33            }
 034            @if (!Model.Items.Any())
 35            {
 36                <tr><td colspan="2" class="text-center text-muted py-3">Записи не найдены</td></tr>
 37            }
 38        </tbody>
 39    </table>
 40</div>

Methods/Properties

ExecuteAsync()