|
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_C_AcctSchema
org.compiere.model.MAcctSchema
public class MAcctSchema
Accounting Schema Model (base)
| 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 | |
|---|---|
MAcctSchema(MClient client,
KeyNamePair currency)
Parent Constructor |
|
MAcctSchema(Properties ctx,
int C_AcctSchema_ID,
String trxName)
Standard Constructor |
|
MAcctSchema(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
void |
checkCosting()
Check Costing Setup. |
static MAcctSchema |
get(Properties ctx,
int C_AcctSchema_ID)
Get AccountSchema of Client |
static MAcctSchema |
get(Properties 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(Properties ctx,
int AD_Client_ID)
Get AccountSchema of Client |
static MAcctSchema[] |
getClientAcctSchema(Properties 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 |
isCostingLevelBatch()
Is Batch Costing Level |
boolean |
isCostingLevelClient()
Is Client Costing Level (default) |
boolean |
isCostingLevelOrg()
Is Org Costing Level |
boolean |
isCreatePOCommitment()
Create PO Commitment Accounting |
boolean |
isCreateReservation()
Create Commitment/Reservation Accounting |
boolean |
isCreateSOCommitment()
Create SO Commitment 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 Childs |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MAcctSchema(Properties ctx,
int C_AcctSchema_ID,
String trxName)
ctx - contextC_AcctSchema_ID - idtrxName - transaction
public MAcctSchema(Properties 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(Properties ctx,
int C_AcctSchema_ID)
ctx - contextC_AcctSchema_ID - schema id
public static MAcctSchema get(Properties ctx,
int C_AcctSchema_ID,
String trxName)
ctx - contextC_AcctSchema_ID - schema idtrxName - optional trx
public static MAcctSchema[] getClientAcctSchema(Properties ctx,
int AD_Client_ID)
ctx - contextAD_Client_ID - client or 0 for all
public static MAcctSchema[] getClientAcctSchema(Properties 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 isCreatePOCommitment()
public boolean isCreateSOCommitment()
public boolean isCreateReservation()
public String getTaxCorrectionType()
getTaxCorrectionType in interface I_C_AcctSchemagetTaxCorrectionType in class X_C_AcctSchemapublic boolean isTaxCorrection()
public boolean isTaxCorrectionDiscount()
public boolean isTaxCorrectionWriteOff()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||