org.kuali.kfs.module.purap.document
Class RequisitionDocument

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kns.document.DocumentBase
              extended by org.kuali.rice.kns.document.TransactionalDocumentBase
                  extended by org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
                      extended by org.kuali.kfs.sys.document.LedgerPostingDocumentBase
                          extended by org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
                              extended by org.kuali.kfs.sys.document.AccountingDocumentBase
                                  extended by org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocumentBase
                                      extended by org.kuali.kfs.module.purap.document.PurchasingDocumentBase
                                          extended by org.kuali.kfs.module.purap.document.RequisitionDocument
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, PurapItemOperations, PurchasingAccountsPayableDocument, PurchasingDocument, AccountingDocument, AmountTotaling, FinancialSystemTransactionalDocument, GeneralLedgerPendingEntrySource, GeneralLedgerPostingDocument, LedgerPostingDocument, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject, org.kuali.rice.kns.document.Copyable, org.kuali.rice.kns.document.Document, org.kuali.rice.kns.document.SessionDocument, org.kuali.rice.kns.document.TransactionalDocument

public class RequisitionDocument
extends PurchasingDocumentBase
implements org.kuali.rice.kns.document.Copyable

Document class for the Requisition.

See Also:
Serialized Form

Field Summary
protected  String alternate1VendorName
           
protected  String alternate2VendorName
           
protected  String alternate3VendorName
           
protected  String alternate4VendorName
           
protected  String alternate5VendorName
           
protected  boolean isBlanketApproveRequest
           
protected static org.apache.log4j.Logger LOG
           
protected  org.kuali.rice.kns.util.KualiDecimal organizationAutomaticPurchaseOrderLimit
           
protected  String requisitionOrganizationReference1Text
           
protected  String requisitionOrganizationReference2Text
           
protected  String requisitionOrganizationReference3Text
           
 
Fields inherited from class org.kuali.kfs.module.purap.document.PurchasingDocumentBase
addressToVendorIndicator, billingCityName, billingCountryCode, billingLine1Address, billingLine2Address, billingName, billingPhoneNumber, billingPostalCode, billingStateCode, capitalAssetSystemState, capitalAssetSystemStateCode, capitalAssetSystemType, capitalAssetSystemTypeCode, chartOfAccounts, chartOfAccountsCode, commodityCodesForRouting, deliveryBuildingCode, deliveryBuildingLine1Address, deliveryBuildingLine2Address, deliveryBuildingName, deliveryBuildingOtherIndicator, deliveryBuildingRoomNumber, deliveryCampus, deliveryCampusCode, deliveryCityName, deliveryCountryCode, deliveryInstructionText, deliveryPostalCode, deliveryRequiredDate, deliveryRequiredDateReason, deliveryRequiredDateReasonCode, deliveryStateCode, deliveryToEmailAddress, deliveryToName, deliveryToPhoneNumber, documentFundingSourceCode, externalOrganizationB2bSupplierIdentifier, fundingSource, institutionContactEmailAddress, institutionContactName, institutionContactPhoneNumber, nonInstitutionFundAccount, nonInstitutionFundAccountNumber, nonInstitutionFundChartOfAccounts, nonInstitutionFundChartOfAccountsCode, nonInstitutionFundOrganization, nonInstitutionFundOrganizationCode, nonInstitutionFundOrgChartOfAccounts, nonInstitutionFundOrgChartOfAccountsCode, organization, organizationCode, paymentRequestPositiveApprovalIndicator, purchaseOrderAutomaticIndicator, purchaseOrderBeginDate, purchaseOrderCostSource, purchaseOrderCostSourceCode, purchaseOrderEndDate, purchaseOrderTotalLimit, purchaseOrderTransmissionMethod, purchaseOrderTransmissionMethodCode, purchasingCapitalAssetItems, purchasingCapitalAssetSystems, receivingCityName, receivingCountryCode, receivingDocumentRequiredIndicator, receivingLine1Address, receivingLine2Address, receivingName, receivingPostalCode, receivingStateCode, recurringPaymentType, recurringPaymentTypeCode, requestorPersonEmailAddress, requestorPersonName, requestorPersonPhoneNumber, requisitionSource, requisitionSourceCode, supplierDiversityLabel, vendorContactsLabel, vendorContract, vendorContractGeneratedIdentifier, vendorFaxNumber, vendorNoteText, vendorPaymentTermsCode, vendorPhoneNumber, vendorRestrictedIndicator, vendorShippingPaymentTermsCode, vendorShippingTitleCode
 
