public class CRMBOTaxRateBean extends CRMBO
Constructor and Description |
---|
CRMBOTaxRateBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a tax rate.
|
java.math.BigDecimal |
getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate)
Returns the tax rate percentage as of the current date.
|
java.math.BigDecimal |
getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate,
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates,
java.util.Date asOfDate)
Return the tax percentage of a tax rate
|
java.math.BigDecimal |
getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate,
com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition,
java.util.Date asOfDate)
Returns the tax rate percentage as of a date.
|
java.math.BigDecimal |
getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate,
java.util.Date asOfDate)
Returns the tax rate percentage as of the current date.
|
java.lang.Boolean |
isRelatedWithRatedBillingItems(com.crm.dataobject.platform.CRMDOTaxRate taxRate)
Checks if a tax rate is related with rated billing items
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.platform.CRMDOTaxCode taxCode)
Loads a list of tax rates by a tax code.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.platform.CRMDOTaxCode taxCode,
java.util.ArrayList<java.lang.String> associations)
Loads a list of tax rates by a tax code.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.platform.CRMDOTaxCode taxCode,
java.util.Date fromDate,
java.util.Date toDate)
Loads a list of tax rates by period of time.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.platform.CRMDOTaxCode taxCode,
java.util.Date fromDate,
java.util.Date toDate,
java.util.ArrayList<java.lang.String> associations)
Loads a list of tax rates by period of time.
|
com.crm.dataobject.platform.CRMDOTaxRate |
loadByAltCode(java.lang.String altCode)
Loads a tax rate by an alternative code.
|
com.crm.dataobject.platform.CRMDOTaxRate |
loadByAltCode(java.lang.String altCode,
java.util.ArrayList<java.lang.String> associations)
Loads a tax rate by an alternative code.
|
com.crm.dataobject.platform.CRMDOTaxRate |
loadByName(java.lang.String name)
Loads a tax rate by a name.
|
com.crm.dataobject.platform.CRMDOTaxRate |
loadByName(java.lang.String name,
java.util.ArrayList<java.lang.String> associations)
Loads a tax rate by a name.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByPeriodsOfTime(java.util.Date fromDate,
java.util.Date toDate)
Loads a list of tax rates by period of time.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByPeriodsOfTime(java.util.Date fromDate,
java.util.Date toDate,
java.util.ArrayList<java.lang.String> associations)
Loads a list of tax rates by period of time.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByProduct(com.crm.dataobject.products.CRMDOProduct product)
Loads a list of tax rates by a product.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByProduct(com.crm.dataobject.products.CRMDOProduct product,
java.util.ArrayList<java.lang.String> associations)
Loads a list of tax rates by a product.
|
java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> |
setTaxPercentage(java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> appliedTaxRates,
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates,
java.util.Date asOfDate)
Sets the tax percentage on applied financial transaction line tax rates
|
java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> |
setTaxPercentage(java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> financialTransactionLineAppliedTaxRates,
com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition,
java.util.Date asOfDate)
Sets the tax percentage on applied financial transaction line tax rates
|
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> |
setTaxPercentage(java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates)
Returns the tax rate percentage as of the current date.
|
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> |
setTaxPercentage(java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates,
java.util.Date asOfDate)
Sets the tax rate percentage as of the current date on a given list of tax rates.
|
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> |
setTaxPercentage(com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition,
java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates,
java.util.Date asOfDate)
Sets the tax percentage on tax rates
|
construct, construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, isAssignable, load, load, load, load, load, load, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, loadAllEntityStatusDO, loadAllEntityStatusDO, loadDataObject, loadDataObject, loadDataObject, loadDataObjects, loadDataObjects, loadEntityCategoryDO, loadEntityCategoryDO, loadEntityDO, loadEntityDO, loadEntityStatusDO, loadEntityStatusDO, parseAssociations, parseAssociations, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateApprovalRequestEntity, validateFormatSettings, validateFormatSettings, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
deepCopy, dispatch, getCRMSession, getCRMSessionHandle, getCurrentDate, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.platform.CRMDOTaxRate loadByName(java.lang.String name) throws java.lang.Exception
name
- - a tax rate namejava.lang.Exception
public com.crm.dataobject.platform.CRMDOTaxRate loadByName(java.lang.String name, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
name
- - a tax rate nameassociations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.platform.CRMDOTaxRate loadByAltCode(java.lang.String altCode) throws java.lang.Exception
altCode
- - a tax rate alternative codejava.lang.Exception
public com.crm.dataobject.platform.CRMDOTaxRate loadByAltCode(java.lang.String altCode, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
altCode
- - a tax rate alternative codeassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByPeriodsOfTime(java.util.Date fromDate, java.util.Date toDate) throws java.lang.Exception
fromDate
- - the from date to load the tax ratestoDate
- - the to date to load the tax ratesjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByPeriodsOfTime(java.util.Date fromDate, java.util.Date toDate, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
fromDate
- - the from date to load the tax ratestoDate
- - the to date to load the tax ratesassociations
- java.lang.Exception
public java.lang.Boolean isRelatedWithRatedBillingItems(com.crm.dataobject.platform.CRMDOTaxRate taxRate) throws java.lang.Exception
taxRate
- - the tax rate to checkjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> setTaxPercentage(java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> financialTransactionLineAppliedTaxRates, com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition, java.util.Date asOfDate) throws java.lang.Exception
financialTransactionLineAppliedTaxRates
- - a list of applied financial transaction line tax rates to set the tax percentagetaxDefinition
- - the tax definitionasOfDate
- - the date to get the tax percentagejava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> setTaxPercentage(java.util.ArrayList<com.crm.dataobject.financialtransactions.CRMDOFinancialTransactionLineAppliedTaxRate> appliedTaxRates, java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates, java.util.Date asOfDate) throws java.lang.Exception
appliedTaxRates
- - a list of applied financial transaction line tax rates to set the tax percentagetaxRates
- - a list of tax ratesasOfDate
- - the date to get the tax percentagejava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> setTaxPercentage(com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition, java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates, java.util.Date asOfDate) throws java.lang.Exception
taxDefinition
- - the tax definitiontaxRates
- - a list of applied financial transaction line tax rates to set the tax percentageasOfDate
- - the date to get the tax percentagejava.lang.Exception
public java.math.BigDecimal getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate, com.crm.dataobject.platform.CRMDOTaxDefinition taxDefinition, java.util.Date asOfDate) throws java.lang.Exception
taxRate
- - the tax rate to get the rate percentage fromtaxDefinition
- - tax definitionasOfDate
- - a date to get the rate percentage fromjava.lang.Exception
public java.math.BigDecimal getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate, java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates, java.util.Date asOfDate) throws java.lang.Exception
taxRate
- - the tax rate to get the tax percentagetaxRates
- - a list of tax ratesasOfDate
- - the date to get the tax percentagejava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> setTaxPercentage(java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates) throws java.lang.Exception
taxRates
- - the tax rate to get the tax rate percentage fromjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> setTaxPercentage(java.util.ArrayList<com.crm.dataobject.platform.CRMDOTaxRate> taxRates, java.util.Date asOfDate) throws java.lang.Exception
taxRates
- - the tax rates to set the tax rate percentage toasOfDate
- - a date to get the tax rate percentage fromjava.lang.Exception
public java.math.BigDecimal getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate) throws java.lang.Exception
taxRate
- - the tax rate to get the tax rate percentage fromjava.lang.Exception
public java.math.BigDecimal getTaxPercentage(com.crm.dataobject.platform.CRMDOTaxRate taxRate, java.util.Date asOfDate) throws java.lang.Exception
taxRate
- - the tax rate to get the tax rate percentage fromasOfDate
- - a date to get the tax rate percentage fromjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.platform.CRMDOTaxCode taxCode) throws java.lang.Exception
taxCode
- - the tax code to load the tax ratesjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.platform.CRMDOTaxCode taxCode, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
taxCode
- - the tax code to load the tax ratesassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.platform.CRMDOTaxCode taxCode, java.util.Date fromDate, java.util.Date toDate) throws java.lang.Exception
fromDate
- - the from date to load the tax ratestoDate
- - the to date to load the tax ratesjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.platform.CRMDOTaxCode taxCode, java.util.Date fromDate, java.util.Date toDate, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
fromDate
- - the from date to load the tax ratestoDate
- - the to date to load the tax ratesassociations
- java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByProduct(com.crm.dataobject.products.CRMDOProduct product) throws java.lang.Exception
product
- - the product to load the tax rates forjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByProduct(com.crm.dataobject.products.CRMDOProduct product, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
product
- - the product to load the tax rates forassociations
- - a list of associated data objectsjava.lang.Exception