|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_M_InOut
org.compiere.model.MInOut
public class MInOut
Shipment Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MInOut(Ctx ctx,
int M_InOut_ID,
String trxName)
Standard Constructor |
|
MInOut(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
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 |
|
| 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 isReturnTrx,
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 |
boolean |
isOnlyForOrder(MOrder order)
Is Only For Order |
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 |
boolean |
reverseCorrectIt(MOrder order)
Reverse Correction - same date |
void |
setBPartner(MBPartner bp)
Set Business Partner Defaults & Details |
void |
setC_BPartner_ID(String oldC_BPartner_ID,
String newC_BPartner_ID,
int windowNo)
Set Business Partner - Callout |
void |
setC_DocType_ID()
Set Default C_DocType_ID. |
void |
setC_DocType_ID(int C_DocType_ID,
boolean setReturnTrx)
Set Document Type |
void |
setC_DocType_ID(String DocBaseType)
Set Document Type |
void |
setC_DocType_ID(String oldC_DocType_ID,
String newC_DocType_ID,
int windowNo)
Set Document Type - Callout. |
void |
setC_Order_ID(String oldC_Order_ID,
String newC_Order_ID,
int windowNo)
Set Order - Callout |
void |
setM_Warehouse_ID(int M_Warehouse_ID)
Set Warehouse and check/set Organization |
void |
setM_Warehouse_ID(String oldM_Warehouse_ID,
String newM_Warehouse_ID,
int windowNo)
Set Business Partner - Callout |
void |
setMovementDate(String oldMovementDate,
String newMovementDate,
int windowNo)
Set Movement Date - Callout |
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, 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 |
| Constructor Detail |
|---|
public MInOut(Ctx ctx,
int M_InOut_ID,
String trxName)
ctx - contextM_InOut_ID - trxName - rx name
public MInOut(Ctx 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 isReturnTrx,
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
@UICallout
public void setC_Order_ID(String oldC_Order_ID,
String newC_Order_ID,
int windowNo)
throws Exception
oldC_Order_ID - old BPnewC_Order_ID - new BPwindowNo - window no
Exceptionpublic void setProcessed(boolean processed)
setProcessed in class X_M_InOutprocessed - processedpublic MBPartner getBPartner()
public void setC_DocType_ID(String DocBaseType)
DocBaseType - doc type MDocBaseType.DOCBASETYPE_public void setC_DocType_ID()
public void setC_DocType_ID(int C_DocType_ID,
boolean setReturnTrx)
C_DocType_ID - dtsetReturnTrx - if true set IsRteurnTrx and SOTrx
@UICallout
public void setC_DocType_ID(String oldC_DocType_ID,
String newC_DocType_ID,
int windowNo)
throws Exception
oldC_DocType_ID - old IDnewC_DocType_ID - new IDwindowNo - window
Exceptionpublic void setBPartner(MBPartner bp)
bp - business partner
@UICallout
public void setC_BPartner_ID(String oldC_BPartner_ID,
String newC_BPartner_ID,
int windowNo)
throws Exception
oldC_BPartner_ID - old BPnewC_BPartner_ID - new BPwindowNo - window no
Exception
@UICallout
public void setMovementDate(String oldMovementDate,
String newMovementDate,
int windowNo)
throws Exception
oldDateOrdered - oldnewDateOrdered - newwindowNo - window no
Exceptionpublic void setM_Warehouse_ID(int M_Warehouse_ID)
setM_Warehouse_ID in class X_M_InOutM_Warehouse_ID - id
@UICallout
public void setM_Warehouse_ID(String oldM_Warehouse_ID,
String newM_Warehouse_ID,
int windowNo)
throws Exception
oldM_Warehouse_ID - old BPnewM_Warehouse_ID - new BPwindowNo - window no
Exceptionpublic void createConfirmation()
protected 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 isOnlyForOrder(MOrder order)
order - order
public boolean reverseCorrectIt(MOrder order)
order - if not null only for this order
public 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()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||