Logic fixed to handle transition updates when printing a P/C PC child where the first step is not applicable and the second step is applicable.

This commit is contained in:
Rich 2014-04-14 20:57:06 +00:00
parent a7081cad94
commit 9573bb4b7b

View File

@ -876,7 +876,14 @@ namespace VEPROMS.CSLA.Library
tb.AppendPrefix();
}
if (tb._ToItem.PreviousID == null && tb._ToItem.ItemPartCount == 0 && tb._ToItem.ItemDocVersionCount == 0)
{
// Logic added for handling applicability. If the first item is not applicable, then the second item will effectively become
// the first item but it's itempartcount will be zero
if(tb._ToItem.ActiveParent is ItemInfo && (tb._ToItem.ActiveParent as ItemInfo).Steps[0].ItemID == tb._ToItem.ItemID)
tb.ReplaceToken(Tab(tb._ToItem, true));
else
tb.Append("?");
}
else
tb.ReplaceToken(Tab(tb._ToItem, true));
return true;