Kleinunternehmer Mode

This commit is contained in:
Andre Beging
2024-11-21 15:28:04 +01:00
parent 1211b789bc
commit c21e1f0978
4 changed files with 103 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
@page "/edit/{InvoiceId}"
@using QuestPDF
@using Server.Data
@using Server.Model
@rendermode InteractiveServer
@@ -85,18 +86,21 @@
<InputNumber TValue="double" class="form-control" @bind-Value="@item.Quantity"></InputNumber>
</div>
<div class="col-sm">
<label class="form-label mb-0">Price (Netto)</label>
<label class="form-label mb-0">Price @(SettingsData.Instance.Kleinunternehmer ? string.Empty : "(Netto)")</label>
<InputNumber TValue="double" class="form-control" @bind-Value="@item.PriceNetto"></InputNumber>
</div>
<div class="col-sm">
<label class="form-label mb-0">Tax Type</label>
<InputSelect @bind-Value="@item.TaxType" class="form-select">
@foreach (var taxType in Enum.GetValues(typeof(TaxType)))
{
<option value="@taxType">@taxType</option>
}
</InputSelect>
</div>
@if (!SettingsData.Instance.Kleinunternehmer)
{
<div class="col-sm">
<label class="form-label mb-0">Tax Type</label>
<InputSelect @bind-Value="@item.TaxType" class="form-select">
@foreach (var taxType in Enum.GetValues(typeof(TaxType)))
{
<option value="@taxType">@taxType</option>
}
</InputSelect>
</div>
}
</div>
<div class="mb-1 mt-2">