Fields inherited from class org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocumentBase
accountsForRouting, accountsPayablePurchasingDocumentLinkIdentifier, allowDeleteAwareCollection, belowTheLineTypes, items, overrideWorkflowButtons, purapDocumentIdentifier, relatedViews, sensitive, status, statusCode, useTaxIndicator, vendorAddressGeneratedIdentifier, vendorAddressInternationalProvinceName, vendorAttentionName, vendorCityName, vendorCountry, vendorCountryCode, vendorCustomerNumber, vendorDetail, vendorDetailAssignedIdentifier, vendorHeaderGeneratedIdentifier, vendorLine1Address, vendorLine2Address, vendorName, vendorNumber, vendorPostalCode, vendorStateCode
 
Fields inherited from class org.kuali.kfs.sys.document.AccountingDocumentBase
dataDictionaryEntry, nextSourceLineNumber, nextTargetLineNumber, sourceAccountingLineClass, sourceAccountingLines, targetAccountingLineClass, targetAccountingLines
 
Fields inherited from class org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
generalLedgerPendingEntries
 
Fields inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase
accountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYear
 
Fields inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
documentHeader
 
Fields inherited from class org.kuali.rice.kns.document.DocumentBase
documentBusinessObject, documentNumber
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
RequisitionDocument()
          Default constructor.
 
Method Summary
 boolean answerSplitNodeQuestion(String nodeName)
          Provides answers to the following splits: AmountRequiresSeparationOfDutiesReview
protected  String determinePurchaseOrderTransmissionMethod()
          Determines what PO transmission method to use.
 void doRouteLevelChange(org.kuali.rice.kew.dto.DocumentRouteLevelChangeDTO change)
           
 void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
          Override to call super and then iterate over all GLPEs and update the approved code appropriately.
 boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          This is a "do nothing" version of the method - it just won't create GLPEs
 boolean getAllowsCopy()
          Checks whether copying of this document should be allowed.
 String getAlternate1VendorName()
           
 String getAlternate2VendorName()
           
 String getAlternate3VendorName()
           
 String getAlternate4VendorName()
           
 String getAlternate5VendorName()
           
 Date getCreateDate()
           
 Date getCreateDateForResult()
           
 PurchasingDocumentSpecificService getDocumentSpecificService()
           
 String getDocumentTitle()
           
protected  String getFirstChartAccount()
          Gets this requisition's Chart/Account of the first accounting line from the first item.
 Class getItemClass()
          Returns the Item Class.
 Class getItemUseTaxClass()
           
 org.kuali.rice.kns.util.KualiDecimal getOrganizationAutomaticPurchaseOrderLimit()
           
 PurchasingAccountsPayableDocument getPurApSourceDocumentIfPossible()
          Returns null as requistion has no source document.
 String getPurApSourceDocumentLabelIfPossible()
          Returns null as requistion has no source document.
 Class getPurchasingCapitalAssetItemClass()
           
 Class getPurchasingCapitalAssetSystemClass()
           
 String getRequisitionOrganizationReference1Text()
           
 String getRequisitionOrganizationReference2Text()
           
 String getRequisitionOrganizationReference3Text()
           
 Class getSourceAccountingLineClass()
          Returns the default Source accounting line class.
 String getStatusDescription()
          Deprecated.  
 String getUrl()
           
 List<Long> getWorkflowEngineDocumentIdsToLock()
           
 void initiateDocument()
          Performs logic needed to initiate Requisition Document.
 boolean isBlanketApproveRequest()
          Gets the isBlanketApproveRequest attribute.
 boolean isBoNotesSupport()
           
 boolean isInquiryRendered()
          Overrides the method in PurchasingAccountsPayableDocumentBase to add the criteria specific to Requisition Document.
protected  boolean isMissingAccountingLines()
           
protected  boolean isSeparationOfDutiesReviewRequired()
           
 void setAlternate1VendorName(String alternate1VendorName)
           
 void setAlternate2VendorName(String alternate2VendorName)
           
 void setAlternate3VendorName(String alternate3VendorName)
           
 void setAlternate4VendorName(String alternate4VendorName)
           
 void setAlternate5VendorName(String alternate5VendorName)
           
 void setBlanketApproveRequest(boolean isBlanketApproveRequest)
          Sets the isBlanketApproveRequest attribute value.
 void setOrganizationAutomaticPurchaseOrderLimit(org.kuali.rice.kns.util.KualiDecimal organizationAutomaticPurchaseOrderLimit)
           
 void setRequisitionOrganizationReference1Text(String requisitionOrganizationReference1Text)
           
 void setRequisitionOrganizationReference2Text(String requisitionOrganizationReference2Text)
           
 void setRequisitionOrganizationReference3Text(String requisitionOrganizationReference3Text)
           
 void setStatusDescription(String statusDescription)
          Deprecated.  
 boolean shouldGiveErrorForEmptyAccountsProration()
           
 void templateBuildingToDeliveryAddress(Building building)
           
 void toCopy()
          Performs logic needed to copy Requisition Document.
