Passing error message parameter err_msg to low level db functions from caller does...
[fa-stable.git] / purchasing / includes / purchasing_db.inc
index 745b175b2ec375260be392d531303f1f5aa253db..cffd2210d5320bf9d71bd1ebe0d79e7d4c4ffe60 100644 (file)
@@ -33,14 +33,11 @@ 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, $memo="")
+       $amount, $supplier_id, $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, $memo, 
                $amount, get_supplier_currency($supplier_id), 
-               PT_SUPPLIER, $supplier_id, $err_msg, $rate);
+               PT_SUPPLIER, $supplier_id, $rate);
 }
 
 //----------------------------------------------------------------------------------------