Total Price => Total Cost

This commit is contained in:
2015-11-02 09:43:06 -05:00
parent 9f0c410c65
commit bcf2207d7b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ namespace MileageTraker.Web.ViewModels.Vehicle
public IList<VehicleCostItem> CostItems { get; set; }
[Currency]
public decimal TotalPrice { get { return CostItems.Sum(i => i.TotalPrice); } }
public decimal TotalCost { get { return CostItems.Sum(i => i.TotalPrice); } }
}
}
+2 -2
View File
@@ -27,7 +27,7 @@
Cost Type
</th>
<th>
Total Price
Total Cost
</th>
</tr>
@foreach (var item in Model.CostItems)
@@ -57,7 +57,7 @@
<tfoot>
<tr>
<td colspan="3" style="text-align: right"><strong>Total:</strong></td>
<td><strong>$@Html.DisplayTextFor(m => m.TotalPrice)</strong></td>
<td><strong>$@Html.DisplayTextFor(m => m.TotalCost)</strong></td>
</tr>
</tfoot>
</table>