org.kuali.kfs.module.purap.document.dataaccess
Interface PurchaseOrderDao

All Known Implementing Classes:
PurchaseOrderDaoOjb

public interface PurchaseOrderDao

Purchase Order DAO Interface.


Method Summary
 List<AutoClosePurchaseOrderView> getAllOpenPurchaseOrders(List<String> excludedVendorChoiceCodes)
          This method gets all the PurchaseOrderView objects that relate to POs with no recurring payment type, status of 'OPEN', and total encumbrance of 0 that do not have any of the excluded vendor choice codes.
 List<AutoClosePurchaseOrderView> getAutoCloseRecurringPurchaseOrders(List<String> excludedVendorChoiceCodes)
          This method gets all the PurchaseOrderView objects that relate to POs with a recurring payment type, status of 'OPEN', and that do not have any of the excluded vendor choice codes.
 PurchaseOrderDocument getCurrentPurchaseOrder(Integer id)
           
 String getDocumentNumberForCurrentPurchaseOrder(Integer id)
          Retrieves the current Purchase Order Document's document number by the purapDocumentIdentifier.
 String getDocumentNumberForPurchaseOrderId(Integer id)
          Retrieves the Purchase Order Document's document number using the purapDocumentIdentifier as criteria
 String getOldestPurchaseOrderDocumentNumber(Integer id)
          Retrieves the oldest purchase order's (defined by the one having the smallest document number) document number.
 List<PurchaseOrderDocument> getPendingPurchaseOrdersForFaxing()
          This method gets all the Purchase orders that are waiting for faxing
 Integer getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId(Integer accountsPayablePurchasingDocumentLinkIdentifier)
           
 boolean itemExistsOnPurchaseOrder(Integer poItemLineNumber, String docNumber)
          Determines if the purchase order item exists on the current purchase order.
 

Method Detail

getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId

Integer getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId(Integer accountsPayablePurchasingDocumentLinkIdentifier)

getCurrentPurchaseOrder

PurchaseOrderDocument getCurrentPurchaseOrder(Integer id)

getDocumentNumberForPurchaseOrderId

String getDocumentNumberForPurchaseOrderId(Integer id)
Retrieves the Purchase Order Document's document number using the purapDocumentIdentifier as criteria

Parameters:
id - - purapDocument Identifier
Returns:
- the document number of the purchase order found or null if no purchase order found

getDocumentNumberForCurrentPurchaseOrder

String getDocumentNumberForCurrentPurchaseOrder(Integer id)
Retrieves the current Purchase Order Document's document number by the purapDocumentIdentifier.

Parameters:
id - - purapDocument Identifier
Returns:
- the document number of the purchase order found or null if no purchase order found

getOldestPurchaseOrderDocumentNumber

String getOldestPurchaseOrderDocumentNumber(Integer id)
Retrieves the oldest purchase order's (defined by the one having the smallest document number) document number.

Parameters:
id - - the purapDocumentIdentifier.
Returns:
- the document numbers of the purchase order found or null if none found

itemExistsOnPurchaseOrder

boolean itemExistsOnPurchaseOrder(Integer poItemLineNumber,
                                  String docNumber)
Determines if the purchase order item exists on the current purchase order.

Parameters:
poItemLineNumber -
docNumber -
Returns:

getAllOpenPurchaseOrders

List<AutoClosePurchaseOrderView> getAllOpenPurchaseOrders(List<String> excludedVendorChoiceCodes)
This method gets all the PurchaseOrderView objects that relate to POs with no recurring payment type, status of 'OPEN', and total encumbrance of 0 that do not have any of the excluded vendor choice codes.

Parameters:
excludedVendorChoiceCodes - - list of strings of excluded vendor choice codes
Returns:
List of PurchaseOrderAutoClose objects

getAutoCloseRecurringPurchaseOrders

List<AutoClosePurchaseOrderView> getAutoCloseRecurringPurchaseOrders(List<String> excludedVendorChoiceCodes)
This method gets all the PurchaseOrderView objects that relate to POs with a recurring payment type, status of 'OPEN', and that do not have any of the excluded vendor choice codes.

Parameters:
excludedVendorChoiceCodes - - list of strings of excluded vendor choice codes
Returns:
List of PurchaseOrderAutoClose objects

getPendingPurchaseOrdersForFaxing

List<PurchaseOrderDocument> getPendingPurchaseOrdersForFaxing()
This method gets all the Purchase orders that are waiting for faxing

Returns:
List of POs


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