Package org.adempiere.process
Class SalesOrderRateInquiryProcess
java.lang.Object
org.compiere.process.SvrProcess
org.adempiere.process.SalesOrderRateInquiryProcess
- All Implemented Interfaces:
ProcessCall
Shipping rate inquiry for sales order
- Author:
- Elaine
-
Field Summary
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound, PROCESS_INFO_CTX_KEY, PROCESS_UI_CTX_KEY, processUI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MShippingTransaction
createShippingTransaction
(Properties ctx, MOrder m_order, String action, boolean isPriviledgedRate, String trxName) Create MShippingTransaction record for order.protected String
doIt()
Perform process.protected void
prepare()
Prepare - e.g., get Parameters.Methods inherited from class org.compiere.process.SvrProcess
addBufferLog, addLog, addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getRecord_IDs, getRecord_UU, getRecord_UUs, getTable_ID, isLocked, lockObject, postProcess, rollback, saveProgress, saveStatus, setProcessUI, startProcess, statusUpdate, unlockObject, updateProgress
-
Constructor Details
-
SalesOrderRateInquiryProcess
public SalesOrderRateInquiryProcess()
-
-
Method Details
-
prepare
protected void prepare()Description copied from class:SvrProcess
Prepare - e.g., get Parameters.ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else if (name.equals("A_Asset_Group_ID")) p_A_Asset_Group_ID = para[i].getParameterAsInt(); else if (name.equals("GuaranteeDate")) p_GuaranteeDate = (Timestamp)para[i].getParameter(); else if (name.equals("AttachAsset")) p_AttachAsset = "Y".equals(para[i].getParameter()); else log.log(Level.SEVERE, "Unknown Parameter: " + name); }
- Specified by:
prepare
in classSvrProcess
-
doIt
Description copied from class:SvrProcess
Perform process.- Specified by:
doIt
in classSvrProcess
- Returns:
- Message (variables are parsed)
- Throws:
Exception
- if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
-
createShippingTransaction
public static MShippingTransaction createShippingTransaction(Properties ctx, MOrder m_order, String action, boolean isPriviledgedRate, String trxName) Create MShippingTransaction record for order.- Parameters:
ctx
-m_order
-action
-isPriviledgedRate
-trxName
-- Returns:
- MShippingTransaction
-