fix(user-order-details): update discount column to total amount in order details table
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 18m50s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 18m50s
- Changed the 'تخفیف واحد' column to 'جمع کل' and updated the calculation to display the total amount based on unit price and count.
This commit is contained in:
@@ -148,7 +148,7 @@
|
|||||||
<MudTh>محصول</MudTh>
|
<MudTh>محصول</MudTh>
|
||||||
<MudTh>قیمت واحد</MudTh>
|
<MudTh>قیمت واحد</MudTh>
|
||||||
<MudTh>تعداد</MudTh>
|
<MudTh>تعداد</MudTh>
|
||||||
<MudTh>تخفیف واحد</MudTh>
|
<MudTh>جمع کل</MudTh>
|
||||||
</HeaderContent>
|
</HeaderContent>
|
||||||
<RowTemplate>
|
<RowTemplate>
|
||||||
<MudTd>
|
<MudTd>
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
<MudTd>@context.ProductTitle</MudTd>
|
<MudTd>@context.ProductTitle</MudTd>
|
||||||
<MudTd>@context.UnitPrice?.ToString("N0")</MudTd>
|
<MudTd>@context.UnitPrice?.ToString("N0")</MudTd>
|
||||||
<MudTd>@context.Count</MudTd>
|
<MudTd>@context.Count</MudTd>
|
||||||
<MudTd>@context.UnitDiscountPrice?.ToString("N0")</MudTd>
|
<MudTd>@(((context.UnitPrice ?? 0) * (context.Count ?? 0)).ToString("N0"))</MudTd>
|
||||||
</RowTemplate>
|
</RowTemplate>
|
||||||
</MudTable>
|
</MudTable>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user