Reference > TDBFinancialX Object > TDBFinancialX Object Methods > TaxCalc Method (TDBFinancialX) |
TaxCalc Method (TDBFinancialX)
This method performs a tax calculation on the underlying value specified with the Value property yielding price, tax, and total amounts. After the execution of the TaxCalc method, these amounts can be retrieved from the Price, Tax, and Total properties. The actual Value property remains unchanged.
object.TaxCalc
None
True if the calculation succeeded, False if it failed.
If the integer places of the return value retrieved for the Price, Tax and Total properties exceed fifteen digits when invoking the TaxCalc method, it will cause the method to return False, indicating the calculation failed. However, if the decimal places exceed, the digits will be automatically round down accordingly, without a failure occurring.
If the RateType is set to 0-Normal when calculating a pre-tax total, setting the TaxRate property larger or equal to 1 will cause the TaxCalc method to fail.
If the RateType is set to 0-Percentage when calculating a pre-tax total, setting the TaxRate property larger or equal to 100 will also cause the TaxCalc method to fail.
See Also
Value Property (TDBFinancialX)
Price Property (TDBFinancialX)
Total Property (TDBFinancialX)
RateType Property (TDBFinancialX)
RoundDigit Property (TDBFinancialX)
RoundType Property (TDBFinancialX)