Merged changes from main CVS up to 2.1.5
[fa-stable.git] / purchasing / includes / purchasing_db.inc
index 850d22910f8821a4c87c851f96cbfb7fb55c7aa1..dc9ceccd20293ae65ef70634d37428d1daf61ee3 100644 (file)
@@ -32,12 +32,12 @@ include_once($path_to_root . "/purchasing/includes/db/suppliers_db.inc");
 // $amount is in SUPPLIERS'S currency
 
 function add_gl_trans_supplier($type, $type_no, $date_, $account, $dimension, $dimension2,  
-       $amount, $supplier_id, $err_msg="", $rate=0)
+       $amount, $supplier_id, $err_msg="", $rate=0, $memo="")
 {
        if ($err_msg == "")
                $err_msg = "The supplier GL transaction could not be inserted"; 
                
-       return add_gl_trans($type, $type_no, $date_, $account, $dimension, $dimension2, ""
+       return add_gl_trans($type, $type_no, $date_, $account, $dimension, $dimension2, $memo
                $amount, get_supplier_currency($supplier_id), 
                payment_person_types::supplier(), $supplier_id, $err_msg, $rate);
 }