|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Gremlin.GremlinUI.ViewModels
|
|
|
|
|
{
|
|
|
|
|
@ -70,13 +71,17 @@ namespace Gremlin.GremlinUI.ViewModels
|
|
|
|
|
totalDiscount += lineItemVM.TotalDiscount;
|
|
|
|
|
totalNet += lineItemVM.TotalNet;
|
|
|
|
|
|
|
|
|
|
if (lineItemVM.ProductLine == "RB")
|
|
|
|
|
switch (lineItemVM.ProductLine)
|
|
|
|
|
{
|
|
|
|
|
quoteContainsRB = true;
|
|
|
|
|
case "RB":
|
|
|
|
|
quoteContainsRB = true; break;
|
|
|
|
|
case "3PP":
|
|
|
|
|
quoteContains3PP = true; break;
|
|
|
|
|
}
|
|
|
|
|
else if (lineItemVM.ProductLine == "3PP")
|
|
|
|
|
|
|
|
|
|
if (lineItemVM.OptionNumber.StartsWith("8D"))
|
|
|
|
|
{
|
|
|
|
|
quoteContains3PP = true;
|
|
|
|
|
quoteVM.Warranty = int.Parse(lineItemVM.OptionNumber.Last().ToString()) * 12;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quoteVM.LineItemsVM.Add(lineItemVM);
|
|
|
|
|
|