You are here

function uc_taxes_action_apply_tax in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_taxes/uc_taxes_workflow.inc \uc_taxes_action_apply_tax()

Action callback to calculate a tax.

Parameters

$order: The order object being considered.

$tax: The tax rule calculating the amount.

Return value

The line item array representing the amount of tax.

2 calls to uc_taxes_action_apply_tax()
hook_calculate_tax in docs/hooks.php
Calculates tax line items for an order.
uc_taxes_calculate_tax in uc_taxes/uc_taxes.module
Calculates the amount and types of taxes that apply to an order.
2 string references to 'uc_taxes_action_apply_tax'
uc_taxes_ca_action in uc_taxes/uc_taxes.ca.inc
Implements hook_action_info().
_ca_convert_actions in ca/ca.admin.inc
Helper function for converting Ubercart's Workflow-ng actions.

File

uc_taxes/uc_taxes.ca.inc, line 77
This file contains the Conditional Action hooks and functions necessary to make the tax related entity, conditions, events, and actions work.

Code

function uc_taxes_action_apply_tax($order, $tax) {
  return uc_taxes_apply_tax($order, $tax);
}