protected  void updateStatusAndSave(String statusCode)
          Updates status of this document and saves it.
 
Methods inherited from class org.kuali.kfs.module.purap.document.PurchasingDocumentBase
addItem, buildListOfDeletionAwareLists, clearCapitalAssetFields, getAddressToVendorIndicator, getBillingCityName, getBillingCountryCode, getBillingCountryName, getBillingLine1Address, getBillingLine2Address, getBillingName, getBillingPhoneNumber, getBillingPostalCode, getBillingStateCode, getCapitalAssetSystemState, getCapitalAssetSystemStateCode, getCapitalAssetSystemType, getCapitalAssetSystemTypeCode, getChartAndOrgCodeForResult, getChartOfAccounts, getChartOfAccountsCode, getCommodityCodesForRouting, getDeliveryBuildingCode, getDeliveryBuildingLine1Address, getDeliveryBuildingLine2Address, getDeliveryBuildingName, getDeliveryBuildingRoomNumber, getDeliveryCampus, getDeliveryCampusCode, getDeliveryCampusCodeForSearch, getDeliveryCityName, getDeliveryCountryCode, getDeliveryCountryName, getDeliveryInstructionText, getDeliveryPostalCode, getDeliveryRequiredDate, getDeliveryRequiredDateReason, getDeliveryRequiredDateReasonCode, getDeliveryStateCode, getDeliveryToEmailAddress, getDeliveryToName, getDeliveryToPhoneNumber, getDocumentChartOfAccountsCodeForSearching, getDocumentFundingSourceCode, getDocumentOrganizationCodeForSearching, getExternalOrganizationB2bSupplierIdentifier, getFundingSource, getHasB2BVendor, getInstitutionContactEmailAddress, getInstitutionContactName, getInstitutionContactPhoneNumber, getItemParser, getNonInstitutionFundAccount, getNonInstitutionFundAccountNumber, getNonInstitutionFundChartOfAccounts, getNonInstitutionFundChartOfAccountsCode, getNonInstitutionFundOrganization, getNonInstitutionFundOrganizationCode, getNonInstitutionFundOrgChartOfAccounts, getNonInstitutionFundOrgChartOfAccountsCode, getOrganization, getOrganizationCode, getPaymentRequestPositiveApprovalIndicatorForSearching, getPurchaseOrderAutomaticIndicator, getPurchaseOrderBeginDate, getPurchaseOrderCostSource, getPurchaseOrderCostSourceCode, getPurchaseOrderEndDate, getPurchaseOrderTotalLimit, getPurchaseOrderTransmissionMethod, getPurchaseOrderTransmissionMethodCode, getPurchasingCapitalAssetItem, getPurchasingCapitalAssetItemByItemIdentifier, getPurchasingCapitalAssetItems, getPurchasingCapitalAssetSystems, getPurchasingItem, getReceivingCityName, getReceivingCountryCode, getReceivingCountryName, getReceivingDocumentRequiredIndicatorForSearching, getReceivingLine1Address, getReceivingLine2Address, getReceivingName, getReceivingPostalCode, getReceivingStateCode, getRecurringPaymentType, getRecurringPaymentTypeCode, getRequestorPersonEmailAddress, getRequestorPersonName, getRequestorPersonPhoneNumber, getRequisitionSource, getRequisitionSourceCode, getSupplierDiversityLabel, getTransactionTaxDate, getVendorContactsLabel, getVendorContract, getVendorContractGeneratedIdentifier, getVendorContractName, getVendorFaxNumber, getVendorNoteText, getVendorPaymentTermsCode, getVendorPhoneNumber, getVendorRestrictedIndicator, getVendorShippingPaymentTermsCode, getVendorShippingTitleCode, isDeliveryBuildingOtherIndicator, isPaymentRequestPositiveApprovalIndicator, isReceivingDocumentRequiredIndicator, loadReceivingAddress, populateDocumentForRouting, prepareForSave, setAddressToVendorIndicator, setBillingCityName, setBillingCountryCode, setBillingLine1Address, setBillingLine2Address, setBillingName, setBillingPhoneNumber, setBillingPostalCode, setBillingStateCode, setCapitalAssetSystemState, setCapitalAssetSystemStateCode, setCapitalAssetSystemType, setCapitalAssetSystemTypeCode, setChartOfAccounts, setChartOfAccountsCode, setCommodityCodesForRouting, setDeliveryBuildingCode, setDeliveryBuildingLine1Address, setDeliveryBuildingLine2Address, setDeliveryBuildingName, setDeliveryBuildingOtherIndicator, setDeliveryBuildingRoomNumber, setDeliveryCampus, setDeliveryCampusCode, setDeliveryCityName, setDeliveryCountryCode, setDeliveryInstructionText, setDeliveryPostalCode, setDeliveryRequiredDate, setDeliveryRequiredDateReason, setDeliveryRequiredDateReasonCode, setDeliveryStateCode, setDeliveryToEmailAddress, setDeliveryToName, setDeliveryToPhoneNumber, setDocumentFundingSourceCode, setExternalOrganizationB2bSupplierIdentifier, setFundingSource, setInstitutionContactEmailAddress, setInstitutionContactName, setInstitutionContactPhoneNumber, setNonInstitutionFundAccount, setNonInstitutionFundAccountNumber, setNonInstitutionFundChartOfAccounts, setNonInstitutionFundChartOfAccountsCode, setNonInstitutionFundOrganization, setNonInstitutionFundOrganizationCode, setNonInstitutionFundOrgChartOfAccounts, setNonInstitutionFundOrgChartOfAccountsCode, setOrganization, setOrganizationCode, setPaymentRequestPositiveApprovalIndicator, setPurchaseOrderAutomaticIndicator, setPurchaseOrderBeginDate, setPurchaseOrderCostSource, setPurchaseOrderCostSourceCode, setPurchaseOrderEndDate, setPurchaseOrderTotalLimit, setPurchaseOrderTransmissionMethod, setPurchaseOrderTransmissionMethodCode, setPurchasingCapitalAssetItems, setPurchasingCapitalAssetSystems, setReceivingCityName, setReceivingCountryCode, setReceivingDocumentRequiredIndicator, setReceivingLine1Address, setReceivingLine2Address, setReceivingName, setReceivingPostalCode, setReceivingStateCode, setRecurringPaymentType, setRecurringPaymentTypeCode, setRequestorPersonEmailAddress, setRequestorPersonName, setRequestorPersonPhoneNumber, setRequisitionSource, setRequisitionSourceCode, setVendorContactsLabel, setVendorContract, setVendorContractGeneratedIdentifier, setVendorFaxNumber, setVendorNoteText, setVendorPaymentTermsCode, setVendorPhoneNumber, setVendorRestrictedIndicator, setVendorShippingPaymentTermsCode, setVendorShippingTitleCode, templateBillingAddress, templateReceivingAddress, templateVendorAddress, templateVendorContract, templateVendorDetail
 
