Fix [ 1773939 ] Processing button is treated as always updateable

This commit is contained in:
Carlos Ruiz 2008-02-02 18:33:54 +00:00
parent 23c4031415
commit d7c31694e4
1 changed files with 7 additions and 8 deletions

View File

@ -372,6 +372,13 @@ public class GridField
return false; return false;
} }
// Always editable if Active
if (checkContext && "Y".equals(Env.getContext(m_vo.ctx, m_vo.WindowNo, "IsActive"))
&& ( m_vo.ColumnName.equals("Processing")
|| m_vo.ColumnName.equals("PaymentRule")
|| m_vo.ColumnName.equals("DocAction")
|| m_vo.ColumnName.equals("GenerateTo")))
return true;
// Record is Processed *** // Record is Processed ***
if (checkContext if (checkContext
@ -387,14 +394,6 @@ public class GridField
if (checkContext && !Env.getContext(m_vo.ctx, m_vo.WindowNo, "IsActive").equals("Y")) if (checkContext && !Env.getContext(m_vo.ctx, m_vo.WindowNo, "IsActive").equals("Y"))
return false; return false;
// Bahman: Moved this check to here -after isActive check.
// Always editable if Active
if (m_vo.ColumnName.equals("Processing")
|| m_vo.ColumnName.equals("PaymentRule")
|| m_vo.ColumnName.equals("DocAction")
|| m_vo.ColumnName.equals("GenerateTo"))
return true;
// ultimately visibily decides // ultimately visibily decides
return isDisplayed (checkContext); return isDisplayed (checkContext);
} // isEditable } // isEditable