This commit is contained in:
2022-02-07 20:56:31 +00:00
parent f1dd53414e
commit bcd5715ed2
3 changed files with 41 additions and 14 deletions

View File

@@ -2881,7 +2881,7 @@ namespace AyaNova.Biz
//POTENTIAL CONTRACT ADJUSTMENTS
//First check if there is a matching tagged service rate contract discount, that takes precedence
if (c.ContractServiceRateOverrideItems.Count > 0)
if (c.ContractServiceRateOverrideItems.Count > 0 && Rate!=null)
{
//Iterate all contract tagged items in order of ones with the most tags first
foreach (var csr in c.ContractServiceRateOverrideItems.OrderByDescending(z => z.Tags.Count))