Methods inherited from class org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocumentBase
buildDocumentTitle, customPrepareForSave, deleteItem, documentPerformsSufficientFundsCheck, fixItemReferences, getAccountsForRouting, getAccountsPayablePurchasingDocumentLinkIdentifier, getBelowTheLineTypes, getDeletionAwareAccountingLines, getFirstPendingGLEntry, getIsATypeOfPODoc, getIsATypeOfPurAPRecDoc, getIsATypeOfPurDoc, getIsPODoc, getIsReqsDoc, getItem, getItemByItemIdentifier, getItemByLineNumber, getItemByStringIdentifier, getItemLinePosition, getItems, getNeedWarningRelatedPOs, getOverrideWorkflowButtons, getPersistedSourceAccountingLinesForComparison, getPostingPeriodCodeFromPendingGLEntries, getPostingYearFromPendingGLEntries, getPostingYearNextOrCurrent, getPurapDocumentIdentifier, getRelatedViews, getSourceAccountingLines, getSourceAccountingLinesForComparison, getStatus, getStatusCode, getStatusCodeForMultiboxSearching, getTotalDollarAmount, getTotalDollarAmountAboveLineItems, getTotalDollarAmountAboveLineItems, getTotalDollarAmountAllItems, getTotalDollarAmountForTradeIn, getTotalDollarAmountWithExclusions, getTotalDollarAmountWithExclusionsSubsetItems, getTotalPreTaxDollarAmount, getTotalPreTaxDollarAmountAboveLineItems, getTotalPreTaxDollarAmountAboveLineItems, getTotalPreTaxDollarAmountAllItems, getTotalPreTaxDollarAmountWithExclusions, getTotalTaxAmount, getTotalTaxAmountAboveLineItems, getTotalTaxAmountAboveLineItems, getTotalTaxAmountAllItems, getTotalTaxAmountWithExclusions, getTradeInItem, getTradeInItems, getVendorAddressGeneratedIdentifier, getVendorAddressInternationalProvinceName, getVendorAttentionName, getVendorCityName, getVendorCountry, getVendorCountryCode, getVendorCustomerNumber, getVendorDetail, getVendorDetailAssignedIdentifier, getVendorHeaderGeneratedIdentifier, getVendorLine1Address, getVendorLine2Address, getVendorName, getVendorNumber, getVendorPostalCode, getVendorStateCode, isDebit, isDocumentStoppedInRouteNode, isPostingYearNext, isPostingYearPrior, isSensitive, isUseTaxIndicator, itemSwap, logAndThrowRuntimeException, logAndThrowRuntimeException, populateAccountsForRouting, processAfterRetrieve, refreshNonUpdateableReferences, renumberItems, setAccountsForRouting, setAccountsPayablePurchasingDocumentLinkIdentifier, setItems, setOverrideWorkflowButtons, setPostingYear, setPurapDocumentIdentifier, setRelatedViews, setStatus, setStatusCode, setTotalDollarAmount, setTotalPreTaxDollarAmount, setTotalTaxAmount, setUseTaxIndicator, setVendorAddressGeneratedIdentifier, setVendorAddressInternationalProvinceName, setVendorAttentionName, setVendorCityName, setVendorCountry, setVendorCountryCode, setVendorCustomerNumber, setVendorDetail, setVendorDetailAssignedIdentifier, setVendorHeaderGeneratedIdentifier, setVendorLine1Address, setVendorLine2Address, setVendorName, setVendorNumber, setVendorPostalCode, setVendorStateCode, toStringMapper
 
