| org.kuali.kfs.document.authorization.AccountingDocumentAuthorizerBase org.kuali.module.purap.document.authorization.PurchaseOrderDocumentAuthorizer
All known Subclasses: org.kuali.module.purap.document.authorization.PurchaseOrderVoidDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderRemoveHoldDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderCloseDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderReopenDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderRetransmitDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderPaymentHoldDocumentAuthorizer, org.kuali.module.purap.document.authorization.PurchaseOrderAmendmentDocumentAuthorizer,
getEditMode | public Map getEditMode(Document d, UniversalUser user, List sourceAccountingLines, List targetAccountingLines)(Code) | | This is essentially the same getEditMode as in DocumentAuthorizerBase.java. In AccountingDocumentAuthorizerBase.java, which
is currently the superclass of this class, this method is being overriden. Unfortunately it will return view only edit mode
if the initiator of the document is different than the current user. Currently the initiators of Purchase Order Document are
all "Kuali System User" which is different than the users that we use to log in. Therefore here we have to re-override the
getEditMode to prevent the problem where the fields appear as read-only. There has been an addition to this method, which at
this point I'm not sure whether there would be any cases where the Purchase Order Document would have status "RETR". If so,
then when the status code is "RETR" (retransmit), the edit mode should be set to displayRetransmitTab because we want to hide
the other tabs and display the retransmit tab when the user clicks on the Retransmit button (is that what we want ?)
See Also: org.kuali.core.document.authorization.DocumentAuthorizer.getEditMode(org.kuali.core.document.Documentorg.kuali.core.bo.user.UniversalUser) |
|
|