[0000078] Opened Exchange rate for editing (without storing) in sales/purchasing...
[fa-stable.git] / purchasing / includes / purchasing_db.inc
index 9ab331fe819bf33e0969f66eb4d0059013f1b0b0..a33c81b82fff13e404453b4e00888e608f651d2e 100644 (file)
@@ -23,14 +23,14 @@ 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="")
+       $amount, $supplier_id, $err_msg="", $rate=0)
 {
        if ($err_msg == "")
                $err_msg = "The supplier GL transaction could not be inserted"; 
                
        return add_gl_trans($type, $type_no, $date_, $account, $dimension, $dimension2, "", 
                $amount, get_supplier_currency($supplier_id), 
-               payment_person_types::supplier(), $supplier_id, $err_msg);
+               payment_person_types::supplier(), $supplier_id, $err_msg, $rate);
 }
 
 //----------------------------------------------------------------------------------------