Tiny bug
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 30 Jun 2009 07:38:27 +0000 (07:38 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 30 Jun 2009 07:38:27 +0000 (07:38 +0000)
sales/includes/sales_db.inc

index 638fa83fea2deaff61aaadc31e4f02a2efb3018b..4756e0a80cd35896dcdd397e8777dfd93fe7d310 100644 (file)
@@ -115,7 +115,11 @@ function get_price ($stock_id, $currency, $sales_type_id, $factor=null, $date=nu
        {
                $price = get_calculated_price($stock_id, $add_pct);
                if ($currency == $home_curr)
+               {
+                       if ($factor != 0)
+                               $price *= $factor;
                        return round_to_nearest($price, $round_to);
+               }       
        }               
        if ($factor == 0) return false; // auto price calculations off