|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.module.purap.service.impl.PurapGeneralLedgerServiceImpl
@Transactional public class PurapGeneralLedgerServiceImpl
| Field Summary |
|---|
| Fields inherited from interface org.kuali.kfs.module.purap.service.PurapGeneralLedgerService |
|---|
CANCEL_CREDIT_MEMO, CANCEL_PAYMENT_REQUEST, CREATE_CREDIT_MEMO, CREATE_PAYMENT_REQUEST, MODIFY_PAYMENT_REQUEST |
| Constructor Summary | |
|---|---|
PurapGeneralLedgerServiceImpl()
|
|
| Method Summary | |
|---|---|
protected org.kuali.rice.kns.util.KualiDecimal |
calculateQuantityChange(boolean cancel,
PurchaseOrderItem poItem,
org.kuali.rice.kns.util.KualiDecimal cmQuantity)
Calculate quantity change for creating Credit Memo entries |
void |
customizeGeneralLedgerPendingEntry(PurchasingAccountsPayableDocument purapDocument,
AccountingLine accountingLine,
GeneralLedgerPendingEntry explicitEntry,
Integer referenceDocumentNumber,
String debitCreditCode,
String docType,
boolean isEncumbrance)
Customize the given general ledger entry based on the document type. |
protected String |
entryDescription(String description)
Format description for general ledger entry. |
void |
generateEntriesApproveAmendPurchaseOrder(PurchaseOrderDocument po)
Generates general ledger pending entries for the amendment of a Purchase Order |
void |
generateEntriesCancelAccountsPayableDocument(AccountsPayableDocument apDocument)
Generates general ledger pending entries for the cancellation of an Accounts Payable document. |
protected void |
generateEntriesCancelCreditMemo(VendorCreditMemoDocument cm)
Called from generateEntriesCancelAccountsPayableDocument() for Payment Request Document |
protected void |
generateEntriesCancelPaymentRequest(PaymentRequestDocument preq)
Called from generateEntriesCancelAccountsPayableDocument() for Payment Request Document |
void |
generateEntriesClosePurchaseOrder(PurchaseOrderDocument po)
Generates general ledger pending entries for when a Purchase Order is closed which will disencumber all the remaining encumbrances |
void |
generateEntriesCreateCreditMemo(VendorCreditMemoDocument cm)
Generates general ledger pending entries for the creation of a Credit Memo |
void |
generateEntriesCreatePaymentRequest(PaymentRequestDocument preq)
Generates general ledger pending entries for the creation of a Payment Request |
protected boolean |
generateEntriesCreditMemo(VendorCreditMemoDocument cm,
boolean isCancel)
Creates the general ledger entries for Credit Memo actions. |
void |
generateEntriesModifyPaymentRequest(PaymentRequestDocument preq)
Generates general ledger pending entries for the modification of a Payment Request. |
protected boolean |
generateEntriesPaymentRequest(PaymentRequestDocument preq,
List encumbrances,
List summaryAccounts,
String processType)
Creates the general ledger entries for Payment Request actions. |
void |
generateEntriesReopenPurchaseOrder(PurchaseOrderDocument po)
Generates general ledger pending entries for when a Purchase Order is reopened which will calculate the funds to be re-encumbered |
void |
generateEntriesVoidPurchaseOrder(PurchaseOrderDocument po)
Generates general ledger pending entries for when a Purchase Order is voided |
protected List<SourceAccountingLine> |
getCreditMemoEncumbrance(VendorCreditMemoDocument cm,
PurchaseOrderDocument po,
boolean cancel)
Re-encumber the Encumbrance on a PO based on values in a PREQ. |
protected int |
getNextAvailableSequence(String documentNumber)
Retrieves the next available sequence number from the general ledger pending entry table for this document |
protected PurchaseOrderItem |
getPoItem(PurchaseOrderDocument po,
Integer nbr,
ItemType itemType)
Find item in PO based on given parameters. |
protected List<SourceAccountingLine> |
reencumberEncumbrance(PaymentRequestDocument preq)
Re-encumber the Encumbrance on a PO based on values in a PREQ. |
protected List<SourceAccountingLine> |
relieveEncumbrance(PaymentRequestDocument preq)
Relieve the Encumbrance on a PO based on values in a PREQ. |
protected void |
saveAccountsPayableSummaryAccounts(List<SummaryAccount> summaryAccounts,
Integer purapDocumentIdentifier,
String docType)
Save the given accounts for the given document. |
protected void |
saveGLEntries(List<GeneralLedgerPendingEntry> glEntries)
Save the given general ledger entries |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
void |
setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService)
|
void |
setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
|
void |
setObjectCodeService(ObjectCodeService objectCodeService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setPaymentRequestService(PaymentRequestService paymentRequestService)
|
void |
setPurapAccountingService(PurapAccountingService purapAccountingService)
|
void |
setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
|
void |
setSubObjectCodeService(SubObjectCodeService subObjectCodeService)
|
void |
setUniversityDateService(UniversityDateService universityDateService)
|
protected boolean |
shouldGenerateGLPEForPurchaseOrder(PurchaseOrderDocument po)
We should not generate general ledger pending entries for Purchase Order Close Document and Purchase Order Reopen Document with $0 amount. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PurapGeneralLedgerServiceImpl()
| Method Detail |
|---|
public void customizeGeneralLedgerPendingEntry(PurchasingAccountsPayableDocument purapDocument,
AccountingLine accountingLine,
GeneralLedgerPendingEntry explicitEntry,
Integer referenceDocumentNumber,
String debitCreditCode,
String docType,
boolean isEncumbrance)
PurapGeneralLedgerService
customizeGeneralLedgerPendingEntry in interface PurapGeneralLedgerServicepurapDocument - Document creating entriesaccountingLine - AccountingLine from document used to create the pending entryexplicitEntry - GeneralLedgerPendingEntry that has been created with account inforeferenceDocumentNumber - Number of the referenced documentdebitCreditCode - String field indicating if the entry is a debit or creditdocType - Document type creating the pending entriesisEncumbrance - Boolean to indicate if the entry is an encumbrancePurapGeneralLedgerService.customizeGeneralLedgerPendingEntry(org.kuali.kfs.module.purap.document.PurchasingAccountsPayableDocument,
org.kuali.kfs.sys.businessobject.AccountingLine, org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntry,
java.lang.Integer, java.lang.String, java.lang.String, boolean)public void generateEntriesCancelAccountsPayableDocument(AccountsPayableDocument apDocument)
PurapGeneralLedgerService
generateEntriesCancelAccountsPayableDocument in interface PurapGeneralLedgerServiceapDocument - AccountsPayableDocument which holds the accounts to create the entries for the cancellationPurapGeneralLedgerService.generateEntriesCancelAccountsPayableDocument(org.kuali.kfs.module.purap.document.AccountsPayableDocument)public void generateEntriesCreatePaymentRequest(PaymentRequestDocument preq)
PurapGeneralLedgerService
generateEntriesCreatePaymentRequest in interface PurapGeneralLedgerServicepreq - PaymentRequestDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesCreatePaymentRequest(org.kuali.kfs.module.purap.document.PaymentRequestDocument)protected void generateEntriesCancelPaymentRequest(PaymentRequestDocument preq)
preq - Payment Request document to cancelPurapGeneralLedgerService.generateEntriesCancelAccountsPayableDocument(org.kuali.kfs.module.purap.document.AccountsPayableDocument)public void generateEntriesModifyPaymentRequest(PaymentRequestDocument preq)
PurapGeneralLedgerService
generateEntriesModifyPaymentRequest in interface PurapGeneralLedgerServicepreq - PaymentRequestDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesModifyPaymentRequest(org.kuali.kfs.module.purap.document.PaymentRequestDocument)public void generateEntriesCreateCreditMemo(VendorCreditMemoDocument cm)
PurapGeneralLedgerService
generateEntriesCreateCreditMemo in interface PurapGeneralLedgerServicecm - CreditMemoDocument which holds the accounts to create the entriesorg.kuali.kfs.module.purap.service.PurapGeneralLedgerService#generateEntriesCreateCreditMemo(org.kuali.kfs.module.purap.document.CreditMemoDocument)protected void generateEntriesCancelCreditMemo(VendorCreditMemoDocument cm)
preq - Payment Request document to cancelPurapGeneralLedgerService.generateEntriesCancelAccountsPayableDocument(org.kuali.kfs.module.purap.document.AccountsPayableDocument)protected int getNextAvailableSequence(String documentNumber)
documentNumber - Document number to find next sequence number
protected boolean generateEntriesPaymentRequest(PaymentRequestDocument preq,
List encumbrances,
List summaryAccounts,
String processType)
preq - Payment Request document to create entriesencumbrances - List of encumbrance accounts if appliesaccountingLines - List of preq accounts to create entriesprocessType - Type of process (create, modify, cancel)
protected boolean generateEntriesCreditMemo(VendorCreditMemoDocument cm,
boolean isCancel)
cm - Credit Memo document to create entriesisCancel - Indicates if request is a cancel or create
public void generateEntriesApproveAmendPurchaseOrder(PurchaseOrderDocument po)
PurapGeneralLedgerService
generateEntriesApproveAmendPurchaseOrder in interface PurapGeneralLedgerServicepo - PurchaseOrderDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesApproveAmendPurchaseOrder(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)public void generateEntriesClosePurchaseOrder(PurchaseOrderDocument po)
PurapGeneralLedgerService
generateEntriesClosePurchaseOrder in interface PurapGeneralLedgerServicepo - PurchaseOrderDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesClosePurchaseOrder(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)protected boolean shouldGenerateGLPEForPurchaseOrder(PurchaseOrderDocument po)
po -
public void generateEntriesReopenPurchaseOrder(PurchaseOrderDocument po)
PurapGeneralLedgerService
generateEntriesReopenPurchaseOrder in interface PurapGeneralLedgerServicepo - PurchaseOrderDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesReopenPurchaseOrder(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)public void generateEntriesVoidPurchaseOrder(PurchaseOrderDocument po)
PurapGeneralLedgerService
generateEntriesVoidPurchaseOrder in interface PurapGeneralLedgerServicepo - PurchaseOrderDocument which holds the accounts to create the entriesPurapGeneralLedgerService.generateEntriesVoidPurchaseOrder(org.kuali.kfs.module.purap.document.PurchaseOrderDocument)protected List<SourceAccountingLine> relieveEncumbrance(PaymentRequestDocument preq)
preq - PREQ for invoice
protected List<SourceAccountingLine> reencumberEncumbrance(PaymentRequestDocument preq)
preq - PREQ for invoice
protected List<SourceAccountingLine> getCreditMemoEncumbrance(VendorCreditMemoDocument cm,
PurchaseOrderDocument po,
boolean cancel)
cm - Credit Memo documentpo - Purchase Order document modify encumbrances
protected void saveGLEntries(List<GeneralLedgerPendingEntry> glEntries)
glEntries - List of GeneralLedgerPendingEntries to be saved
protected void saveAccountsPayableSummaryAccounts(List<SummaryAccount> summaryAccounts,
Integer purapDocumentIdentifier,
String docType)
sourceLines - Accounts to be savedpurapDocumentIdentifier - Purap document id for accounts
protected PurchaseOrderItem getPoItem(PurchaseOrderDocument po,
Integer nbr,
ItemType itemType)
po - Purchase Order containing list of itemsnbr - Line # of desired item (could be null)itemType - Item type of desired item
protected String entryDescription(String description)
description - String to be formatted
protected org.kuali.rice.kns.util.KualiDecimal calculateQuantityChange(boolean cancel,
PurchaseOrderItem poItem,
org.kuali.rice.kns.util.KualiDecimal cmQuantity)
cancel - Boolean indicating whether entries are for creation or cancellation of credit memopoItem - Purchase Order ItemcmQuantity - Quantity on credit memo item
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public void setGeneralLedgerPendingEntryService(GeneralLedgerPendingEntryService generalLedgerPendingEntryService)
public void setKualiRuleService(org.kuali.rice.kns.service.KualiRuleService kualiRuleService)
public void setPurapAccountingService(PurapAccountingService purapAccountingService)
public void setUniversityDateService(UniversityDateService universityDateService)
public void setPurchaseOrderService(PurchaseOrderService purchaseOrderService)
public void setObjectCodeService(ObjectCodeService objectCodeService)
public void setSubObjectCodeService(SubObjectCodeService subObjectCodeService)
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public void setPaymentRequestService(PaymentRequestService paymentRequestService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||