|
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.compiere.model.X_M_InOut
org.compiere.model.MInOut
public class MInOut
Shipment Model
http://sourceforge.net/tracker/?func=detail&atid=879335&aid=1948157&group_id=176962,
Serialized Form| 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 | |
|---|---|
MInOut(MInOut original,
int C_DocTypeShipment_ID,
Timestamp movementDate)
Copy Constructor - create header only |
|
MInOut(MInvoice invoice,
int C_DocTypeShipment_ID,
Timestamp movementDate,
int M_Warehouse_ID)
Invoice Constructor - create header only |
|
MInOut(MOrder order,
int C_DocTypeShipment_ID,
Timestamp movementDate)
Order Constructor - create header only |
|
MInOut(Properties ctx,
int M_InOut_ID,
String trxName)
Standard Constructor |
|
MInOut(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 |
beforeSave(boolean newRecord)
Before Save |
boolean |
closeIt()
Close Document. |
String |
completeIt()
Complete Document |
static MInOut |
copyFrom(MInOut from,
Timestamp dateDoc,
int C_DocType_ID,
boolean isSOTrx,
boolean counter,
String trxName,
boolean setOrder)
Create new Shipment by copying |
int |
copyLinesFrom(MInOut otherShipment,
boolean counter,
boolean setOrder)
Copy Lines From other Shipment |
void |
createConfirmation()
Create the missing next Confirmation |
static MInOut |
createFrom(MOrder order,
Timestamp movementDate,
boolean forceDelivery,
boolean allAttributeInstances,
Timestamp minGuaranteeDate,
boolean complete,
String trxName)
Create Shipment From Order |
File |
createPDF()
Create PDF |
File |
createPDF(File file)
Create PDF file |
BigDecimal |
getApprovalAmt()
Get Document Approval Amount |
MBPartner |
getBPartner()
Get BPartner |
int |
getC_Currency_ID()
Get C_Currency_ID |
MInOutConfirm[] |
getConfirmations(boolean requery)
Get Confirmations |
int |
getDoc_User_ID()
Get Document Owner (Responsible) |
String |
getDocStatusName()
Get Document Status |
String |
getDocumentInfo()
Get Document Info |
MInOutLine[] |
getLines()
Get Lines of Shipment |
MInOutLine[] |
getLines(boolean requery)
Get Lines of Shipment |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document |
boolean |
isComplete()
Document Status is Complete or Closed |
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 date |
void |
setBPartner(MBPartner bp)
Set Business Partner Defaults & Details |
void |
setC_DocType_ID()
Set Default C_DocType_ID. |
void |
setC_DocType_ID(String DocBaseType)
Set Document Type |
void |
setM_Warehouse_ID(int M_Warehouse_ID)
Set Warehouse and check/set Organization |
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 MInOut(Properties ctx,
int M_InOut_ID,
String trxName)
ctx - contextM_InOut_ID - trxName - rx name
public MInOut(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result set recordtrxName - transaction
public MInOut(MOrder order,
int C_DocTypeShipment_ID,
Timestamp movementDate)
order - ordermovementDate - optional movement date (default today)C_DocTypeShipment_ID - document type or 0
public MInOut(MInvoice invoice,
int C_DocTypeShipment_ID,
Timestamp movementDate,
int M_Warehouse_ID)
invoice - invoiceC_DocTypeShipment_ID - document type or 0movementDate - optional movement date (default today)M_Warehouse_ID - warehouse
public MInOut(MInOut original,
int C_DocTypeShipment_ID,
Timestamp movementDate)
original - originalmovementDate - optional movement date (default today)C_DocTypeShipment_ID - document type or 0| Method Detail |
|---|
public static MInOut createFrom(MOrder order,
Timestamp movementDate,
boolean forceDelivery,
boolean allAttributeInstances,
Timestamp minGuaranteeDate,
boolean complete,
String trxName)
order - ordermovementDate - optional movement dateforceDelivery - ignore order delivery ruleallAttributeInstances - if true, all attribute set instancesminGuaranteeDate - optional minimum guarantee date if all attribute instancescomplete - complete document (Process if false, Complete if true)trxName - transaction
public static MInOut copyFrom(MInOut from,
Timestamp dateDoc,
int C_DocType_ID,
boolean isSOTrx,
boolean counter,
String trxName,
boolean setOrder)
from - shipmentdateDoc - date of the document dateC_DocType_ID - doc typeisSOTrx - sales ordercounter - create counter linkstrxName - trxsetOrder - set the order link
public String getDocStatusName()
public void addDescription(String description)
description - textpublic String toString()
toString in class X_M_InOutpublic String getDocumentInfo()
getDocumentInfo in interface DocActionpublic File createPDF()
createPDF in interface DocActionpublic File createPDF(File file)
file - output file
public MInOutLine[] getLines(boolean requery)
requery - refresh from db
public MInOutLine[] getLines()
public MInOutConfirm[] getConfirmations(boolean requery)
requery - requery
public int copyLinesFrom(MInOut otherShipment,
boolean counter,
boolean setOrder)
otherShipment - shipmentcounter - set counter infosetOrder - set order link
public void setProcessed(boolean processed)
setProcessed in interface I_M_InOutsetProcessed in class X_M_InOutprocessed - processedpublic MBPartner getBPartner()
public void setC_DocType_ID(String DocBaseType)
DocBaseType - doc type MDocType.DOCBASETYPE_public void setC_DocType_ID()
public void setBPartner(MBPartner bp)
bp - business partnerpublic void createConfirmation()
public void setM_Warehouse_ID(int M_Warehouse_ID)
setM_Warehouse_ID in interface I_M_InOutsetM_Warehouse_ID in class X_M_InOutM_Warehouse_ID - idprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public 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()
getApprovalAmt in interface DocActionpublic int getC_Currency_ID()
getC_Currency_ID in interface DocActionpublic boolean isComplete()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||