|
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_C_AcctSchema
org.compiere.model.MAcctSchema
public class MAcctSchema
Accounting Schema Model (base)
| 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 | |
|---|---|
MAcctSchema(Ctx ctx,
int C_AcctSchema_ID,
String trxName)
Standard Constructor |
|
MAcctSchema(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MAcctSchema(MClient client,
KeyNamePair currency)
Parent Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
void |
checkCosting()
Check Costing Setup. |
static MAcctSchema |
get(Ctx ctx,
int C_AcctSchema_ID)
Get AccountSchema of Client |
static MAcctSchema |
get(Ctx ctx,
int C_AcctSchema_ID,
String trxName)
Get AccountSchema of Client |
MAcctSchemaDefault |
getAcctSchemaDefault()
Get AcctSchema Defaults |
MAcctSchemaElement |
getAcctSchemaElement(String elementType)
Get AcctSchema Element |
MAcctSchemaElement[] |
getAcctSchemaElements()
AcctSchema Elements |
MAcctSchemaGL |
getAcctSchemaGL()
Get AcctSchema GL info |
static MAcctSchema[] |
getClientAcctSchema(Ctx ctx,
int AD_Client_ID)
Get AccountSchema of Client |
static MAcctSchema[] |
getClientAcctSchema(Ctx ctx,
int AD_Client_ID,
String trxName)
Get AccountSchema of Client |
int |
getCostingPrecision()
Get Costing Precision of accounting Currency |
MAccount |
getCurrencyBalancing_Acct()
Get Currency Balancing Account |
MAccount |
getDueFrom_Acct(String segment)
Get Due From Account for Segment |
MAccount |
getDueTo_Acct(String segment)
Get Due To Account for Segment |
Integer[] |
getOnlyOrgs()
Set Only Org Childs |
int |
getStdPrecision()
Get Std Precision of accounting Currency |
MAccount |
getSuspenseBalancing_Acct()
Get Suspense Error Account |
String |
getTaxCorrectionType()
Get Tax Correction Type |
boolean |
isAcctSchemaElement(String segmentType)
Has AcctSchema Element |
boolean |
isAutoPeriodControlOpen(Timestamp dateAcct)
Does the dateAcct fall in the range |
boolean |
isCostingLevelBatch()
Is Batch Costing Level |
boolean |
isCostingLevelClient()
Is Client Costing Level (default) |
boolean |
isCostingLevelOrg()
Is Org Costing Level |
boolean |
isCreateCommitment()
Create Commitment Accounting |
boolean |
isCreateReservation()
Create Commitment/Reservation Accounting |
boolean |
isCurrencyBalancing()
Is Currency Balancing active |
boolean |
isSkipOrg(int AD_Org_ID)
Skip creating postings for this Org. |
boolean |
isSuspenseBalancing()
Is Suspense Balancing active |
boolean |
isTaxCorrection()
Tax Correction |
boolean |
isTaxCorrectionDiscount()
Tax Correction for Discount |
boolean |
isTaxCorrectionWriteOff()
Tax Correction for WriteOff |
void |
setOnlyOrgs(Integer[] orgs)
Set Only Org Children |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MAcctSchema(Ctx ctx,
int C_AcctSchema_ID,
String trxName)
ctx - contextC_AcctSchema_ID - idtrxName - transaction
public MAcctSchema(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MAcctSchema(MClient client,
KeyNamePair currency)
client - clientcurrency - currency| Method Detail |
|---|
public static MAcctSchema get(Ctx ctx,
int C_AcctSchema_ID)
ctx - contextC_AcctSchema_ID - schema id
public static MAcctSchema get(Ctx ctx,
int C_AcctSchema_ID,
String trxName)
ctx - contextC_AcctSchema_ID - schema idtrxName - optional trx
public static MAcctSchema[] getClientAcctSchema(Ctx ctx,
int AD_Client_ID)
ctx - contextAD_Client_ID - client or 0 for all
public static MAcctSchema[] getClientAcctSchema(Ctx ctx,
int AD_Client_ID,
String trxName)
ctx - contextAD_Client_ID - client or 0 for alltrxName - optional trx
public MAcctSchemaElement[] getAcctSchemaElements()
public MAcctSchemaElement getAcctSchemaElement(String elementType)
elementType - segment type - AcctSchemaElement.ELEMENTTYPE_
public boolean isAcctSchemaElement(String segmentType)
segmentType - segment type - AcctSchemaElement.SEGMENT_
public MAcctSchemaGL getAcctSchemaGL()
public MAcctSchemaDefault getAcctSchemaDefault()
public String toString()
toString in class X_C_AcctSchemapublic boolean isSuspenseBalancing()
public MAccount getSuspenseBalancing_Acct()
public boolean isCurrencyBalancing()
public MAccount getCurrencyBalancing_Acct()
public MAccount getDueTo_Acct(String segment)
segment - ignored
public MAccount getDueFrom_Acct(String segment)
segment - ignored
public void setOnlyOrgs(Integer[] orgs)
orgs - public Integer[] getOnlyOrgs()
public boolean isSkipOrg(int AD_Org_ID)
AD_Org_ID -
public int getStdPrecision()
public int getCostingPrecision()
public void checkCosting()
public boolean isCostingLevelClient()
public boolean isCostingLevelOrg()
public boolean isCostingLevelBatch()
public boolean isCreateCommitment()
public boolean isCreateReservation()
public String getTaxCorrectionType()
getTaxCorrectionType in class X_C_AcctSchemapublic boolean isTaxCorrection()
public boolean isTaxCorrectionDiscount()
public boolean isTaxCorrectionWriteOff()
public boolean isAutoPeriodControlOpen(Timestamp dateAcct)
dateAcct -
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||