@Transactional public class PaymentRequestDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements PaymentRequestDao
Constructor and Description |
---|
PaymentRequestDaoOjb() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
Retrieves a list of potentially active payment requests for a purchase order by status code.
|
List<PaymentRequestDocument> |
getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.core.api.util.type.KualiDecimal vendorInvoiceAmount,
Date invoiceDate)
Retrieves a list of Payment Requests with the given PO Id, invoice amount, and invoice date.
|
List<PaymentRequestDocument> |
getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId)
Retrieves a list of payment requests with the given vendor id and invoice number.
|
List<PaymentRequestDocument> |
getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId,
String invoiceNumber)
Retrieves a list of payment requests with the given vendor id and invoice number.
|
String |
getDocumentNumberByPaymentRequestId(Integer id)
Get a payment request document number by id.
|
protected String |
getDocumentNumberOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves a document number for a payment request by user defined criteria.
|
List<String> |
getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
Retrieves a list of document numbers by purchase order id.
|
protected List<String> |
getDocumentNumbersOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria,
boolean orderByAscending)
Retrieves a document number for a payment request by user defined criteria and sorts the values ascending if orderByAscending
parameter is true, descending otherwise.
|
List<String> |
getEligibleForAutoApproval() |
List<String> |
getEligibleForAutoApproval(Date todayAtMidnight)
Get all payment request documents that are eligible for auto-approval.
|
List<PaymentRequestDocument> |
getImmediatePaymentRequestsToExtract(String chartCode)
Get all the payment requests that are marked immediate that need to be extracted to PDP.
|
List<String> |
getPaymentRequestInReceivingStatus()
Get all payment request which are waiting in receiving status queue
|
protected List<PaymentRequestDocument> |
getPaymentRequestsByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
Retrieves a list of payment requests by user defined criteria.
|
List<PaymentRequestDocument> |
getPaymentRequestsToExtract(boolean onlySpecialPayments,
String chartCode,
Date onOrBeforePaymentRequestPayDate)
The special payments query should be this: select * from pur.ap_pmt_rqst_t where pmt_rqst_stat_cd in ('AUTO', 'DPTA') and
prcs_cmp_cd = ? and pmt_extrt_ts is NULL and pmt_hld_ind = 'N' and ( ( ( pmt_spcl_handlg_instrc_ln1_txt is not NULL or
pmt_spcl_handlg_instrc_ln2_txt is not NULL or pmt_spcl_handlg_instrc_ln3_txt is not NULL or pmt_att_ind = 'Y') and trunc
(pmt_rqst_pay_dt) <= trunc (sysdate)) or IMD_PMT_IND = 'Y')})
|
List<PaymentRequestDocument> |
getPaymentRequestsToExtract(String campusCode,
Integer paymentRequestIdentifier,
Integer purchaseOrderIdentifier,
Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier,
Date currentSqlDateMidnight)
Deprecated.
|
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtractForVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforePaymentRequestPayDate)
Get all the payment requests that need to be extracted that match a credit memo.
|
getDbPlatform, setDbPlatform
public PaymentRequestDaoOjb()
public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate)
getPaymentRequestsToExtract
in interface PaymentRequestDao
onlySpecialPayments
- - true only include special payments, False - include allchartCode
- - if not null, limit results to a single chartorg.kuali.ole.module.purap.document.dataaccess.PaymentRequestDao#getPaymentRequestsToExtract(boolean, java.lang.String)
public List<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode)
PaymentRequestDao
getImmediatePaymentRequestsToExtract
in interface PaymentRequestDao
chartCode
- - chart of accounts codePaymentRequestDao.getImmediatePaymentRequestsToExtract(java.lang.String)
@Deprecated public List<PaymentRequestDocument> getPaymentRequestsToExtract(String campusCode, Integer paymentRequestIdentifier, Integer purchaseOrderIdentifier, Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, Date currentSqlDateMidnight)
PaymentRequestDao
getPaymentRequestsToExtract
in interface PaymentRequestDao
campusCode
- - limit results to a single chartpaymentRequestIdentifier
- - Payment Request Identifier (can be null)purchaseOrderIdentifier
- - PO Identifier (can be null)vendorHeaderGeneratedIdentifier
- - Vendor Header IDvendorDetailAssignedIdentifier
- - Vendor Detail IDcurrentSqlDateMidnight
- current SQL date midnightorg.kuali.ole.module.purap.document.dataaccess.PaymentRequestDao#getPaymentRequestsToExtract(java.lang.String,
java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer)
public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate)
PaymentRequestDao
getPaymentRequestsToExtractForVendor
in interface PaymentRequestDao
campusCode
- - limit results to a single chartvendor
- - Vendor Header ID, Vendor Detail ID, Country, Zip CodeonOrBeforePaymentRequestPayDate
- only payment requests with a pay date on or before this value will be returned in the
iteratororg.kuali.ole.module.purap.document.dataaccess.PaymentRequestDao#getPaymentRequestsToExtractForVendor(java.lang.String,
org.kuali.ole.module.purap.util.VendorGroupingHelper)
public List<String> getEligibleForAutoApproval(Date todayAtMidnight)
PaymentRequestDao
getEligibleForAutoApproval
in interface PaymentRequestDao
PaymentRequestDao.getEligibleForAutoApproval()
public List<String> getEligibleForAutoApproval()
getEligibleForAutoApproval
in interface PaymentRequestDao
PaymentRequestDao.getEligibleForAutoApproval()
public String getDocumentNumberByPaymentRequestId(Integer id)
PaymentRequestDao
getDocumentNumberByPaymentRequestId
in interface PaymentRequestDao
id
- - PaymentRequest IdPaymentRequestDao.getDocumentNumberByPaymentRequestId(java.lang.Integer)
public List<String> getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
PaymentRequestDao
getDocumentNumbersByPurchaseOrderId
in interface PaymentRequestDao
poPurApId
- - purchase order idPaymentRequestDao.getDocumentNumbersByPurchaseOrderId(java.lang.Integer)
protected String getDocumentNumberOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria)
criteria
- - list of criteria to use in the retrieveprotected List<String> getDocumentNumbersOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria, boolean orderByAscending)
criteria
- - list of criteria to use in the retrieveorderByAscending
- - boolean to sort results ascending if true, descending otherwiseprotected List<PaymentRequestDocument> getPaymentRequestsByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
qbc
- - query with criteriapublic List<PaymentRequestDocument> getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId, String invoiceNumber)
getActivePaymentRequestsByVendorNumberInvoiceNumber
in interface PaymentRequestDao
vendorHeaderGeneratedId
- - header id of the vendor idvendorDetailAssignedId
- - detail id of the vendor idinvoiceNumber
- - invoice number as entered by APpublic List<PaymentRequestDocument> getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId)
getActivePaymentRequestsByVendorNumber
in interface PaymentRequestDao
vendorHeaderGeneratedId
- - header id of the vendor idvendorDetailAssignedId
- - detail id of the vendor idinvoiceNumber
- - invoice number as entered by APpublic List<PaymentRequestDocument> getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId, org.kuali.rice.core.api.util.type.KualiDecimal vendorInvoiceAmount, Date invoiceDate)
PaymentRequestDao
getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate
in interface PaymentRequestDao
poId
- - purchase order IDvendorInvoiceAmount
- - amount of the invoice as entered by APinvoiceDate
- - date of the invoice as entered by APPaymentRequestDao.getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(java.lang.Integer,
org.kuali.rice.core.api.util.type.KualiDecimal, java.sql.Date)
public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
PaymentRequestDao
getActivePaymentRequestDocumentNumbersForPurchaseOrder
in interface PaymentRequestDao
public List<String> getPaymentRequestInReceivingStatus()
PaymentRequestDao
getPaymentRequestInReceivingStatus
in interface PaymentRequestDao
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.