Methods inherited from class org.kuali.kfs.sys.document.AccountingDocumentBase
addSourceAccountingLine, addTargetAccountingLine, buildAccountingLineMap, copyAccountingLines, customizeExplicitGeneralLedgerPendingEntry, customizeOffsetGeneralLedgerPendingEntry, generateDocumentGeneralLedgerPendingEntries, generateEvents, generateSaveEvents, getAccountingLineParser, getDataDictionaryEntry, getDocumentClassForAccountingLineValueAllowedValidation, getEntryValue, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getNextSourceLineNumber, getNextTargetLineNumber, getPersistedTargetAccountingLinesForComparison, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesForComparison, getTargetAccountingLinesSectionTitle, getTargetTotal, processExplicitGeneralLedgerPendingEntry, processOffsetGeneralLedgerPendingEntry, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines, toErrorCorrection, updatePostingYearForAccountingLines
 
Methods inherited from class org.kuali.kfs.sys.document.GeneralLedgerPostingDocumentBase
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, checkSufficientFunds, clearAnyGeneralLedgerPendingEntries, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, removeGeneralLedgerPendingEntries, setGeneralLedgerPendingEntries
 
Methods inherited from class org.kuali.kfs.sys.document.LedgerPostingDocumentBase
createInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setPostingPeriodCode
 
Methods inherited from class org.kuali.kfs.sys.document.FinancialSystemTransactionalDocumentBase
getDocumentHeader, prepareForSave, setDocumentHeader
 
Methods inherited from class org.kuali.rice.kns.document.TransactionalDocumentBase
isSessionDocument
 
Methods inherited from class org.kuali.rice.kns.document.DocumentBase
addCopyErrorDocumentNote, addPessimisticLock, afterLookup, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getLockClearningMethodNames, getNonLockingActionTakenCodes, getPessimisticLocks, getXmlForRouteReport, logErrors, postProcessSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setPessimisticLocks, toString, toStringBuilder, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isNewCollectionRecord, linkEditableUserFields, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.module.purap.document.PurchasingDocument
deleteItem, getItem, getItems, getTotalDollarAmount, getVendorCityName, getVendorCountryCode, getVendorLine1Address, getVendorLine2Address, getVendorName, getVendorPostalCode, getVendorStateCode, setItems, setVendorCityName, setVendorCountryCode, setVendorLine1Address, setVendorLine2Address, setVendorName, setVendorPostalCode, setVendorStateCode
 
Methods inherited from interface org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument
fixItemReferences, getAccountsPayablePurchasingDocumentLinkIdentifier, getBelowTheLineTypes, getIsATypeOfPODoc, getIsATypeOfPurAPRecDoc, getIsATypeOfPurDoc, getIsPODoc, getIsReqsDoc, getItemLinePosition, getPostingYearNextOrCurrent, getPurapDocumentIdentifier, getStatus, getStatusCode, getTotalDollarAmountAboveLineItems, getTotalDollarAmountAllItems, getTotalDollarAmountForTradeIn, getTotalPreTaxDollarAmount, getTotalPreTaxDollarAmountAllItems, getTotalTaxAmount, getTotalTaxAmountAboveLineItems, getTotalTaxAmountAboveLineItems, getTotalTaxAmountAllItems, getTotalTaxAmountWithExclusions, getTradeInItem, getTradeInItems, getVendorAddressGeneratedIdentifier, getVendorAddressInternationalProvinceName, getVendorCountry, getVendorCustomerNumber, getVendorDetail, getVendorDetailAssignedIdentifier, getVendorHeaderGeneratedIdentifier, getVendorNumber, isDocumentStoppedInRouteNode, isPostingYearNext, isPostingYearPrior, isUseTaxIndicator, itemSwap, renumberItems, setAccountsPayablePurchasingDocumentLinkIdentifier, setItems, setPurapDocumentIdentifier, setStatusCode, setTotalDollarAmount, setTotalPreTaxDollarAmount, setTotalTaxAmount, setUseTaxIndicator, setVendorAddressGeneratedIdentifier, setVendorAddressInternationalProvinceName, setVendorCustomerNumber, setVendorDetailAssignedIdentifier, setVendorHeaderGeneratedIdentifier, setVendorNumber
 
