Package org.mifosplatform.accounting.journalentry.domain

Examples of org.mifosplatform.accounting.journalentry.domain.JournalEntry


        final Long officeId = journalEntries.get(0).getOffice().getId();
        final String reversalTransactionId = generateTransactionId(officeId);
        final boolean manualEntry = true;

        for (final JournalEntry journalEntry : journalEntries) {
            JournalEntry reversalJournalEntry;
            final String reversalComment = "Reversal entry for Journal Entry with Entry Id  :" + journalEntry.getId()
                    + " and transaction Id " + command.getTransactionId();
            if (journalEntry.isDebitEntry()) {
                reversalJournalEntry = JournalEntry.createNew(journalEntry.getOffice(), journalEntry.getPaymentDetails(),
                        journalEntry.getGlAccount(), journalEntry.getCurrencyCode(), reversalTransactionId, manualEntry,
View Full Code Here


            }

            /** Validate current code is appropriate **/
            this.organisationCurrencyRepository.findOneWithNotFoundDetection(currencyCode);

            final JournalEntry glJournalEntry = JournalEntry.createNew(office, paymentDetail, glAccount, currencyCode, transactionId,
                    manualEntry, transactionDate, type, singleDebitOrCreditEntryCommand.getAmount(), comments, null, null, referenceNumber,
                    null, null);
            this.glJournalEntryRepository.saveAndFlush(glJournalEntry);
        }
    }
View Full Code Here

        if (StringUtils.isNumeric(transactionId)) {
            long id = Long.parseLong(transactionId);
            loanTransaction = this.loanTransactionRepository.findOne(id);
            modifiedTransactionId = LOAN_TRANSACTION_IDENTIFIER + transactionId;
        }
        final JournalEntry journalEntry = JournalEntry.createNew(office, paymentDetail, account, currencyCode, modifiedTransactionId,
                manualEntry, transactionDate, JournalEntryType.CREDIT, amount, null, PortfolioProductType.LOAN.getValue(), loanId, null,
                loanTransaction, savingsAccountTransaction);
        this.glJournalEntryRepository.saveAndFlush(journalEntry);
    }
View Full Code Here

        if (StringUtils.isNumeric(transactionId)) {
            long id = Long.parseLong(transactionId);
            savingsAccountTransaction = this.savingsAccountTransactionRepository.findOne(id);
            modifiedTransactionId = SAVINGS_TRANSACTION_IDENTIFIER + transactionId;
        }
        final JournalEntry journalEntry = JournalEntry.createNew(office, paymentDetail, account, currencyCode, modifiedTransactionId,
                manualEntry, transactionDate, JournalEntryType.CREDIT, amount, null, PortfolioProductType.SAVING.getValue(), savingsId,
                null, loanTransaction, savingsAccountTransaction);
        this.glJournalEntryRepository.saveAndFlush(journalEntry);
    }
View Full Code Here

        if (StringUtils.isNumeric(transactionId)) {
            long id = Long.parseLong(transactionId);
            loanTransaction = this.loanTransactionRepository.findOne(id);
            modifiedTransactionId = LOAN_TRANSACTION_IDENTIFIER + transactionId;
        }
        final JournalEntry journalEntry = JournalEntry.createNew(office, paymentDetail, account, currencyCode, modifiedTransactionId,
                manualEntry, transactionDate, JournalEntryType.DEBIT, amount, null, PortfolioProductType.LOAN.getValue(), loanId, null,
                loanTransaction, savingsAccountTransaction);
        this.glJournalEntryRepository.saveAndFlush(journalEntry);
    }
View Full Code Here

        if (StringUtils.isNumeric(transactionId)) {
            long id = Long.parseLong(transactionId);
            savingsAccountTransaction = this.savingsAccountTransactionRepository.findOne(id);
            modifiedTransactionId = SAVINGS_TRANSACTION_IDENTIFIER + transactionId;
        }
        final JournalEntry journalEntry = JournalEntry.createNew(office, paymentDetail, account, currencyCode, modifiedTransactionId,
                manualEntry, transactionDate, JournalEntryType.DEBIT, amount, null, PortfolioProductType.SAVING.getValue(), savingsId,
                null, loanTransaction, savingsAccountTransaction);
        this.glJournalEntryRepository.saveAndFlush(journalEntry);
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.accounting.journalentry.domain.JournalEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.