X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fdb%2Fgrn_db.inc;h=6da5481641d2d0607f34c036a8fb521d60bce1e9;hb=eb5b2d3ee7cc0fca5ec63dfada65ecf23b693e85;hp=0008af168ea94f60179d3d8638558b54c6960a89;hpb=53ce24049be7e47179b98f69af45352001855f50;p=fa-stable.git diff --git a/purchasing/includes/db/grn_db.inc b/purchasing/includes/db/grn_db.inc index 0008af16..6da54816 100644 --- a/purchasing/includes/db/grn_db.inc +++ b/purchasing/includes/db/grn_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------- update average material cost ------------------------------------------ Joe Hunt Mar-03-2008 function update_average_material_cost($supplier, $stock_id, $price, $qty, $date, $adj_only=false) @@ -86,7 +95,9 @@ function add_grn(&$po, $date_, $reference, $location) } /*quantity received is != 0 */ } /*end of order_line loop */ - references::save_last($reference, 25); + references::save(25, $grn, $reference); + + add_audit_trail(25, $grn, $date_); commit_transaction();