org.kuali.kfs.module.purap.document.web.struts
Class PurchaseOrderForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.kuali.rice.kns.web.struts.pojo.PojoFormBase
          extended by org.kuali.rice.kns.web.struts.form.KualiForm
              extended by org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
                  extended by org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
                      extended by org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase
                          extended by org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
                              extended by org.kuali.kfs.module.purap.document.web.struts.PurchasingAccountsPayableFormBase
                                  extended by org.kuali.kfs.module.purap.document.web.struts.PurchasingFormBase
                                      extended by org.kuali.kfs.module.purap.document.web.struts.PurchaseOrderForm
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.web.struts.pojo.PojoForm

public class PurchaseOrderForm
extends PurchasingFormBase

Struts Action Form for Purchase Order document.

See Also:
Serialized Form

Field Summary
protected  Map accountingLineEditingMode
           
protected  Long awardedVendorNumber
           
protected  SensitiveDataAssignment lastSensitiveDataAssignment
           
protected  PurchaseOrderVendorQuote newPurchaseOrderVendorQuote
           
protected  PurchaseOrderVendorStipulation newPurchaseOrderVendorStipulationLine
           
protected  SensitiveData newSensitiveDataLine
           
protected  String retransmitFaxNumber
           
protected  String retransmitHeader
           
protected  String[] retransmitItemsSelected
           
protected  String retransmitTransmissionMethod
           
protected  String sensitiveDataAssignmentReason
           
protected  List<SensitiveData> sensitiveDatasAssigned
           
protected  String splitNoteText
           
 
Fields inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingFormBase
accountDistributionnewSourceLine, accountDistributionnextSourceLineNumber, accountDistributionsourceAccountingLines, calculated, distributePurchasingCommodityCode, distributePurchasingCommodityDescription, hideDistributeAccounts, initialZipCode, itemImportFile, locationBuildingFromLookup, locationCampusFromLookup, newPurchasingCapitalAssetLocationLine, newPurchasingItemLine, notOtherDeliveryBuilding, totalPercentageOfAccountDistributionsourceAccountingLines
 
Fields inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingAccountsPayableFormBase
summaryAccounts
 
Fields inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
editableAccounts, forcedLookupOptionalFields, hideDetails, LOG, newSourceLine, newTargetLine, sourceFile, targetFile
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
forcedReadOnlyFields
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
adHocActionRequestCodes, attachmentFile, documentActions, editingMode, suppressAllButtons
 
Fields inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
extraButtons
 
Fields inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase
requiredNonEditableProperties
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
PurchaseOrderForm()
          Constructs a PurchaseOrderForm instance and sets up the appropriately casted document.
 
Method Summary
protected  boolean canAmend()
          Determines whether to display the amend button for the purchase order document.
protected  boolean canClose()
          Determines whether to display the close order button to close the purchase order document.
protected  boolean canContinuePoSplit()
          Determines whether the PO is in a status that signifies it has enough information to generate a Split PO.
protected  boolean canCreateReceiving()
          Determines if a line item receiving document can be created for the purchase order.
protected  boolean canHoldPayment()
          Determines whether to display the payment hold buttons for the purchase order document.
protected  boolean canPrintRetransmit()
          Determines whether to display the button to print the pdf on a retransmit document.
protected  boolean canRemoveHold()
          Determines whether to display the remove hold button for the purchase order document.
protected  boolean canReopen()
          Determines whether to display the open order button to reopen the purchase order document.
protected  boolean canRetransmit()
          Determines whether to display the retransmit button.
protected  boolean canSplitPo()
          Determines if a Split PO Document can be created from this purchase order.
protected  boolean canVoid()
          Determines whether to display the void button for the purchase order document.
protected  Map<String,org.kuali.rice.kns.web.ui.ExtraButton> createButtonsMap()
          Creates a MAP for all the buttons to appear on the Purchase Order Form, and sets the attributes of these buttons.
 Map getAccountingLineEditingMode()
           
 PurchaseOrderVendorStipulation getAndResetNewPurchaseOrderVendorStipulationLine()
          Returns the new Purchase Order Vendor Stipulation Line and resets it.
 Long getAwardedVendorNumber()
           
 Class getCapitalAssetLocationClass()
           
