Package org.compiere.process
Interface DocAction
- All Known Implementing Classes:
DocActionDelegate
,DocActionTemplate
,DocumentEngine
,GenericPO
,MAllocationHdr
,MAssetAddition
,MAssetDisposed
,MAssetReval
,MAssetTransfer
,MBankStatement
,MBankTransfer
,MCash
,MCOFAjusteEstoquePrevisto
,MCOFOrdemServico
,MCOFPPPlanoMestreProd
,MCOFRPS
,MDDOrder
,MDepreciationEntry
,MInOut
,MInOutConfirm
,MInventory
,MInvoice
,MJournal
,MJournalBatch
,MLBRDocFiscal
,MLBREventoNFe
,MMovement
,MMovementConfirm
,MOrder
,MPayment
,MProduction
,MProjectIssue
,MRequisition
,MRMA
,MTimeExpense
public interface DocAction
Document Action Interface
- Version:
- $Id: DocAction.java,v 1.3 2006/07/30 00:54:44 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Approve = APstatic final String
Close = CLstatic final String
Complete = COstatic final String
Invalidate = INstatic final String
= -- static final String
Post = POstatic final String
Prepare = PRstatic final String
ReActivate = REstatic final String
Reject = RJstatic final String
Reverse - Accrual = RAstatic final String
Reverse - Correct = RCstatic final String
Unlock = XLstatic final String
Void = VOstatic final String
Wait Complete = WCstatic final int
DocAction Ref_List valuesstatic final String
Column name AD_User_IDstatic final String
Column name C_Currency_IDstatic final String
Column name C_DocType_IDstatic final String
Column name C_DocTypeTarget_IDstatic final String
Column name DateAcctstatic final String
Column name DateTrxstatic final String
Column name Descriptionstatic final String
Column name DocActionstatic final String
Column name DocStatusstatic final String
Column name DocumentNostatic final String
Column name IsApprovedstatic final String
Column name Processedstatic final String
Column name Processingstatic final String
Column name SalesRep_IDstatic final String
Approved = APstatic final String
Closed = CLstatic final String
Completed = COstatic final String
Drafted = DRstatic final String
In Progress = IPstatic final String
Invalid = INstatic final String
Not Approved = NAstatic final String
Reversed = REstatic final String
Unknown = ??static final String
Voided = VOstatic final String
Waiting Confirmation = WCstatic final String
Waiting Payment = WP -
Method Summary
Modifier and TypeMethodDescriptionboolean
Approve Documentboolean
closeIt()
Close DocumentComplete DocumentCreate PDFint
get_ID()
Get ID of recordGet Loggerint
Get AD_Table_IDGet Transactionint
Get Document Clientint
Get Document OrganizationGet Document Approval Amountint
Get Document CurrencygetCtx()
Get Contextint
Get Document OwnerGet Doc ActionGet Doc StatusGet Document InfoGet Document NoGet Process MessageGet Summaryboolean
Invalidate DocumentPrepare Documentboolean
Process documentboolean
Re-activateboolean
rejectIt()
Reject Approvalboolean
Reverse Accrualboolean
Reverse Correctionboolean
save()
Save Documentvoid
saveEx()
Save throwing exceptionvoid
setDocStatus
(String newStatus) Set Doc Statusboolean
unlockIt()
Unlock Document.boolean
voidIt()
Void Document
-
Field Details
-
ACTION_Complete
Complete = CO- See Also:
-
ACTION_WaitComplete
Wait Complete = WC- See Also:
-
ACTION_Approve
Approve = AP- See Also:
-
ACTION_Reject
Reject = RJ- See Also:
-
ACTION_Post
Post = PO- See Also:
-
ACTION_Void
Void = VO- See Also:
-
ACTION_Close
Close = CL- See Also:
-
ACTION_Reverse_Correct
Reverse - Correct = RC- See Also:
-
ACTION_Reverse_Accrual
Reverse - Accrual = RA- See Also:
-
ACTION_ReActivate
ReActivate = RE- See Also:
-
ACTION_None
= -- - See Also:
-
ACTION_Prepare
Prepare = PR- See Also:
-
ACTION_Unlock
Unlock = XL- See Also:
-
ACTION_Invalidate
Invalidate = IN- See Also:
-
STATUS_Drafted
Drafted = DR- See Also:
-
STATUS_Completed
Completed = CO- See Also:
-
STATUS_Approved
Approved = AP- See Also:
-
STATUS_Invalid
Invalid = IN- See Also:
-
STATUS_NotApproved
Not Approved = NA- See Also:
-
STATUS_Voided
Voided = VO- See Also:
-
STATUS_Reversed
Reversed = RE- See Also:
-
STATUS_Closed
Closed = CL- See Also:
-
STATUS_Unknown
Unknown = ??- See Also:
-
STATUS_InProgress
In Progress = IP- See Also:
-
STATUS_WaitingPayment
Waiting Payment = WP- See Also:
-
STATUS_WaitingConfirmation
Waiting Confirmation = WC- See Also:
-
AD_REFERENCE_ID
static final int AD_REFERENCE_IDDocAction Ref_List values- See Also:
-
DOC_COLUMNNAME_DocAction
Column name DocAction- See Also:
-
DOC_COLUMNNAME_DocStatus
Column name DocStatus- See Also:
-
DOC_COLUMNNAME_Processing
Column name Processing- See Also:
-
DOC_COLUMNNAME_C_DocTypeTarget_ID
Column name C_DocTypeTarget_ID- See Also:
-
DOC_COLUMNNAME_C_DocType_ID
Column name C_DocType_ID- See Also:
-
DOC_COLUMNNAME_DateAcct
Column name DateAcct- See Also:
-
DOC_COLUMNNAME_DateTrx
Column name DateTrx- See Also:
-
DOC_COLUMNNAME_IsApproved
Column name IsApproved- See Also:
-
DOC_COLUMNNAME_Processed
Column name Processed- See Also:
-
DOC_COLUMNNAME_DocumentNo
Column name DocumentNo- See Also:
-
DOC_COLUMNNAME_Description
Column name Description- See Also:
-
DOC_COLUMNNAME_SalesRep_ID
Column name SalesRep_ID- See Also:
-
DOC_COLUMNNAME_AD_User_ID
Column name AD_User_ID- See Also:
-
DOC_COLUMNNAME_C_Currency_ID
Column name C_Currency_ID- See Also:
-
-
Method Details
-
setDocStatus
Set Doc Status- Parameters:
newStatus
- new Status
-
getDocStatus
String getDocStatus()Get Doc Status- Returns:
- Document Status
-
processIt
Process document- Parameters:
action
- document action- Returns:
- true if performed
- Throws:
Exception
-
unlockIt
boolean unlockIt()Unlock Document.- Returns:
- true if success
-
invalidateIt
boolean invalidateIt()Invalidate Document- Returns:
- true if success
-
prepareIt
String prepareIt()Prepare Document- Returns:
- new status (In Progress or Invalid)
-
approveIt
boolean approveIt()Approve Document- Returns:
- true if success
-
rejectIt
boolean rejectIt()Reject Approval- Returns:
- true if success
-
completeIt
String completeIt()Complete Document- Returns:
- new status (Complete, In Progress, Invalid, Waiting ..)
-
voidIt
boolean voidIt()Void Document- Returns:
- true if success
-
closeIt
boolean closeIt()Close Document- Returns:
- true if success
-
reverseCorrectIt
boolean reverseCorrectIt()Reverse Correction- Returns:
- true if success
-
reverseAccrualIt
boolean reverseAccrualIt()Reverse Accrual- Returns:
- true if success
-
reActivateIt
boolean reActivateIt()Re-activate- Returns:
- true if success
-
getSummary
String getSummary()Get Summary- Returns:
- Summary of Document
-
getDocumentNo
String getDocumentNo()Get Document No- Returns:
- Document No
-
getDocumentInfo
String getDocumentInfo()Get Document Info- Returns:
- Type and Document No
-
createPDF
File createPDF()Create PDF- Returns:
- file
-
getProcessMsg
String getProcessMsg()Get Process Message- Returns:
- clear text message
-
getDoc_User_ID
int getDoc_User_ID()Get Document Owner- Returns:
- AD_User_ID
-
getC_Currency_ID
int getC_Currency_ID()Get Document Currency- Returns:
- C_Currency_ID
-
getApprovalAmt
BigDecimal getApprovalAmt()Get Document Approval Amount- Returns:
- amount
-
getAD_Client_ID
int getAD_Client_ID()Get Document Client- Returns:
- AD_Client_ID
-
getAD_Org_ID
int getAD_Org_ID()Get Document Organization- Returns:
- AD_Org_ID
-
getDocAction
String getDocAction()Get Doc Action- Returns:
- Document Action
-
save
boolean save()Save Document- Returns:
- true if saved
-
saveEx
Save throwing exception- Throws:
AdempiereException
- See Also:
-
getCtx
Properties getCtx()Get Context- Returns:
- context
-
get_ID
int get_ID()Get ID of record- Returns:
- ID
-
get_Table_ID
int get_Table_ID()Get AD_Table_ID- Returns:
- AD_Table_ID
-
get_Logger
CLogger get_Logger()Get Logger- Returns:
- logger
-
get_TrxName
String get_TrxName()Get Transaction- Returns:
- trx name
-