Class CloneOrderActionHandler
- java.lang.Object
-
- org.openbravo.client.kernel.BaseActionHandler
-
- org.openbravo.client.application.businesslogic.CloneOrderActionHandler
-
- All Implemented Interfaces:
ActionHandler
public class CloneOrderActionHandler extends BaseActionHandler
When user on the Sales Order window and have a Sales Order displayed / selected, you then click a button on the toolbar (where the 'new' order button is, among other buttons) called 'Clone Order'. The process would then create a new order, and copy the information from the old order to the new one.- Author:
- Mallikarjun M
-
-
Constructor Summary
Constructors Constructor Description CloneOrderActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.codehaus.jettison.json.JSONObject
execute(Map<String,Object> parameters, String data)
Needs to be implemented by a subclass.static BigDecimal
getLineNetAmt(String strOrderId)
-
Methods inherited from class org.openbravo.client.kernel.BaseActionHandler
execute, extractParametersFromRequest, extractRequestContent, fixRequestMap, writeResponse
-
-
-
-
Method Detail
-
execute
protected org.codehaus.jettison.json.JSONObject execute(Map<String,Object> parameters, String data)
Description copied from class:BaseActionHandler
Needs to be implemented by a subclass.- Specified by:
execute
in classBaseActionHandler
- Parameters:
parameters
- the parameters obtained from the request. Note that the request object and the session object are also present in this map, resp. as the constantsKernelConstants.HTTP_REQUEST
andKernelConstants.HTTP_SESSION
.data
- the request content (if any)- Returns:
- the return should be a JSONObject, this is passed back to the caller on the client.
-
getLineNetAmt
public static BigDecimal getLineNetAmt(String strOrderId)
-
-