Allow approval to work if no existing approved versions
Try too set margins if bottom margin is undefined for MSWord section Corrected comment
This commit is contained in:
@@ -925,9 +925,12 @@ namespace VEPROMS
|
||||
foreach (ApprovalProcedure ap in MyProcedures) //spin thru looking for updating current revision
|
||||
{
|
||||
RevisionInfo ric = RevisionInfo.GetCurrentByItemID(ap.ProcInfo.ItemID);
|
||||
VersionInfo vi = ric.LatestVersion;
|
||||
if (ap.RevNumber == ric.RevisionNumber && nsi.IsApproved == 0 && vi.MyStage.IsApproved == 1)
|
||||
sb.AppendLine(string.Format("{0} - '{1}'", ap.ProcInfo.DisplayNumber, vi.MyStage.Name));
|
||||
if (ric != null)
|
||||
{
|
||||
VersionInfo vi = ric.LatestVersion;
|
||||
if (ap.RevNumber == ric.RevisionNumber && nsi.IsApproved == 0 && vi.MyStage.IsApproved == 1)
|
||||
sb.AppendLine(string.Format("{0} - '{1}'", ap.ProcInfo.DisplayNumber, vi.MyStage.Name));
|
||||
}
|
||||
}
|
||||
if (sb.Length > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user