Class AccountingProcessorHelper
java.lang.Object
org.apache.fineract.accounting.journalentry.service.AccountingProcessorHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForBranchClosures(org.apache.fineract.accounting.closure.domain.GLClosure latestGLClosure, LocalDate transactionDate) voidcreateAccrualBasedBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long creditAccountId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateAccrualBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateAccrualBasedDebitJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateAccrualBasedJournalEntriesAndReversalsForSavingsCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, Boolean isReversal, List<ChargePaymentDTO> chargePaymentDTOs) voidcreateAccrualBasedJournalEntriesAndReversalsForSavingsTax(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal, List<TaxPaymentDTO> taxDetails) voidcreateCashBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateCashBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long creditAccountId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateCashBasedDebitJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateCashBasedJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting.voidcreateCashBasedJournalEntriesAndReversalsForSavingsCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, Boolean isReversal, List<ChargePaymentDTO> chargePaymentDTOs) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting.voidcreateCashBasedJournalEntriesAndReversalsForSavingsTax(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal, List<TaxPaymentDTO> taxDetails) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting.voidcreateCashBasedJournalEntriesForSharesCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForShares accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForShares accountTypeToBeCredited, Long shareProductId, Long paymentTypeId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) voidcreateCashBasedJournalEntryForSharesCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForShares accountTypeToBeCredited, Long shareProductId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) voidcreateCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, org.apache.fineract.accounting.glaccount.domain.GLAccount account) voidcreateCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForLoan accountMappingType, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForLoan accountMappingType, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateCreditJournalEntryForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) voidcreateCreditJournalEntryForShares(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountTypeToCreditId, Long shareProductId, Long paymentTypeId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal amount) createCreditJournalEntryOrReversalForClientPayments(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long clientId, Long transactionId, LocalDate transactionDate, Boolean isReversal, List<ClientChargePaymentDTO> clientChargePaymentDTOs) voidcreateDebitJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateDebitJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, org.apache.fineract.accounting.glaccount.domain.GLAccount account) voidcreateDebitJournalEntryForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long chargeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateDebitJournalEntryForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) voidcreateDebitJournalEntryForShares(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountTypeToDebitId, Long shareProductId, Long paymentTypeId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateDebitJournalEntryOrReversalForClientChargePayments(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long clientId, Long transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) voidcreateJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting.voidcreateJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, org.apache.fineract.accounting.glaccount.domain.GLAccount accountToBeCredited, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateJournalEntriesForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) Convenience method that creates a pair of related Debits and Credits for Accrual Based accounting.voidcreateJournalEntriesForShares(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountTypeToDebitId, int accountTypeToCreditId, Long shareProductId, Long paymentTypeId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal amount) voidcreateProvisioningCreditJournalEntry(LocalDate transactionDate, Long provisioningEntryId, org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.glaccount.domain.GLAccount account, BigDecimal amount) voidcreateProvisioningDebitJournalEntry(LocalDate transactionDate, Long provisioningEntryId, org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.glaccount.domain.GLAccount account, BigDecimal amount) voidcreateSplitJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, List<org.apache.fineract.accounting.journalentry.service.JournalAmountHolder> splitAccountsHolder, org.apache.fineract.accounting.journalentry.service.JournalAmountHolder totalAccountHolder, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate) org.apache.fineract.accounting.producttoaccountmapping.domain.ProductToGLAccountMappinggetChargeOffMappingByCodeValue(Long loanProductId, org.apache.fineract.portfolio.PortfolioProductType productType, Long chargeOffReasonId) org.apache.fineract.accounting.producttoaccountmapping.domain.ProductToGLAccountMappinggetClassificationMappingByCodeValue(Long loanProductId, org.apache.fineract.portfolio.PortfolioProductType productType, Long classificationId, String classificationType) org.apache.fineract.accounting.closure.domain.GLClosuregetLatestClosureByBranch(long officeId) org.apache.fineract.accounting.glaccount.domain.GLAccountgetLinkedGLAccountForLoanProduct(Long loanProductId, int accountMappingTypeId, Long paymentTypeId) org.apache.fineract.organisation.office.domain.OfficegetOfficeById(long officeId) getValueForFeeOrPenaltyIncomeAccount(String chargeRefundChargeType) org.apache.fineract.accounting.journalentry.domain.JournalEntrypersistJournalEntry(org.apache.fineract.accounting.journalentry.domain.JournalEntry journalEntry) populateClientTransactionDtoFromMap(Map<String, Object> accountingBridgeData) populateLoanDtoFromDTO(org.apache.fineract.portfolio.loanaccount.data.AccountingBridgeDataDTO accountingBridgeData) populateSavingsDtoFromMap(Map<String, Object> accountingBridgeData, boolean cashBasedAccountingEnabled, boolean accrualBasedAccountingEnabled) populateSharesDtoFromMap(Map<String, Object> accountingBridgeData, boolean cashBasedAccountingEnabled, boolean accrualBasedAccountingEnabled) voidrevertCashBasedJournalEntryForSharesCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForShares accountTypeToBeCredited, Long shareProductId, Long shareAccountId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs)
-
Field Details
-
LOAN_TRANSACTION_IDENTIFIER
- See Also:
-
SAVINGS_TRANSACTION_IDENTIFIER
- See Also:
-
CLIENT_TRANSACTION_IDENTIFIER
- See Also:
-
PROVISIONING_TRANSACTION_IDENTIFIER
- See Also:
-
SHARE_TRANSACTION_IDENTIFIER
- See Also:
-
-
Constructor Details
-
AccountingProcessorHelper
public AccountingProcessorHelper()
-
-
Method Details
-
populateLoanDtoFromDTO
public LoanDTO populateLoanDtoFromDTO(org.apache.fineract.portfolio.loanaccount.data.AccountingBridgeDataDTO accountingBridgeData) -
getChargeOffMappingByCodeValue
-
getClassificationMappingByCodeValue
-
populateSavingsDtoFromMap
public SavingsDTO populateSavingsDtoFromMap(Map<String, Object> accountingBridgeData, boolean cashBasedAccountingEnabled, boolean accrualBasedAccountingEnabled) -
populateClientTransactionDtoFromMap
public ClientTransactionDTO populateClientTransactionDtoFromMap(Map<String, Object> accountingBridgeData) -
createJournalEntriesForLoanCharges
public void createJournalEntriesForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) Convenience method that creates a pair of related Debits and Credits for Accrual Based accounting. The target accounts for debits and credits are switched in case of a reversal- Parameters:
office- officecurrencyCode- currencyCodeaccountTypeToBeDebited- Enum of the placeholder GLAccount to be debitedaccountTypeToBeCredited- Enum of the placeholder of the GLAccount to be creditedloanProductId- loanProductIdloanId- loanIdtransactionId- transactionIdtransactionDate- transactionDatetotalAmount- totalAmountchargePaymentDTOs- chargePaymentDTOs
-
createCashBasedJournalEntriesAndReversalsForSavings
public void createCashBasedJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting. The target accounts for debits and credits are switched in case of a reversal- Parameters:
office-accountTypeToBeDebited- Enum of the placeholder GLAccount to be debitedaccountTypeToBeCredited- Enum of the placeholder of the GLAccount to be creditedsavingsProductId-paymentTypeId-loanId-transactionId-transactionDate-amount-isReversal-
-
createJournalEntriesForLoan
public void createJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Integer accountTypeToBeCredited, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting. The target accounts for debits and credits are switched in case of a reversal- Parameters:
office-accountTypeToBeDebited- Enum of the placeholder GLAccount to be debitedaccountTypeToBeCredited- Enum of the placeholder of the GLAccount to be creditedloanProductId-paymentTypeId-loanId-transactionId-transactionDate-amount-
-
createJournalEntriesForLoan
public void createJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, org.apache.fineract.accounting.glaccount.domain.GLAccount accountToBeCredited, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) -
createSplitJournalEntriesForLoan
public void createSplitJournalEntriesForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, List<org.apache.fineract.accounting.journalentry.service.JournalAmountHolder> splitAccountsHolder, org.apache.fineract.accounting.journalentry.service.JournalAmountHolder totalAccountHolder, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate) -
createCreditJournalEntryForLoan
public void createCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForLoan accountMappingType, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) -
createCreditJournalEntryForLoan
public void createCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForLoan accountMappingType, Long loanProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount) -
checkForBranchClosures
public void checkForBranchClosures(org.apache.fineract.accounting.closure.domain.GLClosure latestGLClosure, LocalDate transactionDate) - Parameters:
latestGLClosure-transactionDate-
-
getLatestClosureByBranch
public org.apache.fineract.accounting.closure.domain.GLClosure getLatestClosureByBranch(long officeId) -
createCashBasedJournalEntriesAndReversalsForSavingsTax
public void createCashBasedJournalEntriesAndReversalsForSavingsTax(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal, List<TaxPaymentDTO> taxDetails) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting. The target accounts for debits and credits are switched in case of a reversal- Parameters:
office-currencyCode-accountTypeToBeDebited- Enum of the placeholder GLAccount to be debitedaccountTypeToBeCredited- Enum of the placeholder of the GLAccount to be creditedsavingsProductId-paymentTypeId-savingsId-transactionId-transactionDate-amount-isReversal-taxDetails-
-
createAccrualBasedJournalEntriesAndReversalsForSavingsTax
public void createAccrualBasedJournalEntriesAndReversalsForSavingsTax(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal, List<TaxPaymentDTO> taxDetails) -
createCashBasedDebitJournalEntriesAndReversalsForSavings
public void createCashBasedDebitJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) -
createCashBasedCreditJournalEntriesAndReversalsForSavings
public void createCashBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) -
createCashBasedCreditJournalEntriesAndReversalsForSavings
-
createAccrualBasedDebitJournalEntriesAndReversalsForSavings
public void createAccrualBasedDebitJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeDebited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) -
createAccrualBasedCreditJournalEntriesAndReversalsForSavings
public void createAccrualBasedCreditJournalEntriesAndReversalsForSavings(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Integer accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long savingsId, String transactionId, LocalDate transactionDate, BigDecimal amount, Boolean isReversal) -
createAccrualBasedBasedCreditJournalEntriesAndReversalsForSavings
-
createDebitJournalEntryForLoan
-
createDebitJournalEntryForLoan
public void createDebitJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, org.apache.fineract.accounting.glaccount.domain.GLAccount account) -
createDebitJournalEntryForLoanCharges
-
createCreditJournalEntryForLoanCharges
public void createCreditJournalEntryForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) -
createDebitJournalEntryForLoanCharges
public void createDebitJournalEntryForLoanCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, int accountMappingTypeId, Long loanProductId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, List<ChargePaymentDTO> chargePaymentDTOs) -
createCashBasedJournalEntriesAndReversalsForSavingsCharges
public void createCashBasedJournalEntriesAndReversalsForSavingsCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.CashAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, Boolean isReversal, List<ChargePaymentDTO> chargePaymentDTOs) Convenience method that creates a pair of related Debits and Credits for Cash Based accounting. The target accounts for debits and credits are switched in case of a reversal- Parameters:
office- officecurrencyCode- currencyCodeaccountTypeToBeDebited- Enum of the placeholder GLAccount to be debitedaccountTypeToBeCredited- Enum of the placeholder of the GLAccount to be creditedsavingsProductId- savingsProductIdpaymentTypeId- paymentTypeIdloanId- loanIdtransactionId- transactionIdtransactionDate- transactionDatetotalAmount- totalAmountisReversal- isReversalchargePaymentDTOs- chargePaymentDTOs
-
createAccrualBasedJournalEntriesAndReversalsForSavingsCharges
public void createAccrualBasedJournalEntriesAndReversalsForSavingsCharges(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeDebited, org.apache.fineract.accounting.common.AccountingConstants.AccrualAccountsForSavings accountTypeToBeCredited, Long savingsProductId, Long paymentTypeId, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal totalAmount, Boolean isReversal, List<ChargePaymentDTO> chargePaymentDTOs) -
getOfficeById
public org.apache.fineract.organisation.office.domain.Office getOfficeById(long officeId) -
createCreditJournalEntryForLoan
-
createCreditJournalEntryForLoan
public void createCreditJournalEntryForLoan(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long loanId, String transactionId, LocalDate transactionDate, BigDecimal amount, org.apache.fineract.accounting.glaccount.domain.GLAccount account) -
createProvisioningDebitJournalEntry
public void createProvisioningDebitJournalEntry(LocalDate transactionDate, Long provisioningEntryId, org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.glaccount.domain.GLAccount account, BigDecimal amount) -
createProvisioningCreditJournalEntry
public void createProvisioningCreditJournalEntry(LocalDate transactionDate, Long provisioningEntryId, org.apache.fineract.organisation.office.domain.Office office, String currencyCode, org.apache.fineract.accounting.glaccount.domain.GLAccount account, BigDecimal amount) -
getLinkedGLAccountForLoanProduct
-
createCreditJournalEntryOrReversalForClientPayments
public BigDecimal createCreditJournalEntryOrReversalForClientPayments(org.apache.fineract.organisation.office.domain.Office office, String currencyCode, Long clientId, Long transactionId, LocalDate transactionDate, Boolean isReversal, List<ClientChargePaymentDTO> clientChargePaymentDTOs) -
createDebitJournalEntryOrReversalForClientChargePayments
-
getValueForFeeOrPenaltyIncomeAccount
-
persistJournalEntry
public org.apache.fineract.accounting.journalentry.domain.JournalEntry persistJournalEntry(org.apache.fineract.accounting.journalentry.domain.JournalEntry journalEntry)
-