Class tax

Description

Tax class to perform the majority of tax functions and calculations in ILance.

  • author: ILance
  • version: $Revision: 1.0.0 $

Located in /api/class.tax.inc.php (line 23)


	
			
Method Summary
string fetch_amount ([integer $userid = 0], integer $total, string $taxtype, [bool $formatted = 0])
bool is_taxable ([integer $userid = 0], string $taxtype)
Methods
fetch_amount (line 35)

Fetch the total amount (with taxes applied) based on a user, taxtype and an amount to calculate by

  • return: Returns formatted or unformatted version of the total amount after taxes applied.
string fetch_amount ([integer $userid = 0], integer $total, string $taxtype, [bool $formatted = 0])
  • integer $userid: user id
  • integer $total: amount to add taxes to (ie: 5.00)
  • string $taxtype: tax type logic to work with
  • bool $formatted: determine if we want the returning amount formatted with currency details or not (default not)
is_taxable (line 98)

Function to determine if a particular user based on a tax type is actually taxable within the system

  • return: Returns true if taxable, false if not.
bool is_taxable ([integer $userid = 0], string $taxtype)
  • integer $userid: user id
  • string $taxtype: tax type logic to work with

Documentation generated on Mon, 08 Aug 2011 17:40:56 +0200 by phpDocumentor 1.4.1