41 lines
2.7 KiB
Plaintext
41 lines
2.7 KiB
Plaintext
@using Indotalent.Features.Sales.PaymentReceive.Cqrs
|
|
@using MudBlazor
|
|
|
|
<MudPaper Elevation="0" Outlined="true" Style="border-radius: 12px; border: 1px solid #E5E7EB;">
|
|
<div style="padding: 20px 24px; border-bottom: 1px solid #E5E7EB; background-color: #ffffff;">
|
|
<MudText Typo="Typo.button" Color="Color.Default" Style="font-weight: 600; color: #111827;">Referenced Invoice Items</MudText>
|
|
</div>
|
|
|
|
<MudTable Items="Items" Striped="true" Class="mud-table-styled" Hover="true" Elevation="0" Dense="true" T="PaymentReceiveItemResponse">
|
|
<HeaderContent>
|
|
<MudTh Style="font-weight: 600; color: #6B7280; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background-color: #F9FAFB; border-bottom: 1px solid #E5E7EB;">Product</MudTh>
|
|
<MudTh Style="font-weight: 600; color: #6B7280; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background-color: #F9FAFB; border-bottom: 1px solid #E5E7EB; text-align: right;">UnitPrice</MudTh>
|
|
<MudTh Style="font-weight: 600; color: #6B7280; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background-color: #F9FAFB; border-bottom: 1px solid #E5E7EB; text-align: right;">Quantity</MudTh>
|
|
<MudTh Style="font-weight: 600; color: #6B7280; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; background-color: #F9FAFB; border-bottom: 1px solid #E5E7EB; text-align: right;">Total</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd DataLabel="Product">
|
|
<MudText Typo="Typo.body2" Style="font-weight: 600; color: #374151;">@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; }
|
|
.mud-input-outlined-border { border-radius: 8px !important; }
|
|
.custom-select-dense .mud-input-control { margin-top: 0 !important; }
|
|
.custom-select-dense .mud-input-slot { padding-top: 4px !important; padding-bottom: 4px !important; padding-left: 8px !important; font-size: 12px !important; }
|
|
</style>
|
|
|
|
@code {
|
|
[Parameter] public List<PaymentReceiveItemResponse> Items { get; set; } = new();
|
|
} |