? ._uc_vat.module
? rounding.patch
Index: uc_vat.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_vat/uc_vat.module,v
retrieving revision 1.13
diff -u -p -r1.13 uc_vat.module
--- uc_vat.module	13 Jul 2009 18:58:12 -0000	1.13
+++ uc_vat.module	17 Aug 2009 13:57:49 -0000
@@ -137,7 +137,7 @@ function uc_vat_uc_object_options_form_s
             $value /= (1 + $tax->rate);
           }
         }
-        $form_state['values']['attributes'][$aid]['options'][$oid][$field] = $value;
+        $form_state['values']['attributes'][$aid]['options'][$oid][$field] = (floor($value * 1000)) / 1000;
       }
     }
   }
@@ -155,7 +155,9 @@ function uc_vat_nodeapi(&$node, $op, $a3
         foreach (array('list_price', 'cost', 'sell_price') as $field) {
           foreach (array_reverse($taxes) as $tax) {
             if (in_array($node->type, $tax->taxed_product_types) && ($tax->shippable == 0 || $node->shippable == 1)) {
-              $node->{$field} /= 1 + $tax->rate;
+              $value = $node->{$field};
+              $value /= 1 + $tax->rate;
+              $node->{$field} = (floor($value * 1000)) / 1000;
             }
           }
         }
