Fixed bugs 312-314, imporved debug error handling, updated gettext template.
[fa-stable.git] / sales / includes / sales_db.inc
index db81a3e73ee3a532ba2f761aaf534dfb00da9188..5e6913d16b730795459d21f9d3c706ff68e9767b 100644 (file)
@@ -201,6 +201,8 @@ function update_parent_line($doc_type, $line_id, $qty_dispatched, $auto=false)
 {
        $doc_type = get_parent_type($doc_type);
 
+        $qty_dispatched = (float)$qty_dispatched;
+
 //     echo "update line: $line_id, $doc_type, $qty_dispatched";
        if ($doc_type==0)
                return false;