Default parameter $rate should be 0
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 27 Oct 2008 11:02:56 +0000 (11:02 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 27 Oct 2008 11:02:56 +0000 (11:02 +0000)
sales/includes/sales_db.inc

index 1c6f67f648dd4f4321ce20281628e55821cf6d2f..1f5e0f31f7dc93c7e1c126b517566ddcd5769bd4 100644 (file)
@@ -35,7 +35,7 @@ function add_stock_move_customer($type, $stock_id, $trans_id, $location, $date_,
 // $amount is in CUSTOMER'S currency
 
 function add_gl_trans_customer($type, $type_no, $date_, $account, $dimension, $dimension2,
-       $amount, $customer_id, $err_msg="", $rate)
+       $amount, $customer_id, $err_msg="", $rate=0)
 {
        if ($err_msg == "")
                $err_msg = "The customer GL transaction could not be inserted";