|
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_GL_Journal
org.compiere.model.MJournal
public class MJournal
GL Journal 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 | |
|---|---|
MJournal(MJournal original)
Copy Constructor. |
|
MJournal(MJournalBatch parent)
Parent Constructor. |
|
MJournal(Properties ctx,
int GL_Journal_ID,
String trxName)
Standard Constructor |
|
MJournal(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
afterDelete(boolean success)
After Delete |
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 |
int |
copyLinesFrom(MJournal fromJournal,
Timestamp dateAcct,
char typeCR)
Copy Lines from other Journal |
File |
createPDF()
Create PDF |
File |
createPDF(File file)
Create PDF file |
BigDecimal |
getApprovalAmt()
Get Document Approval Amount |
int |
getDoc_User_ID()
Get Document Owner (Responsible) |
String |
getDocumentInfo()
Get Document Info |
MJournalLine[] |
getLines(boolean requery)
Get Journal Lines |
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 |
boolean |
reverseAccrualIt()
Reverse Accrual (sane batch). |
MJournal |
reverseAccrualIt(int GL_JournalBatch_ID)
Reverse Accrual. |
boolean |
reverseCorrectIt()
Reverse Correction (in same batch). |
MJournal |
reverseCorrectIt(int GL_JournalBatch_ID)
Reverse Correction. |
void |
setClientOrg(int AD_Client_ID,
int AD_Org_ID)
Overwrite Client/Org if required |
void |
setCurrency(int C_Currency_ID,
int C_ConversionType_ID,
BigDecimal CurrencyRate)
Set Currency Info |
void |
setDateAcct(Timestamp DateAcct)
Set Accounting Date. |
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, getC_Currency_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, setDocStatus |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MJournal(Properties ctx,
int GL_Journal_ID,
String trxName)
ctx - contextGL_Journal_ID - idtrxName - transaction
public MJournal(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transactionpublic MJournal(MJournalBatch parent)
parent - batchpublic MJournal(MJournal original)
original - original| Method Detail |
|---|
public void setClientOrg(int AD_Client_ID,
int AD_Org_ID)
setClientOrg in class POAD_Client_ID - clientAD_Org_ID - orgpublic void setDateAcct(Timestamp DateAcct)
setDateAcct in interface I_GL_JournalsetDateAcct in class X_GL_JournalDateAcct - date
public void setCurrency(int C_Currency_ID,
int C_ConversionType_ID,
BigDecimal CurrencyRate)
C_Currency_ID - currenctC_ConversionType_ID - typeCurrencyRate - ratepublic void addDescription(String description)
description - textpublic MJournalLine[] getLines(boolean requery)
requery - requery
public int copyLinesFrom(MJournal fromJournal,
Timestamp dateAcct,
char typeCR)
fromJournal - JournaldateAcct - date used - if null originaltypeCR - type of copying (C)orrect=negate - (R)everse=flip dr/cr - otherwise just copy
public void setProcessed(boolean processed)
setProcessed in interface I_GL_JournalsetProcessed in class X_GL_Journalprocessed - processedprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - true if new recordsuccess - true if success
protected boolean afterDelete(boolean success)
afterDelete in class POsuccess - true if deleted
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 MJournal reverseCorrectIt(int GL_JournalBatch_ID)
GL_JournalBatch_ID - reversal batch
public boolean reverseAccrualIt()
reverseAccrualIt in interface DocActionpublic MJournal reverseAccrualIt(int GL_JournalBatch_ID)
GL_JournalBatch_ID - reversal batch
public boolean reActivateIt()
reActivateIt in interface DocActionpublic String getSummary()
getSummary in interface DocActionpublic String toString()
toString in class X_GL_Journalpublic String getDocumentInfo()
getDocumentInfo in interface DocActionpublic File createPDF()
createPDF in interface DocActionpublic File createPDF(File file)
file - output file
public String getProcessMsg()
getProcessMsg in interface DocActionpublic int getDoc_User_ID()
getDoc_User_ID in interface DocActionpublic BigDecimal getApprovalAmt()
getApprovalAmt in interface DocAction
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||