Bug in uc_taxes

Committee or Team: 
Web Design
Component: 
Drupal configuration
Version: 
Drupal 6 Test
Date: 
01/28/2011
Author(s): 
Walt Daniels
wroehrig
Details: 

Applied the patch in http://drupal.org/node/898776 #9 to uc_taxes.module, part of the ubercart core and not committed yet. Have submitted a confirmation that it works to the comment so that it gets committed to core.

--- uc_taxes.module.orig	2010-09-14 14:35:43.000000000 -0400+++ uc_taxes.module	2010-09-14 14:36:45.000000000 -0400@@ -497,8 +497,22 @@ function uc_taxes_apply_item_tax($item, // Tax products if they are of a taxed type and if it is shippable if// the tax only applies to shippable products.if (in_array($node->type, $tax->taxed_product_types) && ($tax->shippable == 0 || $node->shippable == 1)) {-    return $item->price * $item->qty;+    $context = array(+      'revision' 	=> 'altered',+      'type' 		=> 'cart_item',+      'subject' 	=> array(+        'cart_item' => $item,+        'node' 		=> node_load($item->nid),+      ),+    );+    $price_info = array(+      'price' 	=> $item->price,+      'qty' 	=> $item->qty,+    );++    return uc_price($price_info, $context);}+}

/** 

Groups: