BF[2779278] Document Action Access bug

This commit is contained in:
Heng Sin Low 2009-04-23 07:42:16 +00:00
parent 4bbd214d51
commit 6050c6a05f
1 changed files with 67 additions and 55 deletions

View File

@ -149,6 +149,18 @@ public class WDocActionPanel extends Window implements EventListener
String[] docActionHolder = new String[]{DocAction};
index = DocumentEngine.getValidActions(DocStatus, Processing, OrderType, IsSOTrx,
m_AD_Table_ID, docActionHolder, options);
Integer doctypeId = (Integer)gridTab.getValue("C_DocType_ID");
if(doctypeId==null || doctypeId.intValue()==0){
doctypeId = (Integer)gridTab.getValue("C_DocTypeTarget_ID");
}
logger.fine("get doctype: " + doctypeId);
if (doctypeId != null) {
index = DocumentEngine.checkActionAccess(Env.getAD_Client_ID(Env.getCtx()),
Env.getAD_Role_ID(Env.getCtx()),
doctypeId, options, index);
}
DocAction = docActionHolder[0];
/**