Update payment status and amount fields in user orders

This commit is contained in:
masoodafar-web
2025-11-28 04:04:33 +03:30
parent de8d1158a8
commit 1bce6f3198
6 changed files with 61 additions and 40 deletions

View File

@@ -26,21 +26,24 @@
<MudStack Spacing="1">
<MudText Typo="Typo.subtitle2">خلاصه سفارش</MudText>
<MudDivider />
<MudText Typo="Typo.body2">مبلغ: @_model.Price.ToString("N0") تومان</MudText>
<MudText Typo="Typo.body2">مبلغ: @_model.Amount.ToString("N0") تومان</MudText>
<MudText Typo="Typo.body2">شناسه پرداخت: @_model.TransactionId</MudText>
<MudText Typo="Typo.body2">
تاریخ پرداخت:
@_model.PaymentDate.ToDateTime().ToLocalTime().ToString("yyyy/MM/dd HH:mm")
@_model.PaymentDate.ToDateTime().ToLocalTime().MiladiToJalaliWithTime()
</MudText>
<MudText Typo="Typo.body2">
روش پرداخت:
@GetPaymentMethodText(_model.PaymentMethod)
@GetPaymentMethodText(_model.PaymentMethod.GetHashCode())
</MudText>
<MudText Typo="Typo.body2">
وضعیت پرداخت:
@if (_model.PaymentStatus)
@if (_model.PaymentStatus==PaymentStatus.Success)
{
<MudChip T="string" Color="Color.Success" Size="Size.Small">پرداخت شده</MudChip>
}else if (_model.PaymentStatus==PaymentStatus.Pending)
{
<MudChip T="string" Color="Color.Success" Size="Size.Small">در انتظار پرداخت</MudChip>
}
else
{