@Transactional public class DisbursementVoucherExtractServiceImpl extends Object implements DisbursementVoucherExtractService
Constructor and Description |
---|
DisbursementVoucherExtractServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPayment(DisbursementVoucherDocument document,
Batch batch,
Date processRunDate,
boolean immediate)
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.api.identity.Person user,
Date processRunDate)
This method creates a Batch instance and populates it with the information provided.
|
void |
extractImmediatePayment(DisbursementVoucherDocument disbursementVoucher)
Extracts a single DisbursementVoucherDocument
|
void |
extractImmediatePayments()
Pulls all disbursement vouchers with status of "A" and marked for immediate payment from the database and builds payment records for them
|
protected void |
extractImmediatePaymentsForCampus(String campusCode,
org.kuali.rice.kim.api.identity.Person user,
Date processRunDate)
Builds payment batch for Disbursement Vouchers marked as immediate
|
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.api.identity.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 Set<String> |
getImmediatesCampusListByDocumentStatusCode(String statusCode)
Retrieves a list of campuses which have Disbursement Vouchers ready to be process which are marked for immediate processing
|
protected Collection<DisbursementVoucherDocument> |
getListByDocumentStatusCodeCampus(String statusCode,
String campusCode,
boolean immediatesOnly)
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.api.identity.PersonService |
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.krad.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.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setCustomerProfileService(CustomerProfileService customerProfileService)
This method sets the customerProfileService instance.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
This method sets the dateTimeService instance.
|
void |
setDisbursementVoucherDao(DisbursementVoucherDao disbursementVoucherDao)
This method sets the disbursementVoucherDao instance.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.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.
|
public DisbursementVoucherExtractServiceImpl()
public boolean extractPayments()
extractPayments
in interface DisbursementVoucherExtractService
DisbursementVoucherExtractService.extractPayments()
public void extractImmediatePayments()
extractImmediatePayments
in interface DisbursementVoucherExtractService
DisbursementVoucherExtractService.extractImmediatePayments()
protected void extractPaymentsForCampus(String campusCode, org.kuali.rice.kim.api.identity.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 extractImmediatePaymentsForCampus(String campusCode, org.kuali.rice.kim.api.identity.Person user, Date processRunDate)
campusCode
- the campus code the disbursement vouchers should be associated withuser
- the user responsible building the payment batch (typically the System User, kfs)processRunDate
- the time that the job to build immediate payments is runprotected void addPayment(DisbursementVoucherDocument document, Batch batch, Date processRunDate, boolean immediate)
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.api.identity.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 Set<String> getImmediatesCampusListByDocumentStatusCode(String statusCode)
statusCode
- the status code of the documents to retrieveprotected Collection<DisbursementVoucherDocument> getListByDocumentStatusCodeCampus(String statusCode, String campusCode, boolean immediatesOnly)
statusCode
- The status of the disbursement vouchers to be retrieved.campusCode
- The campus code that the disbursement vouchers will be associated with.immediatesOnly
- only retrieve Disbursement Vouchers marked for immediate paymentpublic void cancelExtractedDisbursementVoucher(DisbursementVoucherDocument dv, Date processDate)
cancelExtractedDisbursementVoucher
in interface DisbursementVoucherExtractService
dv
- the disbursement voucher document to cancelprocessDate
- the date of the cancelationorg.kuali.ole.fp.batch.service.DisbursementVoucherExtractService#cancelExtractedDisbursementVoucher(org.kuali.ole.fp.document.DisbursementVoucherDocument)
protected void oppositifyEntry(GeneralLedgerPendingEntry glpe, org.kuali.rice.krad.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.ole.fp.batch.service.DisbursementVoucherExtractService#resetExtractedDisbursementVoucher(org.kuali.ole.fp.document.DisbursementVoucherDocument)
public DisbursementVoucherDocument getDocumentById(String documentNumber)
getDocumentById
in interface DisbursementVoucherExtractService
documentNumber
- the number of the document to look upDisbursementVoucherExtractService.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.ole.fp.batch.service.DisbursementVoucherExtractService#markDisbursementVoucherAsPaid(org.kuali.ole.fp.document.DisbursementVoucherDocument)
public void extractImmediatePayment(DisbursementVoucherDocument disbursementVoucher)
extractImmediatePayment
in interface DisbursementVoucherExtractService
disbursementVoucher
- the voucher to immediately extractDisbursementVoucherExtractService.extractImmediatePayment(org.kuali.ole.fp.document.DisbursementVoucherDocument)
public void setDisbursementVoucherDao(DisbursementVoucherDao disbursementVoucherDao)
disbursementVoucherDao
- The DisbursementVoucherDao to be set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The ParameterService to be set.public void setDateTimeService(org.kuali.rice.core.api.datetime.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.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService
- The paymentFileEmailService to set.protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.