X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fpurchasing_db.inc;h=dc9ceccd20293ae65ef70634d37428d1daf61ee3;hb=61c780745e4743d3bf4c8ef8d23ad2f34ddc121b;hp=850d22910f8821a4c87c851f96cbfb7fb55c7aa1;hpb=64ece402c019dd54bd6ca9882fd300362ef42871;p=fa-stable.git diff --git a/purchasing/includes/purchasing_db.inc b/purchasing/includes/purchasing_db.inc index 850d2291..dc9ceccd 100644 --- a/purchasing/includes/purchasing_db.inc +++ b/purchasing/includes/purchasing_db.inc @@ -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); }