This commit is contained in:
2021-05-14 22:08:49 +00:00
parent fc141d0446
commit 33ff117578

View File

@@ -1917,12 +1917,16 @@ namespace AyaNova.Biz
if (c.ServiceRatesOverridePct == 0)
return;// no generic discount for all items so bail now
//Contract has a generic override so apply it
if (c.ServiceRatesOverrideType == ContractOverrideType.CostMarkup)
o.Price = o.Cost + (o.Cost * c.ServiceRatesOverridePct);
else if (c.ServiceRatesOverrideType == ContractOverrideType.PriceDiscount)
o.Price = o.ListPrice - (o.ListPrice * c.ServiceRatesOverridePct);
/ 100
{
var pct = c.ServiceRatesOverridePct / 100;
//Contract has a generic override so apply it
if (c.ServiceRatesOverrideType == ContractOverrideType.CostMarkup)
o.Price = o.Cost + (o.Cost * pct);
else if (c.ServiceRatesOverrideType == ContractOverrideType.PriceDiscount)
o.Price = o.ListPrice - (o.ListPrice * pct);
}
}