Methods inherited from interface org.kuali.kfs.sys.document.AccountingDocument
addSourceAccountingLine, addTargetAccountingLine, getAccountingLineParser, getDocumentClassForAccountingLineValueAllowedValidation, getNextSourceLineNumber, getNextTargetLineNumber, getSourceAccountingLine, getSourceAccountingLineEntryName, getSourceAccountingLines, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesSectionTitle, getTargetTotal, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines
 
Methods inherited from interface org.kuali.kfs.sys.document.GeneralLedgerPostingDocument
checkSufficientFunds, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntries
 
Methods inherited from interface org.kuali.kfs.sys.document.LedgerPostingDocument
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode, setPostingYear
 
Methods inherited from interface org.kuali.kfs.sys.document.FinancialSystemTransactionalDocument
getDocumentHeader
 
Methods inherited from interface org.kuali.rice.kns.document.Document
addPessimisticLock, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentBusinessObject, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getLockClearningMethodNames, getPessimisticLocks, getXmlForRouteReport, postProcessSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from interface org.kuali.rice.kns.bo.PersistableBusinessObject
addNote, deleteNote, getBoNote, getBoNotes, getExtension, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow, refresh
 
Methods inherited from interface org.apache.ojb.broker.PersistenceBrokerAware
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate
 
Methods inherited from interface org.kuali.kfs.sys.document.GeneralLedgerPendingEntrySource
addPendingEntry, clearAnyGeneralLedgerPendingEntries, generateDocumentGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getPostingYear, isDebit
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG

requisitionOrganizationReference1Text

protected String requisitionOrganizationReference1Text

requisitionOrganizationReference2Text

protected String requisitionOrganizationReference2Text

requisitionOrganizationReference3Text

protected String requisitionOrganizationReference3Text

alternate1VendorName

protected String alternate1VendorName

alternate2VendorName

protected String alternate2VendorName

alternate3VendorName

protected String alternate3VendorName

alternate4VendorName

protected String alternate4VendorName

alternate5VendorName

protected String alternate5VendorName

organizationAutomaticPurchaseOrderLimit

protected org.kuali.rice.kns.util.KualiDecimal organizationAutomaticPurchaseOrderLimit

isBlanketApproveRequest

protected boolean isBlanketApproveRequest
Constructor Detail

RequisitionDocument

public RequisitionDocument()
Default constructor.

Method Detail

getDocumentSpecificService

public PurchasingDocumentSpecificService getDocumentSpecificService()
Specified by:
getDocumentSpecificService in interface PurchasingDocument
Specified by:
getDocumentSpecificService in class PurchasingDocumentBase

isBoNotesSupport

public boolean isBoNotesSupport()
Specified by:
isBoNotesSupport in interface org.kuali.rice.kns.bo.PersistableBusinessObject
Overrides:
isBoNotesSupport in class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
See Also:
PersistableBusinessObjectBase.isBoNotesSupport()

answerSplitNodeQuestion

public boolean answerSplitNodeQuestion(String nodeName)
                                throws UnsupportedOperationException
Provides answers to the following splits: AmountRequiresSeparationOfDutiesReview

Specified by:
answerSplitNodeQuestion in interface FinancialSystemTransactionalDocument
Overrides:
answerSplitNodeQuestion in class FinancialSystemTransactionalDocumentBase
Throws:
UnsupportedOperationException
See Also:
FinancialSystemTransactionalDocumentBase.answerSplitNodeQuestion(java.lang.String)

isMissingAccountingLines

protected boolean isMissingAccountingLines()

isSeparationOfDutiesReviewRequired

protected boolean isSeparationOfDutiesReviewRequired()

isInquiryRendered

public boolean isInquiryRendered()
Overrides the method in PurchasingAccountsPayableDocumentBase to add the criteria specific to Requisition Document.

Specified by:
isInquiryRendered in interface PurchasingAccountsPayableDocument
Overrides:
isInquiryRendered in class PurchasingAccountsPayableDocumentBase
Returns:
See Also:
PurchasingAccountsPayableDocumentBase.isInquiryRendered()

initiateDocument

public void initiateDocument()
Performs logic needed to initiate Requisition Document.


templateBuildingToDeliveryAddress

public void templateBuildingToDeliveryAddress(Building building)

determinePurchaseOrderTransmissionMethod

protected String determinePurchaseOrderTransmissionMethod()
Determines what PO transmission method to use.

