Search in sources :

Example 1 with ExpenseTransferAccountingLine

use of org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine in project cu-kfs by CU-CommunityApps.

the class CuSalaryExpenseTransferDocument method generateLaborLedgerPendingEntries.

@Override
public boolean generateLaborLedgerPendingEntries(AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper) {
    LOG.debug("started generateLaborLedgerPendingEntries()");
    boolean isSuccessful = true;
    ExpenseTransferAccountingLine expenseTransferAccountingLine = (ExpenseTransferAccountingLine) accountingLine;
    List<LaborLedgerPendingEntry> expensePendingEntries = CuLaborPendingEntryGenerator.generateExpensePendingEntries(this, expenseTransferAccountingLine, sequenceHelper);
    if (expensePendingEntries != null && !expensePendingEntries.isEmpty()) {
        isSuccessful &= this.getLaborLedgerPendingEntries().addAll(expensePendingEntries);
    }
    List<LaborLedgerPendingEntry> benefitPendingEntries = CuLaborPendingEntryGenerator.generateBenefitPendingEntries(this, expenseTransferAccountingLine, sequenceHelper);
    if (benefitPendingEntries != null && !benefitPendingEntries.isEmpty()) {
        isSuccessful &= this.getLaborLedgerPendingEntries().addAll(benefitPendingEntries);
    }
    return isSuccessful;
}
Also used : ExpenseTransferAccountingLine(org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine) LaborLedgerPendingEntry(org.kuali.kfs.module.ld.businessobject.LaborLedgerPendingEntry)

Example 2 with ExpenseTransferAccountingLine

use of org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine in project cu-kfs by CU-CommunityApps.

the class SalaryExpenseTransferDocument method generateLaborLedgerPendingEntries.

/**
 * @see org.kuali.kfs.module.ld.document.LaborExpenseTransferDocumentBase#generateLaborLedgerPendingEntries(org.kuali.kfs.sys.businessobject.AccountingLine,
 *      org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)
 */
@Override
public boolean generateLaborLedgerPendingEntries(AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper) {
    LOG.debug("started generateLaborLedgerPendingEntries()");
    boolean isSuccessful = true;
    ExpenseTransferAccountingLine expenseTransferAccountingLine = (ExpenseTransferAccountingLine) accountingLine;
    List<LaborLedgerPendingEntry> expensePendingEntries = LaborPendingEntryGenerator.generateExpensePendingEntries(this, expenseTransferAccountingLine, sequenceHelper);
    if (expensePendingEntries != null && !expensePendingEntries.isEmpty()) {
        isSuccessful &= this.getLaborLedgerPendingEntries().addAll(expensePendingEntries);
    }
    List<LaborLedgerPendingEntry> benefitPendingEntries = LaborPendingEntryGenerator.generateBenefitPendingEntries(this, expenseTransferAccountingLine, sequenceHelper);
    if (benefitPendingEntries != null && !benefitPendingEntries.isEmpty()) {
        isSuccessful &= this.getLaborLedgerPendingEntries().addAll(benefitPendingEntries);
    }
    return isSuccessful;
}
Also used : ExpenseTransferAccountingLine(org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine) LaborLedgerPendingEntry(org.kuali.kfs.module.ld.businessobject.LaborLedgerPendingEntry)

Aggregations

ExpenseTransferAccountingLine (org.kuali.kfs.module.ld.businessobject.ExpenseTransferAccountingLine)2 LaborLedgerPendingEntry (org.kuali.kfs.module.ld.businessobject.LaborLedgerPendingEntry)2