@Transactional public class InvoiceDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements InvoiceDao
Constructor and Description |
---|
InvoiceDaoOjb() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getActiveInvoiceDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
Retrieves a list of potentially active invoices for a purchase order by status code.
|
List<InvoiceDocument> |
getActiveInvoicesByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.core.api.util.type.KualiDecimal vendorInvoiceAmount,
Date invoiceDate)
Retrieves a list of Invoices with the given PO Id, invoice amount, and invoice date.
|
List<InvoiceDocument> |
getActiveInvoicesByVendorNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId)
Retrieves a list of invoices with the given vendor id and invoice number.
|
List<InvoiceDocument> |
getActiveInvoicesByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId,
String invoiceNumber)
Retrieves a list of invoices with the given vendor id and invoice number.
|
String |
getDocumentNumberByInvoiceId(Integer id)
Get a invoice document number by id.
|
protected String |
getDocumentNumberOfInvoiceByCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves a document number for a invoice by user defined criteria.
|
List<String> |
getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
Retrieves a list of document numbers by purchase order id.
|
protected List<String> |
getDocumentNumbersOfInvoiceByCriteria(org.apache.ojb.broker.query.Criteria criteria,
boolean orderByAscending)
Retrieves a document number for a invoice by user defined criteria and sorts the values ascending if orderByAscending
parameter is true, descending otherwise.
|
List<String> |
getEligibleForAutoApproval(Date todayAtMidnight)
Get all invoice documents that are eligible for auto-approval.
|
List<InvoiceDocument> |
getImmediateInvoicesToExtract(String chartCode)
Get all the invoices that are marked immediate that need to be extracted to PDP.
|
List<String> |
getInvoiceInReceivingStatus()
Get all invoice which are waiting in receiving status queue
|
protected List<InvoiceDocument> |
getInvoicesByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
Retrieves a list of invoices by user defined criteria.
|
List<InvoiceDocument> |
getInvoicesToExtract(boolean onlySpecialPayments,
String chartCode,
Date onOrBeforeInvoicePayDate)
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<InvoiceDocument> |
getInvoicesToExtract(String campusCode,
Integer invoiceIdentifier,
Integer purchaseOrderIdentifier,
Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier,
Date currentSqlDateMidnight)
Deprecated.
|
Collection<InvoiceDocument> |
getInvoicesToExtractForVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforeInvoicePayDate)
Get all the invoices that need to be extracted that match a credit memo.
|
getDbPlatform, setDbPlatform
public InvoiceDaoOjb()
public List<InvoiceDocument> getInvoicesToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforeInvoicePayDate)
getInvoicesToExtract
in interface InvoiceDao
onlySpecialPayments
- - true only include special payments, False - include allchartCode
- - if not null, limit results to a single chartInvoiceDao.getInvoicesToExtract(boolean, String, Date)
public List<InvoiceDocument> getImmediateInvoicesToExtract(String chartCode)
InvoiceDao
getImmediateInvoicesToExtract
in interface InvoiceDao
chartCode
- - chart of accounts codeInvoiceDao.getImmediateInvoicesToExtract(String)
@Deprecated public List<InvoiceDocument> getInvoicesToExtract(String campusCode, Integer invoiceIdentifier, Integer purchaseOrderIdentifier, Integer vendorHeaderGeneratedIdentifier, Integer vendorDetailAssignedIdentifier, Date currentSqlDateMidnight)
InvoiceDao
getInvoicesToExtract
in interface InvoiceDao
campusCode
- - limit results to a single chartinvoiceIdentifier
- - Invoice Identifier (can be null)purchaseOrderIdentifier
- - PO Identifier (can be null)vendorHeaderGeneratedIdentifier
- - Vendor Header IDvendorDetailAssignedIdentifier
- - Vendor Detail IDcurrentSqlDateMidnight
- current SQL date midnightInvoiceDao.getInvoicesToExtract(String, Integer, Integer, Integer, Integer, Date)
public Collection<InvoiceDocument> getInvoicesToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforeInvoicePayDate)
InvoiceDao
getInvoicesToExtractForVendor
in interface InvoiceDao
campusCode
- - limit results to a single chartvendor
- - Vendor Header ID, Vendor Detail ID, Country, Zip CodeonOrBeforeInvoicePayDate
- only invoices with a pay date on or before this value will be returned in the
iteratorInvoiceDao.getInvoicesToExtractForVendor(String,
org.kuali.ole.module.purap.util.VendorGroupingHelper, Date)
public List<String> getEligibleForAutoApproval(Date todayAtMidnight)
InvoiceDao
getEligibleForAutoApproval
in interface InvoiceDao
InvoiceDao.getEligibleForAutoApproval(Date)
public String getDocumentNumberByInvoiceId(Integer id)
InvoiceDao
getDocumentNumberByInvoiceId
in interface InvoiceDao
id
- - Invoice IdInvoiceDao.getDocumentNumberByInvoiceId(Integer)
public List<String> getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
InvoiceDao
getDocumentNumbersByPurchaseOrderId
in interface InvoiceDao
poPurApId
- - purchase order idInvoiceDao.getDocumentNumbersByPurchaseOrderId(Integer)
protected String getDocumentNumberOfInvoiceByCriteria(org.apache.ojb.broker.query.Criteria criteria)
criteria
- - list of criteria to use in the retrieveprotected List<String> getDocumentNumbersOfInvoiceByCriteria(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<InvoiceDocument> getInvoicesByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
qbc
- - query with criteriapublic List<InvoiceDocument> getActiveInvoicesByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId, String invoiceNumber)
getActiveInvoicesByVendorNumberInvoiceNumber
in interface InvoiceDao
vendorHeaderGeneratedId
- - header id of the vendor idvendorDetailAssignedId
- - detail id of the vendor idinvoiceNumber
- - invoice number as entered by APpublic List<InvoiceDocument> getActiveInvoicesByVendorNumber(Integer vendorHeaderGeneratedId, Integer vendorDetailAssignedId)
getActiveInvoicesByVendorNumber
in interface InvoiceDao
vendorHeaderGeneratedId
- - header id of the vendor idvendorDetailAssignedId
- - detail id of the vendor idpublic List<InvoiceDocument> getActiveInvoicesByPOIdInvoiceAmountInvoiceDate(Integer poId, org.kuali.rice.core.api.util.type.KualiDecimal vendorInvoiceAmount, Date invoiceDate)
InvoiceDao
getActiveInvoicesByPOIdInvoiceAmountInvoiceDate
in interface InvoiceDao
poId
- - purchase order IDvendorInvoiceAmount
- - amount of the invoice as entered by APinvoiceDate
- - date of the invoice as entered by APInvoiceDao.getActiveInvoicesByPOIdInvoiceAmountInvoiceDate(Integer,
org.kuali.rice.core.api.util.type.KualiDecimal, java.sql.Date)
public List<String> getActiveInvoiceDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
InvoiceDao
getActiveInvoiceDocumentNumbersForPurchaseOrder
in interface InvoiceDao
public List<String> getInvoiceInReceivingStatus()
InvoiceDao
getInvoiceInReceivingStatus
in interface InvoiceDao
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.