Returns:
the PO PO transmission method to use.

getAllowsCopy

public boolean getAllowsCopy()
Checks whether copying of this document should be allowed. Copying is not allowed if this is a B2B requistion, and more than a set number of days have passed since the document's creation.

Specified by:
getAllowsCopy in interface org.kuali.rice.kns.document.Document
Overrides:
getAllowsCopy in class org.kuali.rice.kns.document.TransactionalDocumentBase
Returns:
True if copying of this requisition is allowed.
See Also:
Document.getAllowsCopy()

toCopy

public void toCopy()
            throws org.kuali.rice.kew.exception.WorkflowException,
                   org.kuali.rice.kns.exception.ValidationException
Performs logic needed to copy Requisition Document.

Specified by:
toCopy in interface org.kuali.rice.kns.document.Copyable
Overrides:
toCopy in class AccountingDocumentBase
Throws:
org.kuali.rice.kew.exception.WorkflowException
org.kuali.rice.kns.exception.ValidationException
See Also:
org.kuali.rice.kns.document.Document#toCopy()

updateStatusAndSave

protected void updateStatusAndSave(String statusCode)
Updates status of this document and saves it.

Parameters:
statusCode - the status code of the current status.

getWorkflowEngineDocumentIdsToLock

public List<Long> getWorkflowEngineDocumentIdsToLock()
Specified by:
getWorkflowEngineDocumentIdsToLock in interface org.kuali.rice.kns.document.Document
Overrides:
getWorkflowEngineDocumentIdsToLock in class org.kuali.rice.kns.document.DocumentBase

doRouteStatusChange

public void doRouteStatusChange(org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO statusChangeEvent)
Description copied from class: GeneralLedgerPostingDocumentBase
Override to call super and then iterate over all GLPEs and update the approved code appropriately.

Specified by:
doRouteStatusChange in interface org.kuali.rice.kns.document.Document
Overrides:
doRouteStatusChange in class GeneralLedgerPostingDocumentBase
See Also:
org.kuali.rice.kns.document.DocumentBase#doRouteStatusChange()

doRouteLevelChange

public void doRouteLevelChange(org.kuali.rice.kew.dto.DocumentRouteLevelChangeDTO change)
Specified by:
doRouteLevelChange in interface org.kuali.rice.kns.document.Document
Overrides:
doRouteLevelChange in class org.kuali.rice.kns.document.DocumentBase
See Also:
org.kuali.rice.kns.document.DocumentBase#handleRouteLevelChange(org.kuali.rice.kew.clientapp.vo.DocumentRouteLevelChangeDTO)

getSourceAccountingLineClass

public Class getSourceAccountingLineClass()
Description copied from class: AccountingDocumentBase
Returns the default Source accounting line class.

Specified by:
getSourceAccountingLineClass in interface AccountingDocument
Overrides:
getSourceAccountingLineClass in class AccountingDocumentBase
See Also:
AccountingDocument.getSourceAccountingLineClass()

getRequisitionOrganizationReference1Text

public String getRequisitionOrganizationReference1Text()

setRequisitionOrganizationReference1Text

public void setRequisitionOrganizationReference1Text(String requisitionOrganizationReference1Text)

getRequisitionOrganizationReference2Text

public String getRequisitionOrganizationReference2Text()

setRequisitionOrganizationReference2Text

public void setRequisitionOrganizationReference2Text(String requisitionOrganizationReference2Text)

getRequisitionOrganizationReference3Text

public String getRequisitionOrganizationReference3Text()

setRequisitionOrganizationReference3Text

public void setRequisitionOrganizationReference3Text(String requisitionOrganizationReference3Text)

getAlternate1VendorName

public String getAlternate1VendorName()

setAlternate1VendorName

public void setAlternate1VendorName(String alternate1VendorName)

getAlternate2VendorName

public String getAlternate2VendorName()

setAlternate2VendorName

public void setAlternate2VendorName(String alternate2VendorName)

getAlternate3VendorName

public String getAlternate3VendorName()

setAlternate3VendorName

public void setAlternate3VendorName(String alternate3VendorName)

getAlternate4VendorName

public String getAlternate4VendorName()

setAlternate4VendorName

public void setAlternate4VendorName(String alternate4VendorName)

getAlternate5VendorName

public String getAlternate5VendorName()

setAlternate5VendorName

public void setAlternate5VendorName(String alternate5VendorName)

getOrganizationAutomaticPurchaseOrderLimit

public org.kuali.rice.kns.util.KualiDecimal getOrganizationAutomaticPurchaseOrderLimit()

setOrganizationAutomaticPurchaseOrderLimit

public void setOrganizationAutomaticPurchaseOrderLimit(org.kuali.rice.kns.util.KualiDecimal organizationAutomaticPurchaseOrderLimit)

