Smaller bugfix in get_price()
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 21 Sep 2008 14:43:11 +0000 (14:43 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 21 Sep 2008 14:43:11 +0000 (14:43 +0000)
sales/includes/sales_db.inc

index f1892e32155a47d0ef8ecb5eff3903fe55100b41..ffefcd20ac128216028ef1b8dd691857c7c01cd6 100644 (file)
@@ -54,7 +54,7 @@ function get_price ($stock_id, $currency, $sales_type_id, $factor=null, $date=nu
 
        if ($factor === null) 
        {
-               $myrow = get_sales_type(get_post('sales_type_id'));
+               $myrow = get_sales_type($sales_type_id);
                $factor = $myrow['factor'];
        }