protected  String getDefaultDocumentTypeName()
           
 List<org.kuali.rice.kns.web.ui.ExtraButton> getExtraButtons()
          Override the superclass method to add appropriate buttons for PurchaseOrderDocument.
 Class getItemCapitalAssetClass()
           
 SensitiveDataAssignment getLastSensitiveDataAssignment()
           
 PurchaseOrderVendorQuote getNewPurchaseOrderVendorQuote()
           
 PurchaseOrderVendorStipulation getNewPurchaseOrderVendorStipulationLine()
           
 SensitiveData getNewSensitiveDataLine()
           
 PurchaseOrderDocument getPurchaseOrderDocument()
           
 String[] getRetransmitItemsSelected()
           
 String getSensitiveDataAssignmentReason()
           
 List<SensitiveData> getSensitiveDatasAssigned()
           
 String getSplitNoteText()
           
 String getStatusChange()
           
 boolean isReadOnlyReceivingRequired()
           
 void populate(javax.servlet.http.HttpServletRequest request)
          Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.
 void populateHeaderFields(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
           
protected  boolean processPaymentRequestRulesForCanClose(PurchaseOrderDocument document)
          Processes validation rules having to do with any payment requests that the given purchase order may have.
 void setAccountingLineEditingMode(Map accountingLineEditingMode)
           
 void setAwardedVendorNumber(Long awardedVendorNumber)
           
 void setLastSensitiveDataAssignment(SensitiveDataAssignment lastSensitiveDataAssignment)
           
 void setNewPurchaseOrderVendorQuote(PurchaseOrderVendorQuote newPurchaseOrderVendorQuote)
           
 void setNewPurchaseOrderVendorStipulationLine(PurchaseOrderVendorStipulation newPurchaseOrderVendorStipulationLine)
           
 void setNewSensitiveDataLine(SensitiveData newSensitiveDataLine)
           
 void setPurchaseOrderDocument(PurchaseOrderDocument purchaseOrderDocument)
           
 void setRetransmitItemsSelected(String[] retransmitItemsSelected)
           
 void setSensitiveDataAssignmentReason(String sensitiveDataAssignmentReason)
           
 void setSensitiveDatasAssigned(List<SensitiveData> poSensitiveData)
           
 void setSplitNoteText(String splitNoteText)
           
 void setStatusChange(String statusChange)
           
 PurchaseOrderAccount setupNewAccountDistributionAccountingLine()
          This method should be overriden.
 PurchaseOrderAccount setupNewPurchasingAccountingLine()
          This method should be overriden (or see accountingLines for an alternate way of doing this with newInstance)
 CapitalAssetLocation setupNewPurchasingCapitalAssetLocationLine()
           
 PurApItem setupNewPurchasingItemLine()
          This method should be overriden (or see accountingLines for an alternate way of doing this with newInstance)
 boolean shouldMethodToCallParameterBeUsed(String methodToCallParameterName, String methodToCallParameterValue, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingFormBase
addAccountDistributionsourceAccountingLine, canUserCalculate, getAccountDistributionnewSourceLine, getAccountDistributionnextSourceLineNumber, getAccountDistributionsourceAccountingLine, getAccountDistributionsourceAccountingLines, getAndResetNewPurchasingCapitalAssetLocationLine, getAndResetNewPurchasingItemLine, getDistributePurchasingCommodityCode, getDistributePurchasingCommodityDescription, getHideDistributeAccounts, getInitialZipCode, getItemImportFile, getLineItemImportInstructionsUrl, getLocationBuildingFromLookup, getLocationCampusFromLookup, getNewPurchasingCapitalAssetLocationLine, getNewPurchasingItemLine, getNotOtherDeliveryBuilding, getPurchasingCapitalAssetCountAssetNumberAvailability, getPurchasingCapitalAssetLocationAvailability, getPurchasingCapitalAssetSystemAvailability, getPurchasingCapitalAssetSystemCommentsAvailability, getPurchasingCapitalAssetSystemDescriptionAvailability, getPurchasingItemCapitalAssetAvailability, getTotalPercentageOfAccountDistributionsourceAccountingLines, isCalculated, repopulateOverrides, resetNewPurchasingCapitalAssetLocationLine, setAccountDistributionnewSourceLine, setAccountDistributionnextSourceLineNumber, setAccountDistributionsourceAccountingLines, setCalculated, setDistributePurchasingCommodityCode, setDistributePurchasingCommodityDescription, setHideDistributeAccounts, setInitialZipCode, setItemImportFile, setLocationBuildingFromLookup, setLocationCampusFromLookup, setNewPurchasingCapitalAssetLocationLine, setNewPurchasingItemLine, setNotOtherDeliveryBuilding, setTotalPercentageOfAccountDistributionsourceAccountingLines
 
Methods inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingAccountsPayableFormBase
addExtraButton, clearSummaryAccounts, getBaselineSourceAccountingLines, getDisbursementInfoUrl, getSummaryAccounts, populateAccountingLinesForResponse, populateItemAccountingLines, refreshAccountSummmary, setSummaryAccounts
 
Methods inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentFormBase
createNewSourceAccountingLine, createNewTargetAccountingLine, customInitMaxUploadSizes, getAccountingLineImportInstructionsUrl, getCurrencyFormattedSourceTotal, getCurrencyFormattedTargetTotal, getEditableAccounts, getExcludedmethodToCall, getFinancialDocument, getForcedLookupOptionalFields, getHideDetails, getNewSourceLine, getNewTargetLine, getSourceFile, getTargetFile, harvestAccountingLines, isHideDetails, populateAccountingLine, populateAccountingLines, populateSourceAccountingLine, populateTargetAccountingLine, setEditableAccounts, setForcedLookupOptionalFields, setHideDetails, setNewSourceLine, setNewTargetLine, setSourceFile, setTargetFile
 
Methods inherited from class org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase
extendDocInfoToThreeColumns, generateErrorCorrectionButton
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
discoverDocumentTypeName, formatReversalDate, getForcedReadOnlyFields, getTransactionalDocument, instantiateTransactionalDocumentByDocumentTypeName, populateEmptyMultiSelect, populateFalseCheckboxes, populationSpecialEmptyFields, setForcedReadOnlyFields
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
addRequiredNonEditableProperties, buildHtmlLink, getAdditionalScriptFile, getAdditionalScriptFiles, getAdHocActionRequestCodes, getAdHocRoutePerson, getAdHocRoutePersons, getAdHocRouteWorkgroup, getAdHocRouteWorkgroups, getAnnotation, getAttachmentFile, getBoNotes, getCommand, getDocId, getDocNum, getDocTypeName, getDocument, getDocumentActions, getDocumentHandlerUrl, getEditingMode, getErrorMapFromPreviousRequest, getFormKey, getInitiator, getInitiatorNetworkId, getMessageMapFromPreviousRequest, getNewAdHocRoutePerson, getNewAdHocRouteWorkgroup, getNewNote, getPersonInquiryUrlLink, getStandardHeaderFields, getWorkflowDocument, hasDocumentId, initializeHeaderNavigationTabs, instantiateDocument, isDocumentEnRoute, isFormDocumentInitialized, isHasWorkflowDocument, isReturnToActionList, isSuppressAllButtons, isUserDocumentInitiator, reset, setAdditionalScriptFile, setAdditionalScriptFiles, setAdHocActionRequestCodes, setAdHocRoutePersons, setAdHocRouteWorkgroups, setAnnotation, setAttachmentFile, setBoNotes, setCommand, setDerivedValuesOnForm, setDocId, setDocNum, setDocTypeName, setDocument, setDocumentActions, setEditingMode, setErrorMapFromPreviousRequest, setFormKey, setMessageMapFromPreviousRequest, setNewAdHocRoutePerson, setNewAdHocRouteWorkgroup, setNewNote, setReturnToActionList, setSuppressAllButtons, shouldPropertyBePopulatedInForm, validate
 
Methods inherited from class org.kuali.rice.kns.web.struts.form.KualiForm
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getFieldNameToFocusOnAfterSubmit, getHeaderNavigationTabs, getMethodToCall, getNavigationCss, getNextArbitrarilyHighIndex, getNumColumns, getRefreshCaller, getTabState, getTabStates, incrementTabIndex, isFieldLevelHelpEnabled, populateBackLocation, populateFieldLevelHelpEnabled, reset, retrieveFormValueForLookupInquiryParameters, setActionFormUtilMap, setAnchor, setBackLocation, setCurrentTabIndex, setDocInfo, setExtraButton, setExtraButtons, setFieldLevelHelpEnabled, setFieldNameToFocusOnAfterSubmit, setHeaderNavigationTabs, setMethodToCall, setNavigationCss, setNumColumns, setRefreshCaller, setTabStates
 
Methods inherited from class org.kuali.rice.kns.web.struts.pojo.PojoFormBase
addMaxUploadSize, cacheUnconvertedValue, copyPopulateEditablePropertiesToActionEditableProperties, formatterClassForKeypath, formatValue, getActionEditablePropertiesGuid, getEditableProperties, getFormatter, getFormatterTypes, getIsNewForm, getMaxUploadSizes, getMethodToCallsToBypassSessionRetrievalForGETRequests, getParameter, getParameterValues, getPopulateEditableProperties, getPopulateEditablePropertiesGuid, getPropertyType, getRequiredNonEditableProperties, getStrutsActionMappingScope, getUnconvertedValues, getUnknownKeys, initMaxUploadSizes, isPropertyEditable, isPropertyNonEditableButRequired, populateForProperty, postprocessRequestParameters, processValidationFail, registerEditableProperty, registerIsNewForm, registerRequiredNonEditableProperty, registerStrutsActionMappingScope, setActionEditablePropertiesGuid, setFormatterType, setFormatterTypes, setPopulateEditablePropertiesGuid, setUnconvertedValues
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newPurchaseOrderVendorStipulationLine

protected PurchaseOrderVendorStipulation newPurchaseOrderVendorStipulationLine

newPurchaseOrderVendorQuote

protected PurchaseOrderVendorQuote newPurchaseOrderVendorQuote

awardedVendorNumber

protected Long awardedVendorNumber

retransmitItemsSelected

protected String[] retransmitItemsSelected

retransmitTransmissionMethod

protected String retransmitTransmissionMethod

retransmitFaxNumber

protected String retransmitFaxNumber

retransmitHeader

protected String retransmitHeader

accountingLineEditingMode

protected Map accountingLineEditingMode

splitNoteText

protected String splitNoteText

sensitiveDataAssignmentReason

protected String sensitiveDataAssignmentReason

lastSensitiveDataAssignment

protected SensitiveDataAssignment lastSensitiveDataAssignment

newSensitiveDataLine

protected SensitiveData newSensitiveDataLine

sensitiveDatasAssigned

protected List<SensitiveData> sensitiveDatasAssigned
Constructor Detail

PurchaseOrderForm

public PurchaseOrderForm()
Constructs a PurchaseOrderForm instance and sets up the appropriately casted document.

Method Detail

getDefaultDocumentTypeName

protected String getDefaultDocumentTypeName()
Overrides:
getDefaultDocumentTypeName in class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase

getAccountingLineEditingMode

public Map getAccountingLineEditingMode()

setAccountingLineEditingMode

public void setAccountingLineEditingMode(Map accountingLineEditingMode)

getAwardedVendorNumber

public Long getAwardedVendorNumber()

setAwardedVendorNumber

public void setAwardedVendorNumber(Long awardedVendorNumber)

getNewPurchaseOrderVendorStipulationLine

public PurchaseOrderVendorStipulation getNewPurchaseOrderVendorStipulationLine()

setNewPurchaseOrderVendorStipulationLine

public void setNewPurchaseOrderVendorStipulationLine(PurchaseOrderVendorStipulation newPurchaseOrderVendorStipulationLine)

getNewPurchaseOrderVendorQuote

public PurchaseOrderVendorQuote getNewPurchaseOrderVendorQuote()

setNewPurchaseOrderVendorQuote

public void setNewPurchaseOrderVendorQuote(PurchaseOrderVendorQuote newPurchaseOrderVendorQuote)

getRetransmitItemsSelected

public String[] getRetransmitItemsSelected()

setRetransmitItemsSelected

public void setRetransmitItemsSelected(String[] retransmitItemsSelected)

getPurchaseOrderDocument

public PurchaseOrderDocument getPurchaseOrderDocument()

setPurchaseOrderDocument

public void setPurchaseOrderDocument(PurchaseOrderDocument purchaseOrderDocument)

getSplitNoteText

public String getSplitNoteText()

setSplitNoteText

public void setSplitNoteText(String splitNoteText)

getSensitiveDataAssignmentReason

public String getSensitiveDataAssignmentReason()

setSensitiveDataAssignmentReason

public void setSensitiveDataAssignmentReason(String sensitiveDataAssignmentReason)

getLastSensitiveDataAssignment

public SensitiveDataAssignment getLastSensitiveDataAssignment()

setLastSensitiveDataAssignment

public void setLastSensitiveDataAssignment(SensitiveDataAssignment lastSensitiveDataAssignment)

getNewSensitiveDataLine

public SensitiveData getNewSensitiveDataLine()

setNewSensitiveDataLine

public void setNewSensitiveDataLine(SensitiveData newSensitiveDataLine)

getSensitiveDatasAssigned

public List<SensitiveData> getSensitiveDatasAssigned()

setSensitiveDatasAssigned

public void setSensitiveDatasAssigned(List<SensitiveData> poSensitiveData)

getCapitalAssetLocationClass

public Class getCapitalAssetLocationClass()
Overrides:
getCapitalAssetLocationClass in class PurchasingFormBase

getItemCapitalAssetClass

public Class getItemCapitalAssetClass()
Overrides:
getItemCapitalAssetClass in class PurchasingFormBase

setupNewPurchasingCapitalAssetLocationLine

public CapitalAssetLocation setupNewPurchasingCapitalAssetLocationLine()
Overrides:
setupNewPurchasingCapitalAssetLocationLine in class PurchasingFormBase

setupNewPurchasingItemLine

public PurApItem setupNewPurchasingItemLine()
Description copied from class: PurchasingFormBase
This method should be overriden (or see accountingLines for an alternate way of doing this with newInstance)

Overrides:
setupNewPurchasingItemLine in class PurchasingFormBase
See Also:
PurchasingFormBase.setupNewPurchasingItemLine()

setupNewPurchasingAccountingLine

public PurchaseOrderAccount setupNewPurchasingAccountingLine()
Description copied from class: PurchasingFormBase
This method should be overriden (or see accountingLines for an alternate way of doing this with newInstance)

Overrides:
setupNewPurchasingAccountingLine in class PurchasingFormBase
See Also:
PurchasingFormBase.setupNewPurchasingAccountingLine()

setupNewAccountDistributionAccountingLine

public PurchaseOrderAccount setupNewAccountDistributionAccountingLine()
Description copied from class: PurchasingFormBase
This method should be overriden.

Overrides:
setupNewAccountDistributionAccountingLine in class PurchasingFormBase
See Also:
PurchasingFormBase.setupNewAccountDistributionAccountingLine()

isReadOnlyReceivingRequired

public boolean isReadOnlyReceivingRequired()

getAndResetNewPurchaseOrderVendorStipulationLine

public PurchaseOrderVendorStipulation getAndResetNewPurchaseOrderVendorStipulationLine()
Returns the new Purchase Order Vendor Stipulation Line and resets it.

Returns:
the new Purchase Order Vendor Stipulation Line.

getStatusChange

public String getStatusChange()

setStatusChange

public void setStatusChange(String statusChange)

shouldMethodToCallParameterBeUsed

public boolean shouldMethodToCallParameterBeUsed(String methodToCallParameterName,
                                                 String methodToCallParameterValue,
                                                 javax.servlet.http.HttpServletRequest request)
Overrides:
shouldMethodToCallParameterBeUsed in class KualiAccountingDocumentFormBase
See Also:
KualiDocumentFormBase.shouldMethodToCallParameterBeUsed(java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)

populateHeaderFields

public void populateHeaderFields(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument workflowDocument)
Overrides:
populateHeaderFields in class FinancialSystemTransactionalDocumentFormBase
See Also:
KualiDocumentFormBase.populateHeaderFields(org.kuali.rice.kns.workflow.service.KualiWorkflowDocument)

populate

public void populate(javax.servlet.http.HttpServletRequest request)
Description copied from class: KualiAccountingDocumentFormBase
Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading the two select lists on the page.

Specified by:
populate in interface org.kuali.rice.kns.web.struts.pojo.PojoForm
Overrides:
populate in class PurchasingAccountsPayableFormBase
See Also:
KualiAccountingDocumentFormBase.populate(javax.servlet.http.HttpServletRequest)

processPaymentRequestRulesForCanClose

protected boolean processPaymentRequestRulesForCanClose(PurchaseOrderDocument document)
Processes validation rules having to do with any payment requests that the given purchase order may have. Specifically, validates that at least one payment request exists, and makes further checks about the status of such payment requests.

Parameters:
document - A PurchaseOrderDocument
Returns:
True if the document passes all the validations.

canAmend

protected boolean canAmend()
Determines whether to display the amend button for the purchase order document. The document status must be open, and the purchase order must be current and not pending, and the user must be in purchasing group. These are same as the conditions for displaying the payment hold button. In addition to these conditions, we also have to check that there is no In Process Payment Requests nor Credit Memos associated with the PO.

Returns:
boolean true if the amend button can be displayed.

canVoid

protected boolean canVoid()
Determines whether to display the void button for the purchase order document. Conditions: PO is in Pending Print status, or is in Open status and has no PREQs against it; PO's current indicator is true and pending indicator is false; and the user is a member of the purchasing group).

Returns:
boolean true if the void button can be displayed.

canClose

protected boolean canClose()
Determines whether to display the close order button to close the purchase order document. Conditions: PO must be in Open status; must have at least one Payment Request in any status other than "In Process", and the PO cannot have any Payment Requests in "In Process" status. This button is available to all faculty/staff.

Returns:
boolean true if the close order button can be displayed.

canReopen

protected boolean canReopen()
Determines whether to display the open order button to reopen the purchase order document. Conditions: PO status is close, PO is current and not pending, and the user is in purchasing group.

Returns:
boolean true if the reopen order button can be displayed.

canHoldPayment

protected boolean canHoldPayment()
Determines whether to display the payment hold buttons for the purchase order document. Conditions: PO status must be open, must be current and not pending, and the user must be in purchasing group.

Returns:
boolean true if the payment hold button can be displayed.

canRemoveHold

protected boolean canRemoveHold()
Determines whether to display the remove hold button for the purchase order document. Conditions are: PO status must be payment hold, must be current and not pending, and the user must be in purchasing group.

Returns:
boolean true if the remove hold button can be displayed.

canRetransmit

protected boolean canRetransmit()
Determines whether to display the retransmit button. Conditions: PO status must be open, and must be current and not pending, and the last transmit date must not be null. If the purchase order is an Automated Purchase Order (APO) and does not have any sensitive data set to true, then any users can see the retransmit button, otherwise, only users in the purchasing group can see it.

Returns:
boolean true if the retransmit button can be displayed.

canPrintRetransmit

protected boolean canPrintRetransmit()
Determines whether to display the button to print the pdf on a retransmit document. We're currently sharing the same button image as the button for creating a retransmit document but this may change someday. This button should only appear on Retransmit Document. If it is an Automated Purchase Order (APO) then any users can see this button, otherwise, only users in the purchasing group can see it.

Returns:
boolean true if the print retransmit button can be displayed.

canSplitPo

protected boolean canSplitPo()
Determines if a Split PO Document can be created from this purchase order. Conditions: The parent PO status is either "In Process" or "Awaiting Purchasing Review"; requisition source is not B2B; has at least 2 items, and PO is not in the process of being split; user must be in purchasing group.

Returns:
boolean true if the split PO button can be displayed.

canContinuePoSplit

protected boolean canContinuePoSplit()
Determines whether the PO is in a status that signifies it has enough information to generate a Split PO.

Returns:
True if the PO can continue to be split.

canCreateReceiving

protected boolean canCreateReceiving()
Determines if a line item receiving document can be created for the purchase order.

Returns:
boolean true if the receiving document button can be displayed.

createButtonsMap

protected Map<String,org.kuali.rice.kns.web.ui.ExtraButton> createButtonsMap()
Creates a MAP for all the buttons to appear on the Purchase Order Form, and sets the attributes of these buttons.

Returns:
the button map created.

getExtraButtons

public List<org.kuali.rice.kns.web.ui.ExtraButton> getExtraButtons()
Override the superclass method to add appropriate buttons for PurchaseOrderDocument.

Overrides:
getExtraButtons in class PurchasingFormBase
See Also:
KualiForm.getExtraButtons()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.