getItemClass

public Class getItemClass()
Description copied from interface: PurchasingAccountsPayableDocument
Returns the Item Class.

Specified by:
getItemClass in interface PurapItemOperations
Specified by:
getItemClass in interface PurchasingAccountsPayableDocument
Specified by:
getItemClass in class PurchasingAccountsPayableDocumentBase
Returns:
the Item Class.
See Also:
PurchasingAccountsPayableDocumentBase.getItemClass()

getItemUseTaxClass

public Class getItemUseTaxClass()
Specified by:
getItemUseTaxClass in class PurchasingAccountsPayableDocumentBase

getPurApSourceDocumentIfPossible

public PurchasingAccountsPayableDocument getPurApSourceDocumentIfPossible()
Returns null as requistion has no source document.

Specified by:
getPurApSourceDocumentIfPossible in interface PurchasingAccountsPayableDocument
Specified by:
getPurApSourceDocumentIfPossible in class PurchasingAccountsPayableDocumentBase
Returns:
the source of this document if exists, else null.
See Also:
PurchasingAccountsPayableDocumentBase.getPurApSourceDocumentIfPossible()

getPurApSourceDocumentLabelIfPossible

public String getPurApSourceDocumentLabelIfPossible()
Returns null as requistion has no source document.

Specified by:
getPurApSourceDocumentLabelIfPossible in interface PurchasingAccountsPayableDocument
Specified by:
getPurApSourceDocumentLabelIfPossible in class PurchasingAccountsPayableDocumentBase
Returns:
the label of the document source if exists, else null.
See Also:
PurchasingAccountsPayableDocumentBase.getPurApSourceDocumentLabelIfPossible()

getDocumentTitle

public String getDocumentTitle()
Specified by:
getDocumentTitle in interface org.kuali.rice.kns.document.Document
Overrides:
getDocumentTitle in class org.kuali.rice.kns.document.DocumentBase
See Also:
Document.getDocumentTitle()

getFirstChartAccount

protected String getFirstChartAccount()
Gets this requisition's Chart/Account of the first accounting line from the first item.

Returns:
The first Chart and Account, or an empty string if there is none.

getCreateDate

public Date getCreateDate()

getUrl

public String getUrl()

getStatusDescription

public String getStatusDescription()
Deprecated. 

Used for routing only.


setStatusDescription

public void setStatusDescription(String statusDescription)
Deprecated. 

Used for routing only.


generateGeneralLedgerPendingEntries

public boolean generateGeneralLedgerPendingEntries(GeneralLedgerPendingEntrySourceDetail glpeSourceDetail,
                                                   GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
This is a "do nothing" version of the method - it just won't create GLPEs

Specified by:
generateGeneralLedgerPendingEntries in interface GeneralLedgerPendingEntrySource
Overrides:
generateGeneralLedgerPendingEntries in class AccountingDocumentBase
Parameters:
glpeSourceDetail - the source detail line to generate general ledger pending entries for
sequenceHelper - the sequence helper which will assign sequence number to generated general ledger pending entries
Returns:
true if general ledger pending entry generation was successful; false if an error condition prevented the successful generation of the pending entries
See Also:
AccountingDocumentBase.generateGeneralLedgerPendingEntries(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySourceDetail, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

getPurchasingCapitalAssetItemClass

public Class getPurchasingCapitalAssetItemClass()
Specified by:
getPurchasingCapitalAssetItemClass in interface PurchasingDocument
Specified by:
getPurchasingCapitalAssetItemClass in class PurchasingDocumentBase

getPurchasingCapitalAssetSystemClass

public Class getPurchasingCapitalAssetSystemClass()
Specified by:
getPurchasingCapitalAssetSystemClass in interface PurchasingDocument
Specified by:
getPurchasingCapitalAssetSystemClass in class PurchasingDocumentBase

shouldGiveErrorForEmptyAccountsProration

public boolean shouldGiveErrorForEmptyAccountsProration()
Specified by:
shouldGiveErrorForEmptyAccountsProration in interface PurchasingAccountsPayableDocument
Specified by:
shouldGiveErrorForEmptyAccountsProration in interface PurchasingDocument
Overrides:
shouldGiveErrorForEmptyAccountsProration in class PurchasingDocumentBase

getCreateDateForResult

public Date getCreateDateForResult()

isBlanketApproveRequest

public boolean isBlanketApproveRequest()
Gets the isBlanketApproveRequest attribute.

Returns:
Returns the isBlanketApproveRequest.

setBlanketApproveRequest

public void setBlanketApproveRequest(boolean isBlanketApproveRequest)
Sets the isBlanketApproveRequest attribute value.

Parameters:
isBlanketApproveRequest - The isBlanketApproveRequest to set.


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