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;
}
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;
}
Aggregations