public abstract class PurchasingAccountsPayableDocumentBase extends AccountingDocumentBase implements PurchasingAccountsPayableDocument, AmountTotaling
dataDictionaryEntry, nextSourceLineNumber, nextTargetLineNumber, sourceAccountingLineClass, sourceAccountingLines, targetAccountingLineClass, targetAccountingLines
generalLedgerPendingEntries
accountingPeriod, accountingPeriodService, checkPostingYearForCopy, dataDictionaryService, dateTimeService, postingPeriodCode, postingYear
UPDATE_TOTAL_AMOUNT_IN_POST_PROCESSING_PARAMETER_NAME
Constructor and Description |
---|
PurchasingAccountsPayableDocumentBase()
Default constructor to be overridden.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(PurApItem item)
Adds the specified item to this document.
|
protected String |
buildDocumentTitle(String title)
build document title based on the properties of current document
|
List |
buildListOfDeletionAwareLists() |
void |
customPrepareForSave(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
Allows child PO classes to customize the prepareForSave method.
|
void |
deleteItem(int lineNum)
Deletes the specified item from this document.
|
boolean |
documentPerformsSufficientFundsCheck()
PURAP documents are all overriding this method to return false because sufficient funds checking should not be performed on
route of any PURAP documents.
|
void |
fixItemReferences()
This method fixes the item references in this document if it's new
|
String |
getAccountDistributionMethod()
Gets the accountDistributionMethod attribute.
|
List<SourceAccountingLine> |
getAccountsForRouting() |
Integer |
getAccountsPayablePurchasingDocumentLinkIdentifier() |
protected org.kuali.rice.core.api.util.type.KualiDecimal |
getAccountTotalGLEntryAmount(AccountingLine matchingAccountingLine)
Helper method to find the matching accountingLines in the list of sourceAccountingLines and sum up the lines amounts.
|
String[] |
getBelowTheLineTypes()
Gets all below the line item types.
|
protected List |
getDeletionAwareAccountingLines()
Build deletion list of accounting lines for PurAp generic use.
|
protected GeneralLedgerPendingEntry |
getFirstPendingGLEntry() |
boolean |
getIsATypeOfPODoc()
Determines whether the document is a type of PurchseOrderDocument (including its subclass documents).
|
boolean |
getIsATypeOfPurAPRecDoc()
Always returns true.
|
boolean |
getIsATypeOfPurDoc()
Determines whether the document is a type of PurchasingDocument.
|
boolean |
getIsPODoc()
Determines whether the document is a PurchaseOrderDocument (excluding its subclass documents).
|
boolean |
getIsReqsDoc()
Determines whether the document is a RequisitionDocument.
|
PurApItem |
getItem(int pos)
Gets the item at the specified index.
|
PurApItem |
getItemByItemIdentifier(Integer itemID)
Find the item in the document via its identifier.
|
PurApItem |
getItemByLineNumber(int lineNumber)
Iterates through the items of the document and returns the item with the line number equal to the number given, or null if a
match is not found.
|
PurApItem |
getItemByStringIdentifier(String itemStrID)
Find the item in the document via its string identifier.
|
abstract Class |
getItemClass()
Returns the Item Class.
|
int |
getItemLinePosition()
Determines the item line position if the user did not specify the line number on an above the line items before clicking on
the add button.
|
List |
getItems() |
abstract Class |
getItemUseTaxClass() |
String |
getLicenseURL()
This method returns the licenserequest web service url
|
boolean |
getNeedWarningRelatedPOs()
Checks whether the related purchase order views need a warning to be displayed, i.e.
|
org.kuali.rice.krad.util.NoteType |
getNoteType() |
PurchaseOrderType |
getOrderType() |
Boolean |
getOverrideWorkflowButtons() |
protected List |
getPersistedSourceAccountingLinesForComparison()
Accounting lines that are read-only should skip validation
|
String |
getPostingPeriodCodeFromPendingGLEntries() |
Integer |
getPostingYearFromPendingGLEntries() |
Integer |
getPostingYearNextOrCurrent()
If posting year on document is set to use NEXT fiscal year, then return NEXT.
|
Integer |
getPurapDocumentIdentifier() |
abstract PurchasingAccountsPayableDocument |
getPurApSourceDocumentIfPossible()
Returns the source of this Purchasing Accounts Payable Document if exists.
|
abstract String |
getPurApSourceDocumentLabelIfPossible()
Returns the label of the source of this Purchasing Accounts Payable Document if exists.
|
BigDecimal |
getPurchaseOrderTypeId() |
PurApRelatedViews |
getRelatedViews() |
List |
getSourceAccountingLines()
Overridden to return the source lines of all of the items
|
protected List |
getSourceAccountingLinesForComparison()
Accounting lines that are read-only should skip validation
|
String |
getStatusCode()
Gets the statusCode attribute.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmount()
Since one side of the document should match the other and the document should balance, the total dollar amount for the
document should either be the expense line or the income line.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountAboveLineItems()
Computes the total dollar amount of all above the line items.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountAboveLineItems(String[] excludedTypes)
Computes the total dollar amount of all above the line items with the specified item types excluded.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountAllItems(String[] excludedTypes)
Computes the total dollar amount with the specified item types excluded.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountForTradeIn() |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountWithExclusions(String[] excludedTypes,
boolean includeBelowTheLine)
Computes the total dollar amount with the specified item types and possibly below the line items excluded.
|
protected org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalDollarAmountWithExclusionsSubsetItems(String[] excludedTypes,
boolean includeBelowTheLine,
List<PurApItem> itemsForTotal)
This method...
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalPreTaxDollarAmount()
Computes the pre tax total dollar amount of all items.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalPreTaxDollarAmountAboveLineItems()
Computes the total dollar amount of all above the line items.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalPreTaxDollarAmountAboveLineItems(String[] excludedTypes)
Computes the total dollar amount of all above the line items with the specified item types excluded.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalPreTaxDollarAmountAllItems(String[] excludedTypes)
Computes the pre tax total dollar amount with the specified item types excluded.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalPreTaxDollarAmountWithExclusions(String[] excludedTypes,
boolean includeBelowTheLine)
Computes the total dollar amount with the specified item types and possibly below the line items excluded.
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalTaxAmount() |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalTaxAmountAboveLineItems() |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalTaxAmountAboveLineItems(String[] excludedTypes) |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalTaxAmountAllItems(String[] excludedTypes) |
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalTaxAmountWithExclusions(String[] excludedTypes,
boolean includeBelowTheLine) |
PurApItem |
getTradeInItem()
Returns the trade in item of the document.
|
List<PurApItem> |
getTradeInItems()
This method...
|
Integer |
getVendorAddressGeneratedIdentifier() |
String |
getVendorAddressInternationalProvinceName() |
String |
getVendorAttentionName() |
String |
getVendorCityName() |
org.kuali.rice.location.framework.country.CountryEbo |
getVendorCountry() |
String |
getVendorCountryCode() |
String |
getVendorCustomerNumber() |
VendorDetail |
getVendorDetail() |
Integer |
getVendorDetailAssignedIdentifier() |
Integer |
getVendorHeaderGeneratedIdentifier() |
String |
getVendorLine1Address() |
String |
getVendorLine2Address() |
String |
getVendorName() |
String |
getVendorNumber()
Returns the vendor number for this document.
|
String |
getVendorPostalCode() |
String |
getVendorStateCode() |
boolean |
isCalculated()
Gets the calculated attribute.
|
boolean |
isDebit(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether the account is debit.
|
boolean |
isDocumentStoppedInRouteNode(String nodeName)
Returns true if this document is stopped in the specified route node.
|
protected boolean |
isDuplicateAccountingLine(List<AccountingLine> sourceAccountingLines,
PurApAccountingLine accountingLine)
Helper method to check if the source accounting line is already in the list and if so return true
|
boolean |
isInquiryRendered()
Determines whether the inquiry links should be rendered
for Object Code and Sub Object Code.
|
boolean |
isPostingYearNext()
Returns true if posting year on document is set to use NEXT fiscal year.
|
boolean |
isPostingYearPrior()
Returns true if posting year on document is set to use PRIOR fiscal year.
|
boolean |
isSensitive() |
boolean |
isUseTaxIndicator() |
void |
itemSwap(int positionFrom,
int positionTo)
Swaps the specified two items based on their item line numbers (which are one higher than the item positions in the list).
|
protected void |
logAndThrowRuntimeException(String errorMessage)
Records the specified error message into the Log file and throws a runtime exception.
|
protected void |
logAndThrowRuntimeException(String errorMessage,
Exception e)
Records the specified error message into the Log file and throws the specified runtime exception.
|
protected void |
populateAccountsForRouting()
Makes sure that accounts for routing has been generated, so that other information can be retrieved from that
|
void |
prepareForSave(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event) |
void |
processAfterRetrieve()
This is the default implementation which ensures that document note attachment references are loaded.
|
void |
refreshNonUpdateableReferences() |
void |
renumberItems(int start)
Renumbers the item starting from the specified index.
|
void |
setAccountDistributionMethod(String accountDistributionMethod)
Sets the accountDistributionMethod attribute.
|
void |
setAccountsForRouting(List<SourceAccountingLine> accountsForRouting) |
void |
setAccountsPayablePurchasingDocumentLinkIdentifier(Integer accountsPayablePurchasingDocumentLinkIdentifier) |
void |
setCalculated(boolean calculated)
Sets the calculated attribute.
|
void |
setItems(List items) |
void |
setOleUrlResolver(OleUrlResolver oleUrlResolver) |
void |
setOrderType(PurchaseOrderType orderType) |
void |
setOverrideWorkflowButtons(Boolean overrideWorkflowButtons) |
void |
setPostingYear(Integer postingYear)
Overriding the parent method so that we can just set the posting year without the other stuff that the parent does to the
accounting period.
|
void |
setPurapDocumentIdentifier(Integer identifier) |
void |
setPurchaseOrderTypeId(BigDecimal purchaseOrderTypeId) |
void |
setPurchaseOrderTypeId(String purchaseOrderType) |
void |
setRelatedViews(PurApRelatedViews relatedViews) |
void |
setStatusCode(String statusCode)
Sets the statusCode attribute.
|
void |
setTotalDollarAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount)
Sets the total dollar amount to the specified amount.
|
void |
setTotalPreTaxDollarAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount)
Sets the pre tax total dollar amount to the specified amount.
|
void |
setTotalTaxAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount) |
void |
setUseTaxIndicator(boolean useTaxIndicator) |
void |
setVendorAddressGeneratedIdentifier(Integer vendorAddressGeneratedIdentifier) |
void |
setVendorAddressInternationalProvinceName(String vendorAddressInternationalProvinceName) |
void |
setVendorAttentionName(String vendorAttentionName) |
void |
setVendorCityName(String vendorCityName) |
void |
setVendorCountry(org.kuali.rice.location.framework.country.CountryEbo vendorCountry)
Deprecated.
|
void |
setVendorCountryCode(String vendorCountryCode) |
void |
setVendorCustomerNumber(String vendorCustomerNumber) |
void |
setVendorDetail(VendorDetail vendorDetail) |
void |
setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier) |
void |
setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier) |
void |
setVendorLine1Address(String vendorLine1Address) |
void |
setVendorLine2Address(String vendorLine2Address) |
void |
setVendorName(String vendorName) |
void |
setVendorNumber(String vendorNumber) |
void |
setVendorPostalCode(String vendorPostalCode) |
void |
setVendorStateCode(String vendorStateCode) |
void |
templateVendorAddress(VendorAddress vendorAddress)
Sets vendor address fields based on a given VendorAddress.
|
addSourceAccountingLine, addTargetAccountingLine, buildAccountingLineMap, copyAccountingLines, customizeExplicitGeneralLedgerPendingEntry, customizeOffsetGeneralLedgerPendingEntry, generateDocumentGeneralLedgerPendingEntries, generateEvents, generateGeneralLedgerPendingEntries, generateSaveEvents, getAccountingLineParser, getDataDictionaryEntry, getDocumentClassForAccountingLineValueAllowedValidation, getEntryValue, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getNextSourceLineNumber, getNextTargetLineNumber, getPersistedTargetAccountingLinesForComparison, getSourceAccountingLine, getSourceAccountingLineClass, getSourceAccountingLineEntryName, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesForComparison, getTargetAccountingLinesSectionTitle, getTargetTotal, isDocumentFinalOrProcessed, processExplicitGeneralLedgerPendingEntry, processOffsetGeneralLedgerPendingEntry, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines, toCopy, toErrorCorrection, updatePostingYearForAccountingLines
addPendingEntry, changeGeneralLedgerPendingEntriesApprovedStatusCode, checkSufficientFunds, clearAnyGeneralLedgerPendingEntries, doRouteStatusChange, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, removeGeneralLedgerPendingEntries, setGeneralLedgerPendingEntries
createInitialAccountingPeriod, getAccountingPeriod, getAccountingPeriodCompositeString, getAccountingPeriodService, getDataDictionaryService, getDateTimeService, getFinancialDocumentTypeCode, getPostingPeriodCode, getPostingYear, retrieveCurrentAccountingPeriod, setAccountingPeriod, setAccountingPeriodCompositeString, setPostingPeriodCode
answerSplitNodeQuestion, doRouteLevelChange, getApplicationDocumentStatus, getBusinessObjectService, getFinancialSystemDocumentHeader, getFinancialSystemDocumentService, getParameterService, prepareForSave, setApplicationDocumentStatus, setDocumentHeader, updateAndSaveAppDocStatus
getAllowsCopy, isSessionDocument
addCopyErrorDocumentNote, addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAttachmentService, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getNote, getNotes, getNoteService, getNoteTarget, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postLoad, postProcessSave, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentNumber, setNewDocumentHeader, setNotes, setPessimisticLocks, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationDocumentStatus, getTransactionTaxDate, setApplicationDocumentStatus, shouldGiveErrorForEmptyAccountsProration
addSourceAccountingLine, addTargetAccountingLine, getAccountingLineParser, getDocumentClassForAccountingLineValueAllowedValidation, getNextSourceLineNumber, getNextTargetLineNumber, getSourceAccountingLine, getSourceAccountingLineClass, getSourceAccountingLineEntryName, getSourceAccountingLinesSectionTitle, getSourceTotal, getTargetAccountingLine, getTargetAccountingLineClass, getTargetAccountingLineEntryName, getTargetAccountingLines, getTargetAccountingLinesSectionTitle, getTargetTotal, isDocumentFinalOrProcessed, setNextSourceLineNumber, setNextTargetLineNumber, setSourceAccountingLines, setTargetAccountingLines
checkSufficientFunds, getGeneralLedgerPendingEntries, getGeneralLedgerPendingEntry, getPendingLedgerEntriesForSufficientFundsChecking, setGeneralLedgerPendingEntries
getAccountingPeriod, getPostingPeriodCode, getPostingYear, setAccountingPeriod, setPostingPeriodCode
answerSplitNodeQuestion, getFinancialSystemDocumentHeader
addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
getExtension, isNewCollectionRecord, linkEditableUserFields, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
addPendingEntry, clearAnyGeneralLedgerPendingEntries, generateDocumentGeneralLedgerPendingEntries, generateGeneralLedgerPendingEntries, getDocumentHeader, getFinancialDocumentTypeCode, getFinancialSystemDocumentHeader, getGeneralLedgerPendingEntryAmountForDetail, getGeneralLedgerPendingEntrySourceDetails, getPostingYear
protected Integer purapDocumentIdentifier
protected Integer vendorHeaderGeneratedIdentifier
protected Integer vendorDetailAssignedIdentifier
protected String vendorCustomerNumber
protected String vendorName
protected String vendorLine1Address
protected String vendorLine2Address
protected String vendorCityName
protected String vendorStateCode
protected String vendorAddressInternationalProvinceName
protected String vendorPostalCode
protected String vendorCountryCode
protected Integer accountsPayablePurchasingDocumentLinkIdentifier
protected boolean useTaxIndicator
protected String vendorAttentionName
protected String accountDistributionMethod
protected BigDecimal purchaseOrderTypeId
protected String statusCode
protected String vendorNumber
protected Integer vendorAddressGeneratedIdentifier
protected Boolean overrideWorkflowButtons
protected transient PurApRelatedViews relatedViews
protected boolean sensitive
protected boolean calculated
protected List<SourceAccountingLine> accountsForRouting
protected VendorDetail vendorDetail
protected org.kuali.rice.location.framework.country.CountryEbo vendorCountry
protected PurchaseOrderType orderType
protected OleLicensingRequirement licenseReqmt
public transient String[] belowTheLineTypes
public boolean allowDeleteAwareCollection
public PurchasingAccountsPayableDocumentBase()
protected GeneralLedgerPendingEntry getFirstPendingGLEntry()
public Integer getPostingYearFromPendingGLEntries()
public String getPostingPeriodCodeFromPendingGLEntries()
public List<SourceAccountingLine> getAccountsForRouting()
public void setAccountsForRouting(List<SourceAccountingLine> accountsForRouting)
protected void populateAccountsForRouting()
public boolean isSensitive()
public boolean isInquiryRendered()
PurchasingAccountsPayableDocument
isInquiryRendered
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.isInquiryRendered()
public boolean isPostingYearNext()
PurchasingAccountsPayableDocument
isPostingYearNext
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.isPostingYearNext()
public boolean isPostingYearPrior()
PurchasingAccountsPayableDocument
isPostingYearPrior
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.isPostingYearPrior()
public Integer getPostingYearNextOrCurrent()
PurchasingAccountsPayableDocument
getPostingYearNextOrCurrent
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getPostingYearNextOrCurrent()
public abstract Class getItemClass()
PurchasingAccountsPayableDocument
getItemClass
in interface PurapItemOperations
getItemClass
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getItemClass()
public abstract Class getItemUseTaxClass()
public abstract PurchasingAccountsPayableDocument getPurApSourceDocumentIfPossible()
PurchasingAccountsPayableDocument
getPurApSourceDocumentIfPossible
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getPurApSourceDocumentIfPossible()
public abstract String getPurApSourceDocumentLabelIfPossible()
PurchasingAccountsPayableDocument
getPurApSourceDocumentLabelIfPossible
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getPurApSourceDocumentLabelIfPossible()
public void prepareForSave(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
prepareForSave
in interface org.kuali.rice.krad.document.Document
prepareForSave
in class AccountingDocumentBase
DocumentBase.prepareForSave()
public boolean documentPerformsSufficientFundsCheck()
documentPerformsSufficientFundsCheck
in class GeneralLedgerPostingDocumentBase
GeneralLedgerPostingDocumentBase.documentPerformsSufficientFundsCheck()
public boolean isDocumentStoppedInRouteNode(String nodeName)
PurchasingAccountsPayableDocument
isDocumentStoppedInRouteNode
in interface PurchasingAccountsPayableDocument
protected void logAndThrowRuntimeException(String errorMessage)
errorMessage
- the error message to be logged.protected void logAndThrowRuntimeException(String errorMessage, Exception e)
errorMessage
- the specified error message.e
- the specified runtime exception.public void customPrepareForSave(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
event
- the event involved in this action.public List buildListOfDeletionAwareLists()
buildListOfDeletionAwareLists
in interface org.kuali.rice.krad.bo.PersistableBusinessObject
buildListOfDeletionAwareLists
in class AccountingDocumentBase
AccountingDocumentBase.buildListOfDeletionAwareLists()
protected List getDeletionAwareAccountingLines()
public void processAfterRetrieve()
FinancialSystemTransactionalDocumentBase
processAfterRetrieve
in interface org.kuali.rice.krad.document.Document
processAfterRetrieve
in class FinancialSystemTransactionalDocumentBase
AccountingDocumentBase.buildListOfDeletionAwareLists()
public void addItem(PurApItem item)
PurchasingAccountsPayableDocument
addItem
in interface PurchasingAccountsPayableDocument
item
- the specified item to add.PurchasingAccountsPayableDocument.addItem(PurApItem item)
public void deleteItem(int lineNum)
PurchasingAccountsPayableDocument
deleteItem
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.deleteItem(int lineNum)
public void renumberItems(int start)
PurchasingAccountsPayableDocument
renumberItems
in interface PurchasingAccountsPayableDocument
start
- the index of the starting item to be renumbered.PurchasingAccountsPayableDocument.renumberItems(int start)
public void itemSwap(int positionFrom, int positionTo)
PurchasingAccountsPayableDocument
itemSwap
in interface PurchasingAccountsPayableDocument
positionFrom
- the position of the first itempositionTo
- the position of the second itemPurchasingAccountsPayableDocument.itemSwap(int positionFrom, int positionTo)
public int getItemLinePosition()
PurchasingAccountsPayableDocument
getItemLinePosition
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getItemLinePosition()
public PurApItem getItem(int pos)
PurchasingAccountsPayableDocument
getItem
in interface PurapItemOperations
getItem
in interface PurchasingAccountsPayableDocument
pos
- the specified index.PurchasingAccountsPayableDocument.getItem(int pos)
public PurApItem getItemByLineNumber(int lineNumber)
lineNumber
- line number to match on.public PurApItem getItemByStringIdentifier(String itemStrID)
itemStrID
- the string identifier of the item being searched forpublic PurApItem getItemByItemIdentifier(Integer itemID)
itemID
- the string identifier of the item being searched forpublic void setPostingYear(Integer postingYear)
setPostingYear
in interface LedgerPostingDocument
setPostingYear
in class LedgerPostingDocumentBase
LedgerPostingDocumentBase.setPostingYear(java.lang.Integer)
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmount()
AccountingDocumentBase
getTotalDollarAmount
in interface PurchasingAccountsPayableDocument
getTotalDollarAmount
in interface AmountTotaling
getTotalDollarAmount
in class AccountingDocumentBase
AccountingDocumentBase.getTotalDollarAmount()
public void setTotalDollarAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount)
PurchasingAccountsPayableDocument
setTotalDollarAmount
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.setTotalDollarAmount(KualiDecimal amount)
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountAllItems(String[] excludedTypes)
PurchasingAccountsPayableDocument
getTotalDollarAmountAllItems
in interface PurchasingAccountsPayableDocument
excludedTypes
- the types of items to be excluded.PurchasingAccountsPayableDocument.getTotalDollarAmountAllItems(String[]
excludedTypes)
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountAboveLineItems()
getTotalDollarAmountAboveLineItems
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountAboveLineItems(String[] excludedTypes)
excludedTypes
- the types of items to be excluded.public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountWithExclusions(String[] excludedTypes, boolean includeBelowTheLine)
excludedTypes
- the types of items to be excluded.includeBelowTheLine
- indicates whether below the line items shall be included.protected org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountWithExclusionsSubsetItems(String[] excludedTypes, boolean includeBelowTheLine, List<PurApItem> itemsForTotal)
excludedTypes
- includeBelowTheLine
- itemsForTotal
- public org.kuali.rice.core.api.util.type.KualiDecimal getTotalDollarAmountForTradeIn()
getTotalDollarAmountForTradeIn
in interface PurchasingAccountsPayableDocument
public List<PurApItem> getTradeInItems()
getTradeInItems
in interface PurchasingAccountsPayableDocument
tradeInItems
- public org.kuali.rice.core.api.util.type.KualiDecimal getTotalPreTaxDollarAmount()
PurchasingAccountsPayableDocument
getTotalPreTaxDollarAmount
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getTotalPreTaxDollarAmount()
public void setTotalPreTaxDollarAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount)
PurchasingAccountsPayableDocument
setTotalPreTaxDollarAmount
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument#setTotalPreTaxDollarAmount(org.kuali.rice.kns.util.KualiDecimal)
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalPreTaxDollarAmountAllItems(String[] excludedTypes)
PurchasingAccountsPayableDocument
getTotalPreTaxDollarAmountAllItems
in interface PurchasingAccountsPayableDocument
excludedTypes
- the types of items to be excluded.PurchasingAccountsPayableDocument.getTotalPreTaxDollarAmountAllItems(java.lang.String[])
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalPreTaxDollarAmountAboveLineItems()
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalPreTaxDollarAmountAboveLineItems(String[] excludedTypes)
excludedTypes
- the types of items to be excluded.public org.kuali.rice.core.api.util.type.KualiDecimal getTotalPreTaxDollarAmountWithExclusions(String[] excludedTypes, boolean includeBelowTheLine)
excludedTypes
- the types of items to be excluded.includeBelowTheLine
- indicates whether below the line items shall be included.public org.kuali.rice.core.api.util.type.KualiDecimal getTotalTaxAmount()
getTotalTaxAmount
in interface PurchasingAccountsPayableDocument
public void setTotalTaxAmount(org.kuali.rice.core.api.util.type.KualiDecimal amount)
setTotalTaxAmount
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalTaxAmountAllItems(String[] excludedTypes)
getTotalTaxAmountAllItems
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalTaxAmountAboveLineItems()
getTotalTaxAmountAboveLineItems
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalTaxAmountAboveLineItems(String[] excludedTypes)
getTotalTaxAmountAboveLineItems
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalTaxAmountWithExclusions(String[] excludedTypes, boolean includeBelowTheLine)
getTotalTaxAmountWithExclusions
in interface PurchasingAccountsPayableDocument
public boolean isUseTaxIndicator()
isUseTaxIndicator
in interface PurchasingAccountsPayableDocument
public void setUseTaxIndicator(boolean useTaxIndicator)
setUseTaxIndicator
in interface PurchasingAccountsPayableDocument
public void templateVendorAddress(VendorAddress vendorAddress)
PurchasingAccountsPayableDocument
templateVendorAddress
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.templateVendorAddress(VendorAddress)
public String getVendorNumber()
getVendorNumber
in interface PurchasingAccountsPayableDocument
PurchasingAccountsPayableDocument.getVendorNumber()
public void setVendorNumber(String vendorNumber)
setVendorNumber
in interface PurchasingAccountsPayableDocument
public Boolean getOverrideWorkflowButtons()
public void setOverrideWorkflowButtons(Boolean overrideWorkflowButtons)
public Integer getVendorHeaderGeneratedIdentifier()
getVendorHeaderGeneratedIdentifier
in interface PurchasingAccountsPayableDocument
public void setVendorHeaderGeneratedIdentifier(Integer vendorHeaderGeneratedIdentifier)
setVendorHeaderGeneratedIdentifier
in interface PurchasingAccountsPayableDocument
public Integer getVendorDetailAssignedIdentifier()
getVendorDetailAssignedIdentifier
in interface PurchasingAccountsPayableDocument
public void setVendorDetailAssignedIdentifier(Integer vendorDetailAssignedIdentifier)
setVendorDetailAssignedIdentifier
in interface PurchasingAccountsPayableDocument
public String getVendorCustomerNumber()
getVendorCustomerNumber
in interface PurchasingAccountsPayableDocument
public void setVendorCustomerNumber(String vendorCustomerNumber)
setVendorCustomerNumber
in interface PurchasingAccountsPayableDocument
public Integer getPurapDocumentIdentifier()
getPurapDocumentIdentifier
in interface PurchasingAccountsPayableDocument
public void setPurapDocumentIdentifier(Integer identifier)
setPurapDocumentIdentifier
in interface PurchasingAccountsPayableDocument
public VendorDetail getVendorDetail()
getVendorDetail
in interface PurchasingAccountsPayableDocument
public void setVendorDetail(VendorDetail vendorDetail)
public List getItems()
getItems
in interface PurapItemOperations
getItems
in interface PurchasingAccountsPayableDocument
public void setItems(List items)
setItems
in interface PurapItemOperations
setItems
in interface PurchasingAccountsPayableDocument
public String getVendorCityName()
getVendorCityName
in interface PurchasingAccountsPayableDocument
public void setVendorCityName(String vendorCityName)
setVendorCityName
in interface PurchasingAccountsPayableDocument
public String getVendorCountryCode()
getVendorCountryCode
in interface PurchasingAccountsPayableDocument
public void setVendorCountryCode(String vendorCountryCode)
setVendorCountryCode
in interface PurchasingAccountsPayableDocument
public String getVendorLine1Address()
getVendorLine1Address
in interface PurchasingAccountsPayableDocument
public void setVendorLine1Address(String vendorLine1Address)
setVendorLine1Address
in interface PurchasingAccountsPayableDocument
public String getVendorLine2Address()
getVendorLine2Address
in interface PurchasingAccountsPayableDocument
public void setVendorLine2Address(String vendorLine2Address)
setVendorLine2Address
in interface PurchasingAccountsPayableDocument
public String getVendorName()
getVendorName
in interface PurchasingAccountsPayableDocument
public void setVendorName(String vendorName)
setVendorName
in interface PurchasingAccountsPayableDocument
public String getVendorPostalCode()
getVendorPostalCode
in interface PurchasingAccountsPayableDocument
public void setVendorPostalCode(String vendorPostalCode)
setVendorPostalCode
in interface PurchasingAccountsPayableDocument
public String getVendorStateCode()
getVendorStateCode
in interface PurchasingAccountsPayableDocument
public void setVendorStateCode(String vendorStateCode)
setVendorStateCode
in interface PurchasingAccountsPayableDocument
public String getVendorAddressInternationalProvinceName()
getVendorAddressInternationalProvinceName
in interface PurchasingAccountsPayableDocument
public void setVendorAddressInternationalProvinceName(String vendorAddressInternationalProvinceName)
setVendorAddressInternationalProvinceName
in interface PurchasingAccountsPayableDocument
public Integer getVendorAddressGeneratedIdentifier()
getVendorAddressGeneratedIdentifier
in interface PurchasingAccountsPayableDocument
public void setVendorAddressGeneratedIdentifier(Integer vendorAddressGeneratedIdentifier)
setVendorAddressGeneratedIdentifier
in interface PurchasingAccountsPayableDocument
public Integer getAccountsPayablePurchasingDocumentLinkIdentifier()
getAccountsPayablePurchasingDocumentLinkIdentifier
in interface PurchasingAccountsPayableDocument
public void setAccountsPayablePurchasingDocumentLinkIdentifier(Integer accountsPayablePurchasingDocumentLinkIdentifier)
setAccountsPayablePurchasingDocumentLinkIdentifier
in interface PurchasingAccountsPayableDocument
public String[] getBelowTheLineTypes()
PurchasingAccountsPayableDocument
getBelowTheLineTypes
in interface PurchasingAccountsPayableDocument
public org.kuali.rice.location.framework.country.CountryEbo getVendorCountry()
getVendorCountry
in interface PurchasingAccountsPayableDocument
@Deprecated public void setVendorCountry(org.kuali.rice.location.framework.country.CountryEbo vendorCountry)
PurApObjectUtils
class to work correctly.public String getVendorAttentionName()
public void setVendorAttentionName(String vendorAttentionName)
public String getAccountDistributionMethod()
public void setAccountDistributionMethod(String accountDistributionMethod)
accountDistributionMethod
- The accountDistributionMethod to set.public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable)
isDebit
in interface GeneralLedgerPendingEntrySource
isDebit
in class AccountingDocumentBase
financialDocument
- The document containing the account to be validated.accountingLine
- The account to be validated.org.kuali.ole.sys.document.validation.AccountingLineRule#isDebit(org.kuali.ole.sys.document.AccountingDocument,
org.kuali.ole.sys.businessobject.AccountingLine)
public PurApRelatedViews getRelatedViews()
public void setRelatedViews(PurApRelatedViews relatedViews)
public void refreshNonUpdateableReferences()
refreshNonUpdateableReferences
in interface org.kuali.rice.krad.bo.PersistableBusinessObject
refreshNonUpdateableReferences
in class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
public void fixItemReferences()
fixItemReferences
in interface PurchasingAccountsPayableDocument
public PurApItem getTradeInItem()
getTradeInItem
in interface PurchasingAccountsPayableDocument
public boolean getIsATypeOfPurAPRecDoc()
PurchasingAccountsPayableDocument
getIsATypeOfPurAPRecDoc
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument.getIsATypeOfPurAPRecDoc().
public boolean getIsATypeOfPurDoc()
PurchasingAccountsPayableDocument
getIsATypeOfPurDoc
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument.getIsATypeOfPurDoc().
public boolean getIsATypeOfPODoc()
PurchasingAccountsPayableDocument
getIsATypeOfPODoc
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument.getIsATypeOfPODoc().
public boolean getIsPODoc()
PurchasingAccountsPayableDocument
getIsPODoc
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument.getIsPODoc().
public boolean getIsReqsDoc()
PurchasingAccountsPayableDocument
getIsReqsDoc
in interface PurchasingAccountsPayableDocument
org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument.getIsATypeOfREQSDoc().
protected String buildDocumentTitle(String title)
the
- default document titlepublic List getSourceAccountingLines()
getSourceAccountingLines
in interface AccountingDocument
getSourceAccountingLines
in class AccountingDocumentBase
AccountingDocumentBase.getSourceAccountingLines()
protected boolean isDuplicateAccountingLine(List<AccountingLine> sourceAccountingLines, PurApAccountingLine accountingLine)
sourceAccountingLines
- accountingLine
- protected org.kuali.rice.core.api.util.type.KualiDecimal getAccountTotalGLEntryAmount(AccountingLine matchingAccountingLine)
accountingLine
- public boolean getNeedWarningRelatedPOs()
protected List getPersistedSourceAccountingLinesForComparison()
getPersistedSourceAccountingLinesForComparison
in class AccountingDocumentBase
AccountingDocumentBase.getPersistedSourceAccountingLinesForComparison()
protected List getSourceAccountingLinesForComparison()
getSourceAccountingLinesForComparison
in class AccountingDocumentBase
AccountingDocumentBase.getSourceAccountingLinesForComparison()
public String getStatusCode()
public void setStatusCode(String statusCode)
statusCode
- The statusCode to set.public boolean isCalculated()
isCalculated
in interface PurchasingAccountsPayableDocument
public void setCalculated(boolean calculated)
setCalculated
in interface PurchasingAccountsPayableDocument
calculated
- The calculated to set.public BigDecimal getPurchaseOrderTypeId()
public void setPurchaseOrderTypeId(BigDecimal purchaseOrderTypeId)
public void setPurchaseOrderTypeId(String purchaseOrderType)
public PurchaseOrderType getOrderType()
public void setOrderType(PurchaseOrderType orderType)
public String getLicenseURL()
public void setOleUrlResolver(OleUrlResolver oleUrlResolver)
public org.kuali.rice.krad.util.NoteType getNoteType()
getNoteType
in interface org.kuali.rice.krad.document.Document
getNoteType
in class org.kuali.rice.krad.document.DocumentBase
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.