fix: show actual product discount percent instead of misleading '100% تخفیفی'
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m3s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m3s
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
<MudTd>@FormatPrice(context.UnitPrice)</MudTd>
|
<MudTd>@FormatPrice(context.UnitPrice)</MudTd>
|
||||||
<MudTd>
|
<MudTd>
|
||||||
<MudChip T="string" Color="Color.Error" Variant="Variant.Outlined" Size="Size.Small">
|
<MudChip T="string" Color="Color.Error" Variant="Variant.Outlined" Size="Size.Small">
|
||||||
۱۰۰٪ تخفیفی
|
@context.MaxDiscountPercent% تخفیف
|
||||||
</MudChip>
|
</MudChip>
|
||||||
</MudTd>
|
</MudTd>
|
||||||
<MudTd>
|
<MudTd>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<MudText Typo="Typo.subtitle2">@item.Title</MudText>
|
<MudText Typo="Typo.subtitle2">@item.Title</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
<MudChip T="string" Color="Color.Error" Variant="Variant.Outlined" Size="Size.Small">
|
<MudChip T="string" Color="Color.Error" Variant="Variant.Outlined" Size="Size.Small">
|
||||||
۱۰۰٪ تخفیفی
|
@item.MaxDiscountPercent% تخفیف
|
||||||
</MudChip>
|
</MudChip>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,10 @@
|
|||||||
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
<MudText Typo="Typo.caption" Class="mud-text-secondary">
|
||||||
@item.Quantity × @FormatPrice(item.UnitPrice)
|
@item.Quantity × @FormatPrice(item.UnitPrice)
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudText Typo="Typo.caption" Color="Color.Error">۱۰۰٪ تخفیفی</MudText>
|
@if (item.MaxDiscountPercent > 0)
|
||||||
|
{
|
||||||
|
<MudText Typo="Typo.caption" Color="Color.Error">@item.MaxDiscountPercent% تخفیف</MudText>
|
||||||
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudListItemText>
|
</MudListItemText>
|
||||||
@@ -107,7 +110,7 @@
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudAlert Severity="Severity.Success" Variant="Variant.Text" Dense="true" Class="mt-1">
|
<MudAlert Severity="Severity.Success" Variant="Variant.Text" Dense="true" Class="mt-1">
|
||||||
تخفیف ۱۰۰٪ از کیف تخفیفی اعمال میشود.
|
تخفیف هر محصول بهصورت کامل از کیف تخفیفی اعمال میشود.
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
|
|||||||
@@ -71,12 +71,15 @@
|
|||||||
@($"{_product.Price:N0}") تومان
|
@($"{_product.Price:N0}") تومان
|
||||||
</MudText>
|
</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
@if (_product.MaxDiscountPercent > 0)
|
||||||
|
{
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<MudText Typo="Typo.body2" Class="mud-text-secondary">قابل پرداخت از کیف تخفیفی:</MudText>
|
<MudText Typo="Typo.body2" Class="mud-text-secondary">تخفیف از کیف تخفیفی:</MudText>
|
||||||
<MudChip T="string" Color="Color.Error" Variant="Variant.Filled" Size="Size.Small">
|
<MudChip T="string" Color="Color.Error" Variant="Variant.Filled" Size="Size.Small">
|
||||||
۱۰۰٪ تخفیفی (@($"{_product.Price:N0}") تومان)
|
@_product.MaxDiscountPercent% (@($"{_product.Price * _product.MaxDiscountPercent / 100:N0}") تومان)
|
||||||
</MudChip>
|
</MudChip>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|
||||||
|
|||||||
@@ -93,10 +93,13 @@
|
|||||||
فقط @p.RemainingCount عدد
|
فقط @p.RemainingCount عدد
|
||||||
</MudChip>
|
</MudChip>
|
||||||
}
|
}
|
||||||
|
@if (p.MaxDiscountPercent > 0)
|
||||||
|
{
|
||||||
<MudChip T="string" Color="Color.Error" Variant="Variant.Filled" Size="Size.Small"
|
<MudChip T="string" Color="Color.Error" Variant="Variant.Filled" Size="Size.Small"
|
||||||
Style="position:absolute;top:8px;left:8px;">
|
Style="position:absolute;top:8px;left:8px;">
|
||||||
۱۰۰٪ تخفیفی
|
@p.MaxDiscountPercent% تخفیف
|
||||||
</MudChip>
|
</MudChip>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="pa-1 flex-grow-1 d-flex flex-column justify-space-between">
|
<div class="pa-1 flex-grow-1 d-flex flex-column justify-space-between">
|
||||||
<MudText Typo="Typo.subtitle1">@p.Title</MudText>
|
<MudText Typo="Typo.subtitle1">@p.Title</MudText>
|
||||||
|
|||||||
Reference in New Issue
Block a user