|
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_Tax
org.compiere.model.MTax
public class MTax
Tax Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_C_Tax |
|---|
C_COUNTRY_ID_AD_Reference_ID, C_REGION_ID_AD_Reference_ID, PARENT_TAX_ID_AD_Reference_ID, SOPOTYPE_AD_Reference_ID, SOPOTYPE_Both, SOPOTYPE_PurchaseTax, SOPOTYPE_SalesTax, TO_COUNTRY_ID_AD_Reference_ID, TO_REGION_ID_AD_Reference_ID |
| 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 | |
|---|---|
MTax(Properties ctx,
int C_Tax_ID,
String trxName)
Standard Constructor |
|
MTax(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MTax(Properties ctx,
String Name,
BigDecimal Rate,
int C_TaxCategory_ID,
String trxName)
New Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeDelete()
Before Delete |
BigDecimal |
calculateTax(BigDecimal amount,
boolean taxIncluded,
int scale)
Calculate Tax - no rounding |
static MTax |
get(Properties ctx,
int C_Tax_ID)
Get Tax from Cache |
static MTax[] |
getAll(Properties ctx)
Get All Tax codes (for AD_Client) |
MTax[] |
getChildTaxes(boolean requery)
Get Child Taxes |
MTaxPostal[] |
getPostals(boolean requery)
Get Postal Qualifiers |
boolean |
isPostal()
Do we have Postal Codes |
boolean |
isZeroTax()
Is Zero Tax |
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 MTax(Properties ctx,
int C_Tax_ID,
String trxName)
ctx - contextC_Tax_ID - idtrxName - transaction
public MTax(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MTax(Properties ctx,
String Name,
BigDecimal Rate,
int C_TaxCategory_ID,
String trxName)
ctx - Name - Rate - C_TaxCategory_ID - trxName - transaction| Method Detail |
|---|
public static MTax[] getAll(Properties ctx)
ctx - context
public static MTax get(Properties ctx,
int C_Tax_ID)
ctx - contextC_Tax_ID - id
public MTax[] getChildTaxes(boolean requery)
requery - reload
public MTaxPostal[] getPostals(boolean requery)
requery - requery
public boolean isPostal()
public boolean isZeroTax()
public String toString()
toString in class X_C_Tax
public BigDecimal calculateTax(BigDecimal amount,
boolean taxIncluded,
int scale)
amount - amounttaxIncluded - if true tax is calculated from gross otherwise from netscale - scale
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
protected boolean beforeDelete()
beforeDelete in class PO
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||