diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index a0340ed4..1f200bb3 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -4749,13 +4749,20 @@ namespace VEPROMS.CSLA.Library if (ActiveFormat.MyStepSectionLayoutData.AddContActTagToHighLevelRNOWhenIncludedOnCAS && IsInRNO && !MyParent.IsInRNO && FormatStepData.TabData.CASPrintMacro != null) { - StepConfig sc = MyConfig as StepConfig; - if (sc != null && sc.Step_CAS == "True") + // B2026-009 needed to make sure parent wasn't a continuous action step type + // the ExcludeFromContActSum is set to False for continuous action + // step types and True for all others + StepConfig psc = MyParent.MyConfig as StepConfig; + if (MyParent.FormatStepData.ExcludeFromContActSum && psc != null && psc.Step_CAS != "True") { - if (FormatStepData.TabData.CASPrintMacro != null) - _MyTab.Text = FormatStepData.TabData.CASPrintMacro + _MyTab.Text; - if (FormatStepData.TabData.CASEditTag != null) - _MyTab.CleanText = FormatStepData.TabData.CASEditTag + _MyTab.CleanText; + StepConfig sc = MyConfig as StepConfig; + if (sc != null && sc.Step_CAS == "True") + { + if (FormatStepData.TabData.CASPrintMacro != null) + _MyTab.Text = FormatStepData.TabData.CASPrintMacro + _MyTab.Text; + if (FormatStepData.TabData.CASEditTag != null) + _MyTab.CleanText = FormatStepData.TabData.CASEditTag + _MyTab.CleanText; + } } } _MyTab.RNOTabWidthAdjust = ((ItemInfo)ActiveParent).FormatStepData.TabData.RNOAdjustTabSize ?? 0;