From: Joe Hunt Date: Tue, 30 Jun 2009 07:38:27 +0000 (+0000) Subject: Tiny bug X-Git-Tag: v2.4.2~19^2~1346 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0e24cc3519d763421aa035cb2c7ddcc7ce45bf3e;p=fa-stable.git Tiny bug --- diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index 638fa83f..4756e0a8 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -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