eZPublish  3.8
vatrules.php File Reference

Functions

 compareVatRules ($a, $b)
 Auxiliary function used to sort VAT rules. More...
 
 findErrors ($vatRules)
 Find errors in VAT charging rules. More...
 

Variables

 $errors = findErrors( $vatRules )
 
 $http =& eZHttpTool::instance()
 
 $module =& $Params["Module"]
 
 $path = array()
 
 $path []
 
 $Result = array()
 
 $Result ['path'] =& $path
 
 $Result ['content'] =& $tpl->fetch( "design:shop/vatrules.tpl" )
 
 $tpl =& templateInit()
 
if($http->hasPostVariable("AddRuleButton"))
if($http->hasPostVariable("RemoveRuleButton"))
if($http->hasPostVariable("SaveCategoriesButton")) 
$vatRules = eZVatRule::fetchList()
 

Function Documentation

compareVatRules (   $a,
  $b 
)

Auxiliary function used to sort VAT rules.

Rules are sorted by country and categories. Any specific categories list or country is considered less than '*' (Any).

findErrors (   $vatRules)

Find errors in VAT charging rules.

Returns
list of errors, or false if no errors found.

Variable Documentation

$errors = findErrors( $vatRules )
$http =& eZHttpTool::instance()
$module =& $Params["Module"]
$path = array()
$path[]
Initial value:
= array( 'text' => ezi18n( 'kernel/shop/vatrules', 'VAT rules' ),
'url' => false )
$Result = array()
$Result['path'] =& $path
$Result['content'] =& $tpl->fetch( "design:shop/vatrules.tpl" )
$tpl =& templateInit()
if ($http->hasPostVariable("AddRuleButton")) if ($http->hasPostVariable("RemoveRuleButton")) if ($http->hasPostVariable("SaveCategoriesButton")) $vatRules = eZVatRule::fetchList()