This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user