@Transactional public class PdpExtractServiceImpl extends Object implements PdpExtractService
Modifier and Type | Class and Description |
---|---|
protected class |
PdpExtractServiceImpl.AccountingInfo
Holds temporary accounting information for combining into payment accounting details
|
protected class |
PdpExtractServiceImpl.Totals
Holds total count and amount for extract
|
Constructor and Description |
---|
PdpExtractServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAccounts(AccountsPayableDocument accountsPayableDocument,
PaymentDetail paymentDetail,
String documentType)
Add accounts to a PDP Payment Detail
|
protected void |
addNotes(AccountsPayableDocument accountsPayableDocument,
PaymentDetail paymentDetail)
Add Notes to a PDP Payment Detail
|
protected PaymentGroup |
buildPaymentGroup(List<PaymentRequestDocument> paymentRequests,
List<VendorCreditMemoDocument> creditMemos,
Batch batch)
Create the PDP payment group from a list of payment requests & credit memos
|
protected Batch |
createBatch(String campusCode,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate)
Create a new PDP batch
|
void |
extractImmediatePaymentsOnly()
Extract all payments marked immediate.
|
protected void |
extractPayments(boolean immediateOnly,
Date processRunDate)
Extracts payments from the database
|
void |
extractPayments(Date runDate)
Extract all payments ready to be paid.
|
protected void |
extractPaymentsForCampus(String campusCode,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate,
boolean immediateOnly)
Handle a single campus
|
protected PdpExtractServiceImpl.Totals |
extractRegularPaymentsForChart(String campusCode,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate,
Batch batch)
Get all the payments that could be combined with credit memos
|
protected PdpExtractServiceImpl.Totals |
extractSpecialPaymentsForChart(String campusCode,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate,
Batch batch,
boolean immediatesOnly)
Get all the special payments for a campus and process them
|
protected org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
protected List<String> |
getChartCodes(boolean immediatesOnly,
Date processRunDate)
Find all the campuses that have payments to process
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
protected int |
getMaxNoteLines() |
OleSelectDocumentService |
getOleSelectDocumentService() |
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
String |
getVendorAliasName(Integer vendorHeaderGeneratedIdentifier) |
String |
getVendorAliasTypeName(Integer vendorAliasTypeId) |
protected PaymentDetail |
populatePaymentDetail(PaymentRequestDocument paymentRequestDocument,
Batch batch)
Create a PDP Payment Detail record from a Payment Request document
|
protected PaymentDetail |
populatePaymentDetail(VendorCreditMemoDocument creditMemoDocument,
Batch batch)
Create a PDP payment detail record from a Credit Memo document
|
protected PaymentGroup |
populatePaymentGroup(PaymentRequestDocument paymentRequestDocument,
Batch batch)
Populate the PDP Payment Group from fields on a payment request
|
protected PaymentGroup |
populatePaymentGroup(VendorCreditMemoDocument creditMemoDocument,
Batch batch)
Populates a PaymentGroup record from a Credit Memo document
|
protected void |
processPaymentBundle(List<PaymentRequestDocument> paymentRequests,
List<VendorCreditMemoDocument> creditMemos,
PdpExtractServiceImpl.Totals totals,
List<String> preqsWithOutstandingCreditMemos,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate,
Batch batch)
Processes the list of payment requests and credit memos as a payment group pending
|
protected PaymentGroup |
processSinglePaymentRequestDocument(PaymentRequestDocument paymentRequestDocument,
Batch batch,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate)
Handle a single payment request with no credit memos
|
void |
setBankService(BankService bankService)
Sets the bankService attribute value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.
|
void |
setCreditMemoService(CreditMemoService creditMemoService)
Sets the creditMemoService attribute value.
|
void |
setCustomerProfileService(CustomerProfileService customerProfileService)
Sets the customerProfileService attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
void |
setLockedDocuments(List<String> lockedDocuments) |
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
void |
setPaymentDetailService(PaymentDetailService paymentDetailService)
Sets the paymentDetailService attribute value.
|
void |
setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
Sets the paymentFileEmailService attribute value.
|
void |
setPaymentFileService(PaymentFileService paymentFileService)
Sets the paymentFileService attribute value.
|
void |
setPaymentGroupService(PaymentGroupService paymentGroupService)
Sets the paymentGroupService attribute value.
|
void |
setPaymentRequestService(PaymentRequestService paymentRequestService)
Sets the paymentRequestService attribute value.
|
void |
setPurapAccountingService(PurapAccountingServiceImpl purapAccountingService) |
void |
setPurapRunDateService(PurapRunDateService purapRunDateService)
Sets the purapRunDateService attribute value.
|
protected void |
updateCreditMemo(VendorCreditMemoDocument creditMemoDocument,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate)
Mark a credit memo as extracted
|
protected void |
updatePaymentRequest(PaymentRequestDocument paymentRequestDocument,
org.kuali.rice.kim.api.identity.Person puser,
Date processRunDate)
Mark a payment request as extracted
|
protected boolean |
validatePaymentGroup(PaymentGroup paymentGroup)
Checks payment group note lines does not exceed the maximum allowed
|
public PdpExtractServiceImpl()
public void extractImmediatePaymentsOnly()
PdpExtractService
extractImmediatePaymentsOnly
in interface PdpExtractService
PdpExtractService.extractImmediatePaymentsOnly()
public void extractPayments(Date runDate)
PdpExtractService
extractPayments
in interface PdpExtractService
runDate
- the date to assume when the process (e.g. a batch Step or Job) was started to extract paymentsPdpExtractService.extractPayments(Date)
protected void extractPayments(boolean immediateOnly, Date processRunDate)
immediateOnly
- whether to pick up immediate payments onlyprocessRunDate
- time/date to use to put on the Batch
that's created; and when immediateOnly is false, is also
used as the maximum allowed PREQ pay date when searching PREQ documents eligible to have payments extractedprotected void extractPaymentsForCampus(String campusCode, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate, boolean immediateOnly)
campusCode
- puser
- processRunDate
- protected PdpExtractServiceImpl.Totals extractRegularPaymentsForChart(String campusCode, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate, Batch batch)
campusCode
- puser
- processRunDate
- batch
- protected void processPaymentBundle(List<PaymentRequestDocument> paymentRequests, List<VendorCreditMemoDocument> creditMemos, PdpExtractServiceImpl.Totals totals, List<String> preqsWithOutstandingCreditMemos, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate, Batch batch)
paymentRequests
- creditMemos
- totals
- preqsWithOutstandingCreditMemos
- puser
- processRunDate
- batch
- protected PaymentGroup processSinglePaymentRequestDocument(PaymentRequestDocument paymentRequestDocument, Batch batch, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate)
paymentRequestDocument
- batch
- puser
- processRunDate
- protected PdpExtractServiceImpl.Totals extractSpecialPaymentsForChart(String campusCode, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate, Batch batch, boolean immediatesOnly)
campusCode
- puser
- processRunDate
- batch
- protected void updateCreditMemo(VendorCreditMemoDocument creditMemoDocument, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate)
creditMemoDocument
- puser
- processRunDate
- protected void updatePaymentRequest(PaymentRequestDocument paymentRequestDocument, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate)
prd
- puser
- processRunDate
- protected PaymentGroup buildPaymentGroup(List<PaymentRequestDocument> paymentRequests, List<VendorCreditMemoDocument> creditMemos, Batch batch)
paymentRequests
- creditMemos
- batch
- protected boolean validatePaymentGroup(PaymentGroup paymentGroup)
paymentGroup
- group to validateprotected int getMaxNoteLines()
protected PaymentDetail populatePaymentDetail(VendorCreditMemoDocument creditMemoDocument, Batch batch)
creditMemoDocument
- Credit Memo to use for payment detailbatch
- current PDP batch objectprotected PaymentDetail populatePaymentDetail(PaymentRequestDocument paymentRequestDocument, Batch batch)
paymentRequestDocument
- Payment Request to use for Payment Detailbatch
- current PDP batch objectprotected void addAccounts(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail, String documentType)
accountsPayableDocument
- paymentDetail
- documentType
- protected void addNotes(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail)
accountsPayableDocument
- paymentDetail
- protected PaymentGroup populatePaymentGroup(PaymentRequestDocument paymentRequestDocument, Batch batch)
paymentRequestDocument
- batch
- protected PaymentGroup populatePaymentGroup(VendorCreditMemoDocument creditMemoDocument, Batch batch)
creditMemoDocument
- batch
- protected Batch createBatch(String campusCode, org.kuali.rice.kim.api.identity.Person puser, Date processRunDate)
campusCode
- puser
- processRunDate
- protected List<String> getChartCodes(boolean immediatesOnly, Date processRunDate)
public void setPaymentRequestService(PaymentRequestService paymentRequestService)
paymentRequestService
- The paymentRequestService to set.public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public void setPaymentFileService(PaymentFileService paymentFileService)
paymentFileService
- The paymentFileService to set.public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.public void setCustomerProfileService(CustomerProfileService customerProfileService)
customerProfileService
- The customerProfileService to set.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setPaymentGroupService(PaymentGroupService paymentGroupService)
paymentGroupService
- The paymentGroupService to set.public void setPaymentDetailService(PaymentDetailService paymentDetailService)
paymentDetailService
- The paymentDetailService to set.public void setCreditMemoService(CreditMemoService creditMemoService)
creditMemoService
- The creditMemoService to set.public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService
- The documentService to set.public void setPurapRunDateService(PurapRunDateService purapRunDateService)
purapRunDateService
- The purapRunDateService to set.public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService)
paymentFileEmailService
- The paymentFileEmailService to set.public void setBankService(BankService bankService)
bankService
- The bankService to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- The dataDictionaryService to set.public void setPurapAccountingService(PurapAccountingServiceImpl purapAccountingService)
protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
public void setLockedDocuments(List<String> lockedDocuments)
protected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public String getVendorAliasName(Integer vendorHeaderGeneratedIdentifier)
public String getVendorAliasTypeName(Integer vendorAliasTypeId)
public OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.