This commit is contained in:
@@ -1917,12 +1917,16 @@ namespace AyaNova.Biz
|
|||||||
if (c.ServiceRatesOverridePct == 0)
|
if (c.ServiceRatesOverridePct == 0)
|
||||||
return;// no generic discount for all items so bail now
|
return;// no generic discount for all items so bail now
|
||||||
|
|
||||||
//Contract has a generic override so apply it
|
{
|
||||||
if (c.ServiceRatesOverrideType == ContractOverrideType.CostMarkup)
|
var pct = c.ServiceRatesOverridePct / 100;
|
||||||
o.Price = o.Cost + (o.Cost * c.ServiceRatesOverridePct);
|
|
||||||
else if (c.ServiceRatesOverrideType == ContractOverrideType.PriceDiscount)
|
//Contract has a generic override so apply it
|
||||||
o.Price = o.ListPrice - (o.ListPrice * c.ServiceRatesOverridePct);
|
if (c.ServiceRatesOverrideType == ContractOverrideType.CostMarkup)
|
||||||
/ 100
|
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