37 lines
2.2 KiB
Plaintext
37 lines
2.2 KiB
Plaintext
@using Indotalent.Features.Sales.CreditNote.Cqrs
|
|
@using MudBlazor
|
|
|
|
<MudPaper Elevation="0" Outlined="true" Style="border-radius: 12px; border: 1px solid #E5E7EB;">
|
|
<div style="padding: 16px; border-bottom: 1px solid #E5E7EB; background-color: #ffffff;">
|
|
<MudText Typo="Typo.button" Color="Color.Primary" Style="font-weight: 600;">Returned Inventory Items</MudText>
|
|
</div>
|
|
|
|
<MudTable Class="mud-table-styled" Striped="true" Items="Items" Hover="true" Elevation="0" Dense="true" T="CreditNoteItemResponse">
|
|
<HeaderContent>
|
|
<MudTh Style="font-weight: 500; letter-spacing: 0.05em;">Product</MudTh>
|
|
<MudTh Style="font-weight: 500; text-align: right; letter-spacing: 0.05em;">Unit Price</MudTh>
|
|
<MudTh Style="font-weight: 500; text-align: right; letter-spacing: 0.05em;">Qty Returned</MudTh>
|
|
<MudTh Style="font-weight: 500; text-align: right; letter-spacing: 0.05em;">Total Adjustment</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd DataLabel="Product">@context.ProductName</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: 500;">@context.Total.ToString("N2")</MudTd>
|
|
</RowTemplate>
|
|
</MudTable>
|
|
</MudPaper>
|
|
|
|
<style>
|
|
.mud-table-styled .mud-table-row:hover { background-color: #F9FAFB !important; }
|
|
.mud-table-styled .mud-table-cell { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #6B7280; font-size: 0.875rem; }
|
|
.mud-table-styled .mud-table-cell .mud-text-body2 { font-weight: 600; color: #374151; }
|
|
.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<CreditNoteItemResponse> Items { get; set; } = new();
|
|
[Parameter] public bool ReadOnly { get; set; } = true;
|
|
} |