display if special note is present - view/edit note
This commit is contained in:
parent
a0a7273213
commit
2509549827
4 changed files with 54 additions and 40 deletions
|
@ -40,7 +40,10 @@
|
|||
<DisplayStateComponent StateClass="@(company.HasFolded == 1 ? "the-dead" : Utils.GetVisitState(company.NextVisit))" />
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<span class="text-info"><i class="oi oi-info"></i></span>
|
||||
@if (!string.IsNullOrWhiteSpace(company.Note))
|
||||
{
|
||||
<i class="bi-exclamation-diamond-fill text-danger" style="font-size: 2rem;"></i>
|
||||
}
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
@company.Name
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<h2>@Company.Name</h2>
|
||||
|
||||
<div class="list-group-flush">
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
|
|
@ -25,52 +25,63 @@
|
|||
{
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-white">
|
||||
<h3>@_company.Account - @_company.Name</h3>
|
||||
<h3>@_company.Name</h3>
|
||||
</div>
|
||||
@if (_dk)
|
||||
{
|
||||
<div class="card-body">
|
||||
<VatAddressInputComponent Address="_vatAddress" OnValidSubmit="GetInfoFromAddress"/>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
</div>
|
||||
@if (_vInfos.Any())
|
||||
{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">CVR ORG</th>
|
||||
<th scope="col">Navn</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var info in _vInfos)
|
||||
{
|
||||
@if (_vInfos.Any())
|
||||
{
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="align-middle">@info.VatNumber</td>
|
||||
<td class="align-middle">@info.Name</td>
|
||||
<td class="align-middle">@info.States[^1].State</td>
|
||||
<td class="align-middle">
|
||||
<button class="btn btn-primary" @onclick="@(() => SelectCompany(info.VatNumber, true))">OVERFØR</button>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<button class="btn btn-primary" @onclick="@(() => SelectCompany(info.VatNumber, false))">CVR/VAT</button>
|
||||
</td>
|
||||
<th scope="col">CVR ORG</th>
|
||||
<th scope="col">Navn</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col"></th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var info in _vInfos)
|
||||
{
|
||||
<tr>
|
||||
<td class="align-middle">@info.VatNumber</td>
|
||||
<td class="align-middle">@info.Name</td>
|
||||
<td class="align-middle">@info.States[^1].State</td>
|
||||
<td class="align-middle">
|
||||
<button class="btn btn-primary" @onclick="@(() => SelectCompany(info.VatNumber, true))">OVERFØR</button>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<button class="btn btn-primary" @onclick="@(() => SelectCompany(info.VatNumber, false))">CVR/VAT</button>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<EditForm EditContext="_editContext" OnValidSubmit="SubmitUpdate">
|
||||
<DataAnnotationsValidator/>
|
||||
<div class="card-body">
|
||||
<table class="table table-sm">
|
||||
<tbody>
|
||||
<tr class="align-middle">
|
||||
<th colspan="2">BEMÆRK</th>
|
||||
<td colspan="3">
|
||||
@if (string.IsNullOrWhiteSpace(_company.Note))
|
||||
{
|
||||
<InputText id="note" class="form-control" @bind-Value="_company.Note"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
<InputText id="note" class="form-control bg-warning text-black" @bind-Value="_company.Note"/>
|
||||
}
|
||||
<ValidationMessage For="@(() => _company.Note)"></ValidationMessage>
|
||||
</td>
|
||||
</tr >
|
||||
<tr class="align-middle">
|
||||
<th>
|
||||
CVR/ORG
|
||||
|
@ -196,7 +207,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div style="display:@(_hideButtons ? "none": "block")">
|
||||
<div style="display:@(_hideButtons ? "none" : "block")">
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
@ -226,7 +237,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
<LoaderThreeDots />
|
||||
<LoaderThreeDots/>
|
||||
}
|
||||
|
||||
<VatLookupDkModal VatAddress="_vatAddress" OnSelectedCompany="OnSelectedCompany" @ref="_vatLookupModal" />
|
||||
<VatLookupDkModal VatAddress="_vatAddress" OnSelectedCompany="OnSelectedCompany" @ref="_vatLookupModal"/>
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"appInfo": {
|
||||
"name": "Wonky Client",
|
||||
"version": "0.28.0",
|
||||
"version": "0.29.1",
|
||||
"rc": false,
|
||||
"sandBox": false,
|
||||
"image": "grumpy-coder.png"
|
||||
},
|
||||
"apiConfig": {
|
||||
"innoBaseUrl": "https://dev.innotec.dk",
|
||||
"innoBaseUrl": "https://app.innotec.dk",
|
||||
"glsTrackUrl": "https://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DK01/DA/5004.htm?txtAction=71000&txtRefNo=",
|
||||
"glsId": "",
|
||||
"serviceVirk": "api/v2/services/virk",
|
||||
|
|
Loading…
Reference in a new issue