--- so_taxes/so_taxes.module	2010-04-21 18:42:29.000000000 -0400
+++ so_taxes.module	2010-05-19 10:50:08.768317814 -0400
@@ -49,6 +49,14 @@
   if ($op == 'delete'){
     db_query('DELETE FROM {so_tax_applications} WHERE order_id = %d', $arg1->order_id);
   }
+  if ($op == 'total'){
+  	foreach($arg1->line_items as $line_item){
+  		if($line_item['type'] == 'tax_so-taxes'){
+  			return $line_item['amount'];
+  		}
+  	}
+
+  }
 }
 
 /**
@@ -134,6 +142,7 @@
   $tax->id = 'so-taxes';
   $tax->name = t('Taxes');
   $tax->summed = 1;
+  $tax->weight = -10;
   $tax->amount = $product_results['amount'] + $line_item_results['amount'];
   
   so_taxes_record_applications(array_merge($product_results['tax_records'], $line_item_results['tax_records']));
