|
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_JournalLine
org.compiere.model.MJournalLine
public class MJournalLine
Journal Line Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_GL_JournalLine |
|---|
accessLevel, C_ACCOUNTALIAS_ID_AD_Reference_ID, Model, Table_ID, Table_Name, updatedMS |
| 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 | |
|---|---|
MJournalLine(Ctx ctx,
int GL_JournalLine_ID,
String trxName)
Standard Constructor |
|
MJournalLine(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MJournalLine(MJournal parent)
Parent Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterDelete(boolean success)
After Delete |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
MAccount |
getAccount()
Get Account (Valid Combination) |
MElementValue |
getAccountElementValue()
Get Natural Account Element Value |
int |
getPrecision()
Get Currency Precision |
boolean |
isDocControlled()
Is it posting to a Control Acct |
void |
setAmtAcct(BigDecimal AmtAcctDr,
BigDecimal AmtAcctCr)
Set Accounted Amounts only if not 0. |
void |
setAmtSourceCr(String oldAmtSourceCr,
String newAmtSourceCr,
int windowNo)
Set AmtSourceCr - Callout |
void |
setAmtSourceDr(String oldAmtSourceDr,
String newAmtSourceDr,
int windowNo)
Set AmtSourceDr - Callout |
void |
setC_AccountAlias_ID(String oldC_AccountAlias_ID,
String newC_AccountAlias_ID,
int windowNo)
Set Rate - Callout. |
void |
setC_ConversionType_ID(String oldC_ConversionType_ID,
String newC_ConversionType_ID,
int windowNo)
Set Rate - Callout. |
void |
setC_Currency_ID(int C_Currency_ID)
Set C_Currency_ID and precision |
void |
setC_Currency_ID(String oldC_Currency_ID,
String newC_Currency_ID,
int windowNo)
Set Currency - Callout. |
void |
setC_ValidCombination_ID(int C_ValidCombination_ID)
Set C_ValidCombination_ID |
void |
setC_ValidCombination_ID(MAccount acct)
Set C_ValidCombination_ID |
void |
setC_ValidCombination_ID(String oldC_ValidCombination_ID,
String newC_ValidCombination_ID,
int windowNo)
Set Rate - Callout. |
void |
setCurrency(int C_Currency_ID,
int C_ConversionType_ID,
BigDecimal CurrencyRate)
Set Currency Info |
void |
setCurrencyRate(BigDecimal CurrencyRate)
Set Currency Rate |
void |
setCurrencyRate(String oldCurrencyRate,
String newCurrencyRate,
int windowNo)
Set CurrencyRate - Callout |
void |
setDateAcct(String oldDateAcct,
String newDateAcct,
int windowNo)
Set DateAcct - Callout. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MJournalLine(Ctx ctx,
int GL_JournalLine_ID,
String trxName)
ctx - contextGL_JournalLine_ID - idtrxName - transaction
public MJournalLine(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transactionpublic MJournalLine(MJournal parent)
parent - journal| Method Detail |
|---|
public void setCurrency(int C_Currency_ID,
int C_ConversionType_ID,
BigDecimal CurrencyRate)
C_Currency_ID - currenctC_ConversionType_ID - typeCurrencyRate - ratepublic void setC_Currency_ID(int C_Currency_ID)
setC_Currency_ID in class X_GL_JournalLineC_Currency_ID - currencypublic int getPrecision()
public void setCurrencyRate(BigDecimal CurrencyRate)
setCurrencyRate in class X_GL_JournalLineCurrencyRate - check for null (->one)
@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_AccountAlias_ID(String oldC_AccountAlias_ID,
String newC_AccountAlias_ID,
int windowNo)
throws Exception
oldC_ConversionType_ID - oldnewC_ConversionType_ID - newwindowNo - window no
Exception
@UICallout
public void setC_ValidCombination_ID(String oldC_ValidCombination_ID,
String newC_ValidCombination_ID,
int windowNo)
throws Exception
oldC_ConversionType_ID - oldnewC_ConversionType_ID - 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_Currency_ID(String oldC_Currency_ID,
String newC_Currency_ID,
int windowNo)
throws Exception
oldC_Currency_ID - oldnewC_Currency_ID - newwindowNo - window no
Exception
public void setAmtAcct(BigDecimal AmtAcctDr,
BigDecimal AmtAcctCr)
AmtAcctDr - DrAmtAcctCr - Cr
@UICallout
public void setAmtSourceCr(String oldAmtSourceCr,
String newAmtSourceCr,
int windowNo)
throws Exception
oldAmtSourceCr - old valuenewAmtSourceCr - new valuewindowNo - window
Exception
@UICallout
public void setAmtSourceDr(String oldAmtSourceDr,
String newAmtSourceDr,
int windowNo)
throws Exception
oldAmtSourceDr - old valuenewAmtSourceDr - new valuewindowNo - window
Exception
@UICallout
public void setCurrencyRate(String oldCurrencyRate,
String newCurrencyRate,
int windowNo)
throws Exception
oldCurrencyRate - old valuenewCurrencyRate - new valuewindowNo - window
Exceptionpublic void setC_ValidCombination_ID(int C_ValidCombination_ID)
setC_ValidCombination_ID in class X_GL_JournalLineC_ValidCombination_ID - idpublic void setC_ValidCombination_ID(MAccount acct)
acct - accountpublic MAccount getAccount()
public MElementValue getAccountElementValue()
public boolean isDocControlled()
protected 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
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||