initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
@using Indotalent.Features.Sales.PaymentReceive.Cqrs
|
||||
@using MudBlazor
|
||||
|
||||
<MudPaper Elevation="0" Outlined="true" Style="border-radius: 4px; border: 1px solid #E5E7EB;">
|
||||
<div style="padding: 16px; border-bottom: 1px solid #E5E7EB; background-color: #F8FAFC;">
|
||||
<MudText Typo="Typo.button" Color="Color.Primary" Style="font-weight: 800;">Referenced Invoice Items</MudText>
|
||||
</div>
|
||||
|
||||
<MudTable Items="Items" Hover="true" Elevation="0" Dense="true" T="PaymentReceiveItemResponse">
|
||||
<HeaderContent>
|
||||
<MudTh Style="font-weight: 700;">Product</MudTh>
|
||||
<MudTh Style="font-weight: 700; text-align: right;">UnitPrice</MudTh>
|
||||
<MudTh Style="font-weight: 700; text-align: right;">Quantity</MudTh>
|
||||
<MudTh Style="font-weight: 700; text-align: right;">Total</MudTh>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="Product">
|
||||
<MudText Typo="Typo.body2" Style="font-weight: 600;">@context.ProductName</MudText>
|
||||
@if (!string.IsNullOrEmpty(context.Summary))
|
||||
{
|
||||
<MudText Typo="Typo.caption" Color="Color.Secondary">@context.Summary</MudText>
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd DataLabel="UnitPrice" Style="text-align: right;">@context.UnitPrice.ToString("N2")</MudTd>
|
||||
<MudTd DataLabel="Quantity" Style="text-align: right;">@context.Quantity</MudTd>
|
||||
<MudTd DataLabel="Total" Style="text-align: right; font-weight: 700;">@context.Total.ToString("N2")</MudTd>
|
||||
</RowTemplate>
|
||||
</MudTable>
|
||||
</MudPaper>
|
||||
<style>
|
||||
.mud-table-styled .mud-table-row:hover { background-color: #F9FAFB !important; }
|
||||
</style>
|
||||
@code {
|
||||
[Parameter] public List<PaymentReceiveItemResponse> Items { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user