Class FundsTransferActionHandler
- java.lang.Object
-
- org.openbravo.client.kernel.BaseActionHandler
-
- org.openbravo.client.application.process.BaseProcessActionHandler
-
- org.openbravo.advpaymentmngt.actionHandler.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
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
PARAM_FILE_CONTENT, PARAM_FILE_NAME, PARAM_FILE_SIZE, PARAM_MULTIPART_VALUES
-
-
Constructor Summary
Constructors Constructor Description FundsTransferActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 accountsstatic 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 accountsprotected org.codehaus.jettison.json.JSONObject
doExecute(Map<String,Object> parameters, String content)
-
Methods inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
execute, extractParametersFromRequest, extractRequestContent, fixRequestMap, getResponseBuilder, hasAccess
-
Methods inherited from class org.openbravo.client.kernel.BaseActionHandler
execute, fixRequestMap, writeResponse
-
-
-
-
Method Detail
-
doExecute
protected org.codehaus.jettison.json.JSONObject doExecute(Map<String,Object> parameters, String content)
- Specified by:
doExecute
in classBaseProcessActionHandler
-
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.
-
-