com.konakart.json.app
Class J_TaxRate

java.lang.Object
  extended by com.konakart.json.app.J_TaxRate
All Implemented Interfaces:
java.io.Serializable

public class J_TaxRate
extends java.lang.Object
implements java.io.Serializable

Describes a tax rate. i.e. 17.5% Value added tax. The rate is associated to a tax class and a tax zone (GeoZone). i.e. 17.5% VAT for non food items in a tax zone. More than one tax zone (GeoZone) may apply to a physical zone (Zone). i.e. The state of California may have state tax and federal tax.

See Also:
Serialized Form

Constructor Summary
J_TaxRate()
           
 
Method Summary
 java.lang.String getDescription()
          The description of the tax rate.
 int getId()
           
 int getPriority()
          There may be more than one tax rate.
 java.math.BigDecimal getRate()
           
 void setDescription(java.lang.String _description)
          The description of the tax rate.
 void setId(int _id)
           
 void setPriority(int _priority)
          There may be more than one tax rate.
 void setRate(java.math.BigDecimal _rate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_TaxRate

public J_TaxRate()
Method Detail

getDescription

public java.lang.String getDescription()
The description of the tax rate. e.g. FL TAX 7.0%

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String _description)
The description of the tax rate. e.g. FL TAX 7.0%

Parameters:
_description - The description to set.

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int _id)
Parameters:
_id - The id to set.

getPriority

public int getPriority()
There may be more than one tax rate. If this is the case the rates have to be applied starting from the first rate and then compounded. If there are multiple rates with the same priority, then these are added together and can be applied in a single calculation. If there are multiple rates with different priorities, then they are compounded.

Returns:
Returns the priority.

setPriority

public void setPriority(int _priority)
There may be more than one tax rate. If this is the case the rates have to be applied starting from the first rate and then compounded. If there are multiple rates with the same priority, then these are added together and can be applied in a single calculation. If there are multiple rates with different priorities, then they are compounded.

Parameters:
_priority - The priority to set.

getRate

public java.math.BigDecimal getRate()
Returns:
Returns the rate.

setRate

public void setRate(java.math.BigDecimal _rate)
Parameters:
_rate - The rate to set.


Copyright © 2011 DS Data Systems UK Ltd.