? uc_fee-taxed-line-item.patch
? uc_fee-weight.patch
Index: uc_fee.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_fee/uc_fee.install,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 uc_fee.install
--- uc_fee.install	26 May 2009 07:27:30 -0000	1.1.2.5
+++ uc_fee.install	2 Apr 2010 21:05:19 -0000
@@ -170,6 +170,7 @@ function uc_fee_schema() {
 function uc_fee_install() {
   // install the database table
   $created = drupal_install_schema('uc_fee');
+  variable_set('uc_li_fee_weight', 6);
   if ($created[0]['success']) {
     drupal_set_message(t('Ubercart Fee module installed successfully.'));
   }
@@ -208,4 +209,13 @@ function uc_fee_update_6002() {
   ));
   $ret[] = update_sql('UPDATE uc_fees SET type = 1');
   return $ret;
-}
\ No newline at end of file
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function uc_fee_update_6003() {
+  $ret = array();
+  variable_set('uc_li_fee_weight', 6);
+  return $ret;
+}
Index: uc_fee.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_fee/uc_fee.module,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 uc_fee.module
--- uc_fee.module	11 Feb 2010 13:02:27 -0000	1.1.2.9
+++ uc_fee.module	2 Apr 2010 21:05:20 -0000
@@ -254,7 +254,7 @@ function uc_fee_line_item() {
     'id' => 'fee',
     'title' => t('Fee'),
     'callback' => 'uc_fee_line_item_fee',
-    'weight' => 9,
+    'weight' => 6,
     'stored' => TRUE,
     'default' => FALSE,
     'calculated' => TRUE,
@@ -323,7 +323,7 @@ function uc_fee_line_item_fee($op, $orde
       $script = '';
       foreach ($fees as $fee) {
         if ($fee->price > 0) {
-          $weight = variable_get('uc_li_fee_weight', 7) + ($fee->weight / 10);
+          $weight = variable_get('uc_li_fee_weight', 6) + ($fee->weight / 10);
           $script .= "set_line_item('uc_fee_". $fee->fid ."', '". $fee->name ."', ". $fee->price .", + ". $weight .", 1, false);\n";
         }
       }
@@ -344,7 +344,7 @@ function uc_fee_line_item_fee($op, $orde
           'id' => 'fee',
           'title' => $fee->name,
           'amount' => $fee->amount,
-          'weight' => variable_get('uc_li_fee_weight', 7) + $fee->weight / 10,
+          'weight' => variable_get('uc_li_fee_weight', 6) + $fee->weight / 10,
         );
       }
       return $lines;
