You are here

function uc_taxes_calculate in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_taxes/uc_taxes.module \uc_taxes_calculate()
  2. 7.3 uc_taxes/uc_taxes.module \uc_taxes_calculate()

Calculates the taxes for an order based on enabled tax modules.

Parameters

$order: The full order object for the order want to calculate taxes for.

Return value

An array of taxes for the order.

4 calls to uc_taxes_calculate()
uc_cybersource_hop_form in payment/uc_cybersource/uc_cybersource.module
Define values to be posted to CyberSource.
uc_line_item_tax in uc_taxes/uc_taxes.module
Handles the tax line item.
uc_paypal_ec_submit_form_submit in payment/uc_paypal/uc_paypal.module
Additional submit handler for uc_cart_checkout_review_form().
uc_paypal_wps_form in payment/uc_paypal/uc_paypal.module
Returns the form elements for the Website Payments Standard form.

File

uc_taxes/uc_taxes.module, line 376

Code

function uc_taxes_calculate($order) {

  // Find any taxes specified by enabled modules.
  $taxes = module_invoke_all('calculate_tax', $order);
  return $taxes;
}