|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.fp.batch.service.impl.DisbursementVoucherExtractServiceImpl
@Transactional public class DisbursementVoucherExtractServiceImpl
This is the default implementation of the DisbursementVoucherExtractService interface.
Constructor Summary | |
---|---|
DisbursementVoucherExtractServiceImpl()
|
Method Summary | |
---|---|
protected void |
addPayment(DisbursementVoucherDocument document,
Batch batch,
Date processRunDate)
This method creates a payment group from the disbursement voucher and batch provided and persists that group to the database. |
protected PaymentDetail |
buildPaymentDetail(DisbursementVoucherDocument document,
Batch batch,
Date processRunDate)
This method builds a payment detail object from the disbursement voucher document provided and links that detail file to the batch and process run date given. |
protected PaymentGroup |
buildPaymentGroup(DisbursementVoucherDocument document,
Batch batch)
This method creates a PaymentGroup from the disbursement voucher and batch provided. |
void |
cancelExtractedDisbursementVoucher(DisbursementVoucherDocument dv,
Date processDate)
This cancels the disbursement voucher |
protected Batch |
createBatch(String campusCode,
org.kuali.rice.kim.bo.Person user,
Date processRunDate)
This method creates a Batch instance and populates it with the information provided. |
boolean |
extractPayments()
This method extracts all payments from a disbursement voucher with a status code of "A" and uploads them as a batch for processing. |
protected void |
extractPaymentsForCampus(String campusCode,
org.kuali.rice.kim.bo.Person user,
Date processRunDate)
This method extracts all outstanding payments from all the disbursement vouchers in approved status for a given campus and adds these payments to a batch file that is uploaded for processing. |
protected Set<String> |
getCampusListByDocumentStatusCode(String statusCode)
This method retrieves a collection of campus instances representing all the campuses which currently have disbursement vouchers with the status code provided. |
DisbursementVoucherDocument |
getDocumentById(String documentNumber)
Looks up the document using document service, and deals with any nasty WorkflowException or ClassCastExceptions that pop up |
protected Collection<DisbursementVoucherDocument> |
getListByDocumentStatusCodeCampus(String statusCode,
String campusCode)
This method retrieves a list of disbursement voucher documents that are in the status provided for the campus code given. |
protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> |
getPersonService()
|
void |
markDisbursementVoucherAsPaid(DisbursementVoucherDocument dv,
Date processDate)
Marks the disbursement voucher as paid by setting its paid date |
protected void |
oppositifyEntry(GeneralLedgerPendingEntry glpe,
org.kuali.rice.kns.service.BusinessObjectService boService,
GeneralLedgerPendingEntrySequenceHelper glpeSeqHelper)
Updates the given general ledger pending entry so that it will have the opposite effect of what it was created to do; this, in effect, undoes the entries that were already posted for this document |
void |
resetExtractedDisbursementVoucher(DisbursementVoucherDocument dv,
Date processDate)
This updates the disbursement voucher so that when it is re-extracted, information about it will be accurate |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setCustomerProfileService(CustomerProfileService customerProfileService)
This method sets the customerProfileService instance. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
This method sets the dateTimeService instance. |
void |
setDisbursementVoucherDao(DisbursementVoucherDao disbursementVoucherDao)
This method sets the disbursementVoucherDao instance. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
This method sets the ParameterService instance. |
void |
setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
Sets the paymentFileEmailService attribute value. |
void |
setPaymentFileService(PaymentFileService paymentFileService)
This method sets the paymentFileService instance. |
void |
setPaymentGroupService(PaymentGroupService paymentGroupService)
This method sets the paymentGroupService instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisbursementVoucherExtractServiceImpl()
Method Detail |
---|
public boolean extractPayments()
extractPayments
in interface DisbursementVoucherExtractService
DisbursementVoucherExtractService.extractPayments()
protected void extractPaymentsForCampus(String campusCode, org.kuali.rice.kim.bo.Person user, Date processRunDate)
campusCode
- The id code of the campus the payments will be retrieved for.user
- The user object used when creating the batch file to upload with outstanding payments.processRunDate
- This is the date that the batch file is created, often this value will be today's date.protected void addPayment(DisbursementVoucherDocument document, Batch batch, Date processRunDate)
document
- The document used to build a payment group detail.batch
- The batch file used to build a payment group and detail.processRunDate
- The date the batch file is to post.protected PaymentGroup buildPaymentGroup(DisbursementVoucherDocument document, Batch batch)
document
- The document to be used for retrieving the information about the vendor being paid.batch
- The batch that the payment group will be associated with.
protected PaymentDetail buildPaymentDetail(DisbursementVoucherDocument document, Batch batch, Date processRunDate)
document
- The disbursement voucher document to retrieve payment information from to populate the PaymentDetail.batch
- The batch file associated with the payment.processRunDate
- The date of the payment detail invoice.
protected Batch createBatch(String campusCode, org.kuali.rice.kim.bo.Person user, Date processRunDate)
campusCode
- The campus code used to retrieve a customer profile to be set on the batch.user
- The user who submitted the batch.processRunDate
- The date the batch was submitted and the date the customer profile was generated.
protected Set<String> getCampusListByDocumentStatusCode(String statusCode)
statusCode
- The status code to retrieve disbursement vouchers by.
protected Collection<DisbursementVoucherDocument> getListByDocumentStatusCodeCampus(String statusCode, String campusCode)
statusCode
- The status of the disbursement vouchers to be retrieved.campusCode
- The campus code that the disbursement vouchers will be associated with.
public void cancelExtractedDisbursementVoucher(DisbursementVoucherDocument dv, Date processDate)
cancelExtractedDisbursementVoucher
in interface DisbursementVoucherExtractService
dv
- the disbursement voucher document to cancelprocessDate
- the date of the cancelationorg.kuali.kfs.fp.batch.service.DisbursementVoucherExtractService#cancelExtractedDisbursementVoucher(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
protected void oppositifyEntry(GeneralLedgerPendingEntry glpe, org.kuali.rice.kns.service.BusinessObjectService boService, GeneralLedgerPendingEntrySequenceHelper glpeSeqHelper)
glpe
- the general ledger pending entry to undopublic void resetExtractedDisbursementVoucher(DisbursementVoucherDocument dv, Date processDate)
resetExtractedDisbursementVoucher
in interface DisbursementVoucherExtractService
dv
- the disbursement voucher document to resetprocessDate
- the date of the resetingorg.kuali.kfs.fp.batch.service.DisbursementVoucherExtractService#resetExtractedDisbursementVoucher(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
public DisbursementVoucherDocument getDocumentById(String documentNumber)
getDocumentById
in interface DisbursementVoucherExtractService
documentNumber
- the number of the document to look up
DisbursementVoucherExtractService.getDocumentById(java.lang.String)
public void markDisbursementVoucherAsPaid(DisbursementVoucherDocument dv, Date processDate)
markDisbursementVoucherAsPaid
in interface DisbursementVoucherExtractService
dv
- the dv document to mark as paidprocessDate
- the date when the dv was paidorg.kuali.kfs.fp.batch.service.DisbursementVoucherExtractService#markDisbursementVoucherAsPaid(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
public void setDisbursementVoucherDao(DisbursementVoucherDao disbursementVoucherDao)
disbursementVoucherDao
- The DisbursementVoucherDao to be set.public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The ParameterService to be set.public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The DateTimeService to be set.public void setCustomerProfileService(CustomerProfileService customerProfileService)
customerProfileService
- The CustomerProfileService to be set.public void setPaymentFileService(PaymentFileService paymentFileService)
paymentFileService
- The PaymentFileService to be set.public void setPaymentGroupService(PaymentGroupService paymentGroupService)
paymentGroupService
- The PaymentGroupService to be set.public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService
- The paymentFileEmailService to set.protected org.kuali.rice.kim.service.PersonService<org.kuali.rice.kim.bo.Person> getPersonService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |