|
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_GL_Journal
org.compiere.model.MJournal
public class MJournal
GL Journal 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 | |
|---|---|
MJournal(Ctx ctx,
int GL_Journal_ID,
String trxName)
Standard Constructor |
|
MJournal(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MJournal(MJournal original)
Copy Constructor. |
|
MJournal(MJournalBatch parent)
Parent Constructor. |
|
| Method Summary | |
|---|---|
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 |
MPeriod |
getPeriod()
Get Period |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document |
boolean |
IsAccountValid(MJournalLine line)
|
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 |
setC_ConversionType_ID(String oldC_ConversionType_ID,
String newC_ConversionType_ID,
int windowNo)
Set Rate - Callout. |
void |
setC_Currency_ID(String oldC_Currency_ID,
String newC_Currency_ID,
int windowNo)
Set Currency - Callout. |
void |
setC_Period_ID(int C_Period_ID)
Set Period |
void |
setC_Period_ID(String oldC_Period_ID,
String newC_Period_ID,
int windowNo)
Set Period - Callout. |
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(String oldDateAcct,
String newDateAcct,
int windowNo)
Set Acct Date - Callout. |
void |
setDateAcct(Timestamp DateAcct)
Set Accounting Date. |
void |
setDateDoc(String oldDateDoc,
String newDateDoc,
int windowNo)
Set Doc 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, getC_Currency_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, setDocStatus |
| Constructor Detail |
|---|
public MJournal(Ctx ctx,
int GL_Journal_ID,
String trxName)
ctx - contextGL_Journal_ID - idtrxName - transaction
public MJournal(Ctx 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 MPeriod getPeriod()
@UICallout
public void setDateDoc(String oldDateDoc,
String newDateDoc,
int windowNo)
throws Exception
oldDateDoc - oldnewDateDoc - newwindowNo - window no
Exception
@UICallout
public void setDateAcct(String oldDateAcct,
String newDateAcct,
int windowNo)
throws Exception
oldDateAcct - oldnewDateAcct - newwindowNo - window no
Exception
@UICallout
public void setC_Period_ID(String oldC_Period_ID,
String newC_Period_ID,
int windowNo)
throws Exception
oldC_Period_ID - oldnewC_Period_ID - newwindowNo - window no
Exceptionpublic void setDateAcct(Timestamp DateAcct)
setDateAcct in class X_GL_JournalDateAcct - datepublic void setC_Period_ID(int C_Period_ID)
setC_Period_ID in class X_GL_JournalC_Period_ID - period
public void setCurrency(int C_Currency_ID,
int C_ConversionType_ID,
BigDecimal CurrencyRate)
C_Currency_ID - currenctC_ConversionType_ID - typeCurrencyRate - rate
@UICallout
public void setC_ConversionType_ID(String oldC_ConversionType_ID,
String newC_ConversionType_ID,
int windowNo)
throws Exception
oldC_ConversionType_ID - oldnewC_ConversionType_ID - newwindowNo - window no
Exception
@UICallout
public void setC_Currency_ID(String oldC_Currency_ID,
String newC_Currency_ID,
int windowNo)
throws Exception
oldC_Currency_ID - oldnewC_Currency_ID - newwindowNo - window no
Exceptionpublic 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 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 DocActionpublic boolean IsAccountValid(MJournalLine line)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||