This commit is contained in:
Frede Hundewadt 2022-06-23 14:19:24 +02:00
parent 16b934e3f4
commit 1225760d7f
4 changed files with 5 additions and 6 deletions

View file

@ -28,8 +28,6 @@
<div class="card-header"> <div class="card-header">
<h3>@_company.Account - @_company.Name</h3> <h3>@_company.Account - @_company.Name</h3>
</div> </div>
@if (countryCode == "dk" && _company.ValidVat == 0)
{
<div class="card-body"> <div class="card-body">
<VatAddressInputComponent Address="vatAddress" OnValidSubmit="GetInfoFromAddress"/> <VatAddressInputComponent Address="vatAddress" OnValidSubmit="GetInfoFromAddress"/>
</div> </div>
@ -63,7 +61,7 @@
</tbody> </tbody>
</table> </table>
} }
}
<EditForm EditContext="_editContext" OnValidSubmit="SubmitUpdate"> <EditForm EditContext="_editContext" OnValidSubmit="SubmitUpdate">
<DataAnnotationsValidator/> <DataAnnotationsValidator/>
<div class="card-body"> <div class="card-body">

View file

@ -29,7 +29,7 @@
<ItemSearchComponent OnChanged="SetSearchCol"/> <ItemSearchComponent OnChanged="SetSearchCol"/>
</div> </div>
<div class="col"> <div class="col">
<SearchPhraseCompanonent OnChanged="SetSearchPhrase"/> <SearchPhraseComponent OnChanged="SetSearchPhrase"/>
</div> </div>
<div class="col"> <div class="col">
<ItemSortComponent OnChanged="SetSortCol"/> <ItemSortComponent OnChanged="SetSortCol"/>

View file

@ -52,6 +52,7 @@ builder.Services.AddScoped<ICompanyHttpRepository, CompanyHttpRepository>();
builder.Services.AddScoped<ISalesItemHttpRepository, SalesItemHttpRepository>(); builder.Services.AddScoped<ISalesItemHttpRepository, SalesItemHttpRepository>();
builder.Services.AddScoped<IActivityHttpRepository, ActivityHttpRepository>(); builder.Services.AddScoped<IActivityHttpRepository, ActivityHttpRepository>();
builder.Services.AddScoped<IReportHttpRepository, ReportHttpRepository>(); builder.Services.AddScoped<IReportHttpRepository, ReportHttpRepository>();
builder.Services.AddScoped<ITaskItemHttpRepository, TaskItemHttpRepository>();
builder.Services.AddScoped<HttpInterceptorService>(); builder.Services.AddScoped<HttpInterceptorService>();
builder.Services.AddBlazoredLocalStorage(); builder.Services.AddBlazoredLocalStorage();

View file

@ -18,12 +18,12 @@
}, },
"appInfo": { "appInfo": {
"name": "Wonky Client", "name": "Wonky Client",
"version": "0.8.20", "version": "0.8.21",
"isBeta": true, "isBeta": true,
"image": "grumpy-coder.png" "image": "grumpy-coder.png"
}, },
"apiConfig": { "apiConfig": {
"baseAddress": "https://dev.innotec.dk", "baseAddress": "https://staging.innotec.dk",
"tokenPath": "token", "tokenPath": "token",
"userInfo": "api/auth/userinfo", "userInfo": "api/auth/userinfo",
"companyEndpoint": "api/v2/crm/companies", "companyEndpoint": "api/v2/crm/companies",