Some smaller fixes (see CHANGELOG)
[fa-stable.git] / sales / includes / sales_db.inc
index 5c9d1142a9b79d475957f4769036236b7a4ab4f4..f368b402180d1c1ba544e4e27e6e24ebad6e306b 100644 (file)
@@ -52,7 +52,7 @@ function get_price ($stock_id, $currency, $sales_type_id, $factor=null, $date=nu
        if ($date == null)
            $date = Today();
 
-       if ($factor == null) 
+       if ($factor === null) 
        {
                $myrow = get_sales_type(get_post('sales_type_id'));
                $factor = $myrow['factor'];
@@ -169,7 +169,7 @@ function update_parent_line($doc_type, $line_id, $qty_dispatched)
 {
        $doc_type = get_parent_type($doc_type);
 
-       //echo "update line: $line_id, $doc_type, $qty_dispatch";
+//     echo "update line: $line_id, $doc_type, $qty_dispatched";
        if ($doc_type==0)
                return false;
        else {