Class FundsTransferActionHandler

  • All Implemented Interfaces:
    ActionHandler

    public class FundsTransferActionHandler
    extends BaseProcessActionHandler
    This class implements the ability to transfer funds among financial accounts in a simple and quick way. The idea is to have a button in the Financial Account window to transfer money.
    Author:
    Daniel Martins
    • Constructor Detail

      • FundsTransferActionHandler

        public FundsTransferActionHandler()
    • Method Detail

      • createTransfer

        public static void createTransfer​(Date date,
                                          FIN_FinancialAccount accountFrom,
                                          FIN_FinancialAccount accountTo,
                                          GLItem glitem,
                                          BigDecimal amount,
                                          BigDecimal manualConversionRate,
                                          BigDecimal bankFeeFrom,
                                          BigDecimal bankFeeTo)
        Create all the transactions for a funds transfer between two accounts
        Parameters:
        date - used for the transactions, current date is used if this is null.
        accountFrom - source account.
        accountTo - target account.
        glitem - gl item used in transactions.
        amount - the transfer amount.
        manualConversionRate - conversion rate to override the system one.
        bankFeeFrom - fee on the source bank.
        bankFeeTo - fee on the target bank.
      • createTransfer

        public static void createTransfer​(Date date,
                                          FIN_FinancialAccount accountFrom,
                                          FIN_FinancialAccount accountTo,
                                          GLItem glitem,
                                          BigDecimal amount,
                                          BigDecimal manualConversionRate,
                                          BigDecimal bankFeeFrom,
                                          BigDecimal bankFeeTo,
                                          String description)
        Create all the transactions for a funds transfer between two accounts
        Parameters:
        date - used for the transactions, current date is used if this is null.
        accountFrom - source account.
        accountTo - target account.
        glitem - gl item used in transactions.
        amount - the transfer amount.
        manualConversionRate - conversion rate to override the system one.
        bankFeeFrom - fee on the source bank.
        bankFeeTo - fee on the target bank.
        description - description set by the user in the Funds Transfer Process.