|
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_DD_Order
org.eevolution.model.MDDOrder
public class MDDOrder
Order Distribution 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 | |
|---|---|
MDDOrder(MProject project,
boolean IsSOTrx,
String DocSubTypeSO)
Project Constructor |
|
MDDOrder(Properties ctx,
int DD_Order_ID,
String trxName)
Default Constructor |
|
MDDOrder(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
boolean |
approveIt()
Approve Document |
protected boolean |
beforeDelete()
Before Delete |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
boolean |
closeIt()
Close Document. |
String |
completeIt()
Complete Document |
static MDDOrder |
copyFrom(MDDOrder from,
Timestamp dateDoc,
int C_DocTypeTarget_ID,
boolean isSOTrx,
boolean counter,
boolean copyASI,
String trxName)
Create new Order by copying |
int |
copyLinesFrom(MDDOrder otherOrder,
boolean counter,
boolean copyASI)
Copy Lines From other Order |
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 |
getDocStatusName()
Get Document Status |
String |
getDocumentInfo()
Get Document Info |
MDDOrderLine[] |
getLines()
Get Lines of Order. |
MDDOrderLine[] |
getLines(boolean requery,
String orderBy)
Get Lines of Order |
MDDOrderLine[] |
getLines(String whereClause,
String orderClause)
Get Lines of Order |
MMovement[] |
getMovement()
Get Shipments of Order |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document |
String |
prepareIt()
Prepare Document |
boolean |
processIt(String processAction)
Process document |
boolean |
reActivateIt()
Re-activate. |
boolean |
rejectIt()
Reject Approval |
void |
renumberLines(int step)
Renumber Lines |
boolean |
reverseAccrualIt()
Reverse Accrual - none |
boolean |
reverseCorrectIt()
Reverse Correction - same void |
void |
setAD_User_ID(int AD_User_ID)
Set Business Partner Contact (Ship+Bill) |
void |
setBPartner(MBPartner bp)
Set Business Partner Defaults & Details. |
void |
setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner (Ship+Bill) |
void |
setC_BPartner_Location_ID(int C_BPartner_Location_ID)
Set Business Partner Location (Ship+Bill) |
void |
setClientOrg(int AD_Client_ID,
int AD_Org_ID)
Overwrite Client/Org if required |
void |
setDocAction(String DocAction)
Set DocAction |
void |
setDocAction(String DocAction,
boolean forceCreation)
Set DocAction |
void |
setIsDropShip(boolean IsDropShip)
Set Drop Ship |
void |
setM_Warehouse_ID(int M_Warehouse_ID)
Set Warehouse |
void |
setProcessed(boolean processed)
Set Processed. |
void |
setShip_BPartner_ID(int C_BPartner_ID)
Set Ship Business Partner |
void |
setShip_Location_ID(int C_BPartner_Location_ID)
Set Ship Business Partner Location |
void |
setShip_User_ID(int AD_User_ID)
Set Ship Business Partner Contact |
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 MDDOrder(Properties ctx,
int DD_Order_ID,
String trxName)
ctx - contextDD_Order_ID - order to load, (0 create new order)trxName - trx name
public MDDOrder(MProject project,
boolean IsSOTrx,
String DocSubTypeSO)
project - Project to create Order fromIsSOTrx - sales orderDocSubTypeSO - if SO DocType Target (default DocSubTypeSO_OnCredit)
public MDDOrder(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result set recordtrxName - transaction| Method Detail |
|---|
public static MDDOrder copyFrom(MDDOrder from,
Timestamp dateDoc,
int C_DocTypeTarget_ID,
boolean isSOTrx,
boolean counter,
boolean copyASI,
String trxName)
from - orderdateDoc - date of the document dateC_DocTypeTarget_ID - target document typeisSOTrx - sales ordercounter - create counter linkscopyASI - copy line attributes Attribute Set Instance, Resaouce AssignmenttrxName - trx
public void setClientOrg(int AD_Client_ID,
int AD_Org_ID)
setClientOrg in class POAD_Client_ID - clientAD_Org_ID - orgpublic void addDescription(String description)
description - textpublic void setC_BPartner_ID(int C_BPartner_ID)
setC_BPartner_ID in interface I_DD_OrdersetC_BPartner_ID in class X_DD_OrderC_BPartner_ID - bpartnerpublic void setC_BPartner_Location_ID(int C_BPartner_Location_ID)
setC_BPartner_Location_ID in interface I_DD_OrdersetC_BPartner_Location_ID in class X_DD_OrderC_BPartner_Location_ID - bp locationpublic void setAD_User_ID(int AD_User_ID)
setAD_User_ID in interface I_DD_OrdersetAD_User_ID in class X_DD_OrderAD_User_ID - userpublic void setShip_BPartner_ID(int C_BPartner_ID)
C_BPartner_ID - bpartnerpublic void setShip_Location_ID(int C_BPartner_Location_ID)
C_BPartner_Location_ID - bp locationpublic void setShip_User_ID(int AD_User_ID)
AD_User_ID - userpublic void setM_Warehouse_ID(int M_Warehouse_ID)
setM_Warehouse_ID in interface I_DD_OrdersetM_Warehouse_ID in class X_DD_OrderM_Warehouse_ID - warehousepublic void setIsDropShip(boolean IsDropShip)
setIsDropShip in interface I_DD_OrdersetIsDropShip in class X_DD_OrderIsDropShip - drop shippublic void setBPartner(MBPartner bp)
bp - business partner
public int copyLinesFrom(MDDOrder otherOrder,
boolean counter,
boolean copyASI)
otherOrder - ordercounter - set counter infocopyASI - copy line attributes Attribute Set Instance, Resaouce Assignment
public String toString()
toString in class X_DD_Orderpublic String getDocumentInfo()
getDocumentInfo in interface DocActionpublic File createPDF()
createPDF in interface DocActionpublic File createPDF(File file)
file - output file
public MDDOrderLine[] getLines(String whereClause,
String orderClause)
whereClause - where clause or null (starting with AND)orderClause - order clause
public MDDOrderLine[] getLines(boolean requery,
String orderBy)
requery - requeryorderBy - optional order by column
public MDDOrderLine[] getLines()
public void renumberLines(int step)
step - start and steppublic MMovement[] getMovement()
public String getDocStatusName()
public void setDocAction(String DocAction)
setDocAction in interface I_DD_OrdersetDocAction in class X_DD_OrderDocAction - doc actionpublic void setProcessed(boolean processed)
setProcessed in interface I_DD_OrdersetProcessed in class X_DD_Orderprocessed - processedprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public void setDocAction(String DocAction,
boolean forceCreation)
DocAction - doc octionforceCreation - force creationprotected boolean beforeDelete()
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 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 String getSummary()
getSummary in interface DocActionpublic String getProcessMsg()
getProcessMsg in interface DocActionpublic int getDoc_User_ID()
getDoc_User_ID in interface DocActionpublic BigDecimal getApprovalAmt()
DocAction
getApprovalAmt in interface DocActionpublic int getC_Currency_ID()
DocAction
getC_Currency_ID in interface DocAction
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||