|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.eevolution.model.X_PP_Order
org.eevolution.model.MPPOrder
public class MPPOrder
Order Model. Please do not set DocStatus and C_DocType_ID directly. They are set in the process() method. Use DocAction and C_DocTypeTarget_ID instead.
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MPPOrder(MProject project,
boolean IsSOTrx,
String DocSubTypeSO)
Project Constructor |
|
MPPOrder(Properties ctx,
int PP_Order_ID,
String trxName)
Default Constructor |
|
MPPOrder(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
Before Save |
boolean |
approveIt()
Approve Document |
protected boolean |
beforeDelete()
Executed before Delete operation. |
protected boolean |
beforeSave(boolean newRecord)
Called before Save for Pre-Save Operation |
boolean |
closeIt()
Close Document. |
String |
completeIt()
Complete Document |
static MPPOrder |
copyFrom(MPPOrder from,
Timestamp dateDoc,
int C_DocTypeTarget_ID,
boolean isSOTrx,
boolean counter)
Create new Order by copying |
File |
createPDF()
Create PDF |
File |
createPDF(File file)
Create PDF file |
BigDecimal |
getApprovalAmt()
Get Document Approval Amount |
int |
getC_Currency_ID()
Get Document Currency |
int |
getDoc_User_ID()
Get Document Owner (Responsible) |
String |
getDocumentInfo()
Get Document Info |
MPPOrderBOMLine[] |
getLines(boolean requery,
String orderBy)
Get Lines of Order |
static MPPOrderBOMLine[] |
getLines(int PP_Order_ID)
Get Invoices of Order |
MPPOrderBOMLine[] |
getLines(String whereClause,
String orderClause)
Get Lines of Order |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document |
boolean |
isAvailable()
|
boolean |
postIt()
Post Document - nothing |
String |
prepareIt()
Prepare Document |
boolean |
processIt(String processAction)
Process document |
boolean |
reActivateIt()
Re-activate. |
boolean |
rejectIt()
Reject Approval |
boolean |
reverseAccrualIt()
Reverse Accrual - none |
boolean |
reverseCorrectIt()
Reverse Correction - same void |
boolean |
setBOMLineQtys(MPPOrderBOMLine obl)
|
void |
setClientOrg(int AD_Client_ID,
int AD_Org_ID)
Overwrite Client/Org if required |
void |
setM_Warehouse_ID(int M_Warehouse_ID)
Set Warehouse |
void |
setProcessed(boolean processed)
Set Processed. |
String |
toString()
String Representation |
boolean |
unlockIt()
Unlock Document. |
boolean |
voidIt()
Void Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.process.DocAction |
|---|
get_ID, get_Logger, get_Table_ID, get_TrxName, getAD_Client_ID, getAD_Org_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, setDocStatus |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MPPOrder(Properties ctx,
int PP_Order_ID,
String trxName)
ctx - contextC_Order_ID - order to load, (0 create new order)
public MPPOrder(MProject project,
boolean IsSOTrx,
String DocSubTypeSO)
project - Project to create Order fromDocSubTypeSO - if SO DocType Target (default DocSubTypeSO_OnCredit)
public MPPOrder(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result set record| Method Detail |
|---|
public static MPPOrder copyFrom(MPPOrder from,
Timestamp dateDoc,
int C_DocTypeTarget_ID,
boolean isSOTrx,
boolean counter)
ctx - contextC_Order_ID - invoicedateDoc - date of the document datecounter - create counter links
public void setClientOrg(int AD_Client_ID,
int AD_Org_ID)
setClientOrg in class POAD_Client_ID - clientAD_Org_ID - orgpublic void setM_Warehouse_ID(int M_Warehouse_ID)
setM_Warehouse_ID in interface I_PP_OrdersetM_Warehouse_ID in class X_PP_OrderM_Warehouse_ID - warehousepublic String toString()
toString in class X_PP_Order
public MPPOrderBOMLine[] getLines(String whereClause,
String orderClause)
whereClause - where clause or null (starting with AND)
public MPPOrderBOMLine[] getLines(boolean requery,
String orderBy)
requery - requeryorderBy - optional order by column
public void setProcessed(boolean processed)
setProcessed in interface I_PP_OrdersetProcessed in class X_PP_Orderprocessed - processedprotected boolean beforeSave(boolean newRecord)
PO
beforeSave in class POnewRecord - new record
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - true if save operation was success
protected boolean beforeDelete()
PO
beforeDelete in class POpublic boolean processIt(String processAction)
processIt in interface DocActionprocessAction - document action
public boolean unlockIt()
unlockIt in interface DocActionpublic boolean invalidateIt()
invalidateIt in interface DocActionpublic String prepareIt()
prepareIt in interface DocActionpublic boolean approveIt()
approveIt in interface DocActionpublic boolean rejectIt()
rejectIt in interface DocActionpublic String completeIt()
completeIt in interface DocActionpublic boolean isAvailable()
public boolean postIt()
public boolean voidIt()
voidIt in interface DocActionpublic boolean closeIt()
closeIt in interface DocActionpublic boolean reverseCorrectIt()
reverseCorrectIt in interface DocActionpublic boolean reverseAccrualIt()
reverseAccrualIt in interface DocActionpublic boolean reActivateIt()
reActivateIt in interface DocActionpublic static MPPOrderBOMLine[] getLines(int PP_Order_ID)
C_Order_ID - id
public int getDoc_User_ID()
getDoc_User_ID in interface DocActionpublic BigDecimal getApprovalAmt()
getApprovalAmt in interface DocActionpublic int getC_Currency_ID()
DocAction
getC_Currency_ID in interface DocActionpublic String getProcessMsg()
DocAction
getProcessMsg in interface DocActionpublic String getSummary()
DocAction
getSummary in interface DocActionpublic File createPDF()
createPDF in interface DocActionpublic File createPDF(File file)
file - output file
public String getDocumentInfo()
getDocumentInfo in interface DocActionpublic boolean setBOMLineQtys(MPPOrderBOMLine obl)
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||