public class ProcurementCardCreateDocumentServiceImpl extends Object implements ProcurementCardCreateDocumentService
ProcurementCardCreateDocumentService
Modifier and Type | Field and Description |
---|---|
protected AccountingLineRuleHelperService |
accountingLineRuleUtil |
protected org.kuali.rice.krad.service.BusinessObjectService |
businessObjectService |
protected CapitalAssetBuilderModuleService |
capitalAssetBuilderModuleService |
protected org.kuali.rice.kns.service.DataDictionaryService |
dataDictionaryService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected static String |
WORKFLOW_SEARCH_RESULT_KEY |
protected org.kuali.rice.krad.workflow.service.WorkflowDocumentService |
workflowDocumentService |
Constructor and Description |
---|
ProcurementCardCreateDocumentServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
autoApproveProcurementCardDocuments()
This method determines if procurement card documents can be auto approved.
|
protected void |
cleanTransactionsTable()
Calls businessObjectService to remove all the procurement card transaction rows from the transaction load table.
|
protected String |
createAndValidateAccountingLines(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
From the transaction accounting attributes, creates source and target accounting lines.
|
protected void |
createCardHolderRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction)
Creates card holder record and sets that record to the document given.
|
protected ProcurementCardDocument |
createProcurementCardDocument(List transactions)
Creates a ProcurementCardDocument from the List of transactions given.
|
boolean |
createProcurementCardDocuments()
This method retrieves a collection of credit card transactions and traverses through this list, creating
ProcurementCardDocuments for each card.
|
protected ProcurementCardSourceAccountingLine |
createSourceAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
Creates the from record for the transaction.
|
protected ProcurementCardTargetAccountingLine |
createTargetAccountingLine(ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail docTransactionDetail)
Creates the to record for the transaction.
|
protected String |
createTransactionDetailRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
Integer transactionLineNumber)
Creates a transaction detail record and adds that record to the document provided.
|
protected void |
createTransactionVendorRecord(ProcurementCardDocument pcardDocument,
ProcurementCardTransaction transaction,
ProcurementCardTransactionDetail transactionDetail)
Creates a transaction vendor detail record and adds it to the transaction detail.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute.
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute.
|
protected String |
getDefaultAccountNumber()
Retrieves the default account number from the parameter table.
|
protected String |
getDefaultChartCode()
Retrieves the default chard code from the parameter table.
|
protected String |
getDefaultObjectCode()
Retrieves the default object code from the parameter table.
|
org.kuali.rice.krad.service.DocumentService |
getDocumentService()
Gets the documentService attribute.
|
protected String |
getErrorAccountNumber()
Retrieves the error account number from the parameter table.
|
protected String |
getErrorChartCode()
Retrieves the error chart code from the parameter table.
|
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
org.kuali.rice.krad.workflow.service.WorkflowDocumentService |
getWorkflowDocumentService() |
protected void |
loadTransactions(List transactions)
Loads all the parsed XML transactions into the temp transaction table.
|
protected ProcurementCardDefault |
retrieveProcurementCardDefault(String creditCardNumber)
Gets the default Chart Code, Account from the custom Procurement Cardholder table.
|
protected List<String> |
retrieveProcurementCardDocumentsToRoute(String statusCode)
Returns a list of all initiated but not yet routed procurement card documents, using the KualiWorkflowInfo service.
|
protected List |
retrieveTransactions()
This method retrieves a list of transactions from a temporary table, and groups them into document lists, based on
single transaction indicator or a grouping by card.
|
boolean |
routeProcurementCardDocuments()
This method retrieves all the procurement card documents with a status of 'I' and routes them to the next step in the
routing path.
|
void |
setAccountingLineRuleUtil(AccountingLineRuleHelperService accountingLineRuleUtil)
Sets the accountingLineRuleUtil attribute value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute.
|
void |
setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService)
Sets the capitalAssetBuilderModuleService attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute.
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute.
|
void |
setWorkflowDocumentService(org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService) |
protected String |
validateTargetAccountingLine(ProcurementCardTargetAccountingLine targetLine)
Validates the chart of account attributes for existence and active indicator.
|
protected String |
validateTransaction(ProcurementCardTransaction transaction)
Validates the chart of account attributes for existence and active indicator.
|
protected static final String WORKFLOW_SEARCH_RESULT_KEY
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
protected org.kuali.rice.krad.service.BusinessObjectService businessObjectService
protected org.kuali.rice.krad.service.DocumentService documentService
protected org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService
protected org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected AccountingLineRuleHelperService accountingLineRuleUtil
protected CapitalAssetBuilderModuleService capitalAssetBuilderModuleService
public ProcurementCardCreateDocumentServiceImpl()
@Transactional public boolean createProcurementCardDocuments()
createProcurementCardDocuments
in interface ProcurementCardCreateDocumentService
ProcurementCardCreateDocumentService.createProcurementCardDocuments()
public boolean routeProcurementCardDocuments()
routeProcurementCardDocuments
in interface ProcurementCardCreateDocumentService
org.kuali.ole.fp.batch.service.ProcurementCardCreateDocumentService#routeProcurementCardDocuments(java.util.List)
protected List<String> retrieveProcurementCardDocumentsToRoute(String statusCode)
public boolean autoApproveProcurementCardDocuments()
autoApproveProcurementCardDocuments
in interface ProcurementCardCreateDocumentService
ProcurementCardCreateDocumentService.autoApproveProcurementCardDocuments()
protected List retrieveTransactions()
protected ProcurementCardDocument createProcurementCardDocument(List transactions)
transactions
- List of ProcurementCardTransaction objects to be used for creating the document.protected void createCardHolderRecord(ProcurementCardDocument pcardDocument, ProcurementCardTransaction transaction)
pcardDocument
- Procurement card document to place the record in.transaction
- The transaction to set the card holder record fields from.protected String createTransactionDetailRecord(ProcurementCardDocument pcardDocument, ProcurementCardTransaction transaction, Integer transactionLineNumber)
pcardDocument
- Document to place record in.transaction
- Transaction to set fields from.transactionLineNumber
- Line number of the new transaction detail record within the procurement card document.protected void createTransactionVendorRecord(ProcurementCardDocument pcardDocument, ProcurementCardTransaction transaction, ProcurementCardTransactionDetail transactionDetail)
pcardDocument
- The procurement card document to retrieve values from.transaction
- Transaction to set fields from.transactionDetail
- The transaction detail to set the vendor record on.protected String createAndValidateAccountingLines(ProcurementCardDocument pcardDocument, ProcurementCardTransaction transaction, ProcurementCardTransactionDetail docTransactionDetail)
pcardDocument
- The procurement card document to add the new accounting lines to.transaction
- The transaction to process into account lines.docTransactionDetail
- The transaction detail to create source and target accounting lines from.protected ProcurementCardTargetAccountingLine createTargetAccountingLine(ProcurementCardTransaction transaction, ProcurementCardTransactionDetail docTransactionDetail)
transaction
- The transaction to pull information from to create the accounting line.docTransactionDetail
- The transaction detail to pull information from to populate the accounting line.protected ProcurementCardSourceAccountingLine createSourceAccountingLine(ProcurementCardTransaction transaction, ProcurementCardTransactionDetail docTransactionDetail)
transaction
- The transaction to pull information from to create the accounting line.docTransactionDetail
- The transaction detail to pull information from to populate the accounting line.protected String validateTargetAccountingLine(ProcurementCardTargetAccountingLine targetLine)
targetLine
- The target accounting line to be validated.protected String validateTransaction(ProcurementCardTransaction transaction)
transaction
- The transaction to be validated.protected String getErrorChartCode()
protected String getErrorAccountNumber()
protected ProcurementCardDefault retrieveProcurementCardDefault(String creditCardNumber)
protected String getDefaultChartCode()
protected String getDefaultAccountNumber()
protected String getDefaultObjectCode()
protected void cleanTransactionsTable()
protected void loadTransactions(List transactions)
transactions
- List of ProcurementCardTransactions to load.public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public org.kuali.rice.krad.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService
- The documentService to set.public org.kuali.rice.krad.workflow.service.WorkflowDocumentService getWorkflowDocumentService()
public void setWorkflowDocumentService(org.kuali.rice.krad.workflow.service.WorkflowDocumentService workflowDocumentService)
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService
- dataDictionaryService to set.public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public void setAccountingLineRuleUtil(AccountingLineRuleHelperService accountingLineRuleUtil)
accountingLineRuleUtil
- The accountingLineRuleUtil to set.public void setCapitalAssetBuilderModuleService(CapitalAssetBuilderModuleService capitalAssetBuilderModuleService)
capitalAssetBuilderModuleService
- The capitalAssetBuilderModuleService to set.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.