|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PurapService
Defines methods that must be implemented by classes providing a PurapService.
Method Summary | |
---|---|
void |
addBelowLineItems(PurchasingAccountsPayableDocument document)
Add the allowed below the line items to the given document |
boolean |
allowEncumberNextFiscalYear()
Returns true if the current date falls within the allowed range to encumber in the next fiscal year. |
void |
calculateTax(PurchasingAccountsPayableDocument purapDocument)
Calculates sales or use tax for each item if sales tax enabled and item is taxable. |
void |
clearAllTaxes(PurchasingAccountsPayableDocument apDoc)
|
void |
clearTax(PurchasingAccountsPayableDocument purapDocument,
boolean useTax)
Clears the tax from a document. |
void |
deleteUnenteredItems(PurapItemOperations document)
Remove items that have not been "entered" which means no data has been added to them so no more processing needs to continue on these items. |
List<Integer> |
getAllowedFiscalYears()
Returns a list of fiscal years that can be selected from on the document (built for Requisition and Purchase Order). |
org.kuali.rice.kns.util.KualiDecimal |
getApoLimit(Integer vendorContractGeneratedIdentifier,
String chart,
String org)
Retrieve the Automatic Purchase Order Limit amount based first on the derived contract limit (see VendorService.getApoLimitFromContract(Integer, String, String) ) and if that is null
then based on the OrganizationParameter associated with the given 'chart' and 'org' values. |
PurApItem |
getBelowTheLineByType(PurchasingAccountsPayableDocument document,
ItemType iT)
Retrieve the below the line item for a doc by item type (unknown result if multiple of same below the line item type) |
String[] |
getBelowTheLineForDocument(PurchasingAccountsPayableDocument document)
Retrieves the below the line items allowed from the parameter table for the given document |
Date |
getDateFromOffsetFromToday(int offsetDays)
Return a Date object which is which is a given number of days away from today, in either direction. |
String |
getDeliveryState(PurchasingAccountsPayableDocument purapDocument)
Retrieves the delivery state from the document |
List<String> |
getRelatedDocumentIds(Integer accountsPayablePurchasingDocumentLinkIdentifier)
|
List |
getRelatedViews(Class clazz,
Integer accountsPayablePurchasingDocumentLinkIdentifier)
Retrieve list of views for given identifier |
boolean |
isAccountingLineTaxable(PurApAccountingLine acctLine,
boolean deliveryStateTaxable)
Determines if the accounting line is taxable based on account and object code. |
boolean |
isDateAYearBeforeToday(Date compareDate)
We are obliged not to simply use a dateDiff and compare the result to 365, because we have to worry about leap years. |
boolean |
isDateInPast(Date compareDate)
Determine whether a given date is in the past. |
boolean |
isDateMoreThanANumberOfDaysAway(Date compareDate,
int daysAway)
Determine whether a given date is more than a given number of days away from the current date. |
boolean |
isDeliveryStateTaxable(String deliveryState)
Determines if the delivery state is taxable or not. |
boolean |
isDocumentStoppedInRouteNode(PurchasingAccountsPayableDocument document,
String nodeName)
Determines if a document is in a specified node. |
boolean |
isFullDocumentEntryCompleted(PurchasingAccountsPayableDocument purapDocument)
Determines if full entry mode has ended for this Purchasing/Accounts Payable document. |
boolean |
isItemTypeConflictWithTaxPolicy(PurchasingDocument purchasingDocument,
PurApItem item)
Determines if the item type specified conflict with the Account tax policy. |
boolean |
isTaxable(boolean useTaxIndicator,
String deliveryState,
PurApItem item)
Determines if the item is taxable based on a decision tree. |
boolean |
isTaxableForSummary(boolean useTaxIndicator,
String deliveryState,
PurApItem item)
Determines if the item is taxable based on a decision tree. |
boolean |
isTodayWithinApoAllowedRange()
Returns true if today is within the APO allowed date range. |
void |
performLogicForCloseReopenPO(PurchasingAccountsPayableDocument purapDocument)
Create a close or reopen purchase order document. |
Object |
performLogicWithFakedUserSession(String requiredPersonPersonUserId,
LogicContainer logicToRun,
Object... objects)
Performs the given logic with the given fake user id. |
void |
prorateForTradeInAndFullOrderDiscount(PurchasingAccountsPayableDocument purDoc)
Proation for Trade in and Full Order Discount miscellaneous items. |
void |
saveDocumentNoValidation(org.kuali.rice.kns.document.Document document)
Saves the document without doing validation by invoking the saveDocument method of documentService. |
void |
saveRoutingDataForRelatedDocuments(Integer accountsPayablePurchasingDocumentLinkIdentifier)
|
void |
sortBelowTheLine(PurchasingAccountsPayableDocument document)
Sort the below the line elements of the given document |
boolean |
updateStatus(PurchasingAccountsPayableDocument document,
String statusToSet)
Update the status for the given Purchasing/Accounts Payable document |
void |
updateUseTaxIndicator(PurchasingAccountsPayableDocument purapDocument,
boolean newUseTaxIndicatorValue)
Updates the use tax field, clearing old values if it has changed |
Method Detail |
---|
boolean updateStatus(PurchasingAccountsPayableDocument document, String statusToSet)
document
- statusToSet
-
List<String> getRelatedDocumentIds(Integer accountsPayablePurchasingDocumentLinkIdentifier)
void saveRoutingDataForRelatedDocuments(Integer accountsPayablePurchasingDocumentLinkIdentifier)
List getRelatedViews(Class clazz, Integer accountsPayablePurchasingDocumentLinkIdentifier)
clazz
- accountsPayablePurchasingDocumentLinkIdentifier
-
void addBelowLineItems(PurchasingAccountsPayableDocument document)
document
- PurchasingAccountsPayableDocumentString[] getBelowTheLineForDocument(PurchasingAccountsPayableDocument document)
document
- PurchasingAccountsPayableDocument
PurApItem getBelowTheLineByType(PurchasingAccountsPayableDocument document, ItemType iT)
document
- the documentiT
- the itemType
Date getDateFromOffsetFromToday(int offsetDays)
offsetDays
-
boolean isDateInPast(Date compareDate)
compareDate
- An SQL date (not a DateFormatter date, or a util Date)
boolean isDateMoreThanANumberOfDaysAway(Date compareDate, int daysAway)
compareDate
- An SQL date (not a DateFormatter date, or a util Date)daysAway
- An int, positive for future days, negative for past days
boolean isDateAYearBeforeToday(Date compareDate)
compareDate
- An SQL date (not a DateFormatter date, or a util Date)
org.kuali.rice.kns.util.KualiDecimal getApoLimit(Integer vendorContractGeneratedIdentifier, String chart, String org)
VendorService.getApoLimitFromContract(Integer, String, String)
) and if that is null
then based on the OrganizationParameter
associated with the given 'chart' and 'org' values.
vendorContractGeneratedIdentifier
- chart
- chart code to use when looking up limit amount on VendorContract
and
OrganizationParameter
org
- organization code to use when looking up limit amount on VendorContract
and
OrganizationParameter
boolean isFullDocumentEntryCompleted(PurchasingAccountsPayableDocument purapDocument)
purapDocument
- PurchasingAccountsPayableDocument
void performLogicForCloseReopenPO(PurchasingAccountsPayableDocument purapDocument)
purapDocument
- PurchasingAccountsPayableDocumentObject performLogicWithFakedUserSession(String requiredPersonPersonUserId, LogicContainer logicToRun, Object... objects) throws org.kuali.rice.kew.exception.WorkflowException, Exception
requiredPersonPersonUserId
- logicToRun
- objects
-
org.kuali.rice.kew.exception.WorkflowException
Exception
void sortBelowTheLine(PurchasingAccountsPayableDocument document)
document
- PurchasingAccountsPayableDocument to be sortedvoid deleteUnenteredItems(PurapItemOperations document)
apDocument
- AccountsPayableDocument which contains list of items to be reviewedvoid saveDocumentNoValidation(org.kuali.rice.kns.document.Document document)
document
- The purchase order document to be saved.boolean isDocumentStoppedInRouteNode(PurchasingAccountsPayableDocument document, String nodeName)
document
- nodeName
-
boolean allowEncumberNextFiscalYear()
List<Integer> getAllowedFiscalYears()
boolean isTodayWithinApoAllowedRange()
void calculateTax(PurchasingAccountsPayableDocument purapDocument)
purapDocument
- void clearTax(PurchasingAccountsPayableDocument purapDocument, boolean useTax)
purapDocument
- documentuseTax
- the whether to clear use or salesvoid updateUseTaxIndicator(PurchasingAccountsPayableDocument purapDocument, boolean newUseTaxIndicatorValue)
purapDocument
- documentnewUseTaxIndicatorValue
- useTaxIndicator to change tovoid prorateForTradeInAndFullOrderDiscount(PurchasingAccountsPayableDocument purDoc)
purDoc
- boolean isTaxable(boolean useTaxIndicator, String deliveryState, PurApItem item)
useTaxIndicator
- deliveryState
- item
-
boolean isTaxableForSummary(boolean useTaxIndicator, String deliveryState, PurApItem item)
useTaxIndicator
- deliveryState
- item
-
String getDeliveryState(PurchasingAccountsPayableDocument purapDocument)
purapDocument
-
boolean isAccountingLineTaxable(PurApAccountingLine acctLine, boolean deliveryStateTaxable)
acctLine
- deliveryStateTaxable
-
boolean isDeliveryStateTaxable(String deliveryState)
deliveryState
-
void clearAllTaxes(PurchasingAccountsPayableDocument apDoc)
boolean isItemTypeConflictWithTaxPolicy(PurchasingDocument purchasingDocument, PurApItem item)
purchasingDocument
- purchasing document to checkitem
- item to check if in conflict with tax policy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |