X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fdb%2Fgrn_db.inc;h=6da5481641d2d0607f34c036a8fb521d60bce1e9;hb=eb5b2d3ee7cc0fca5ec63dfada65ecf23b693e85;hp=48410380c30de51f1686775181b02c37089b0b53;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/purchasing/includes/db/grn_db.inc b/purchasing/includes/db/grn_db.inc index 48410380..6da54816 100644 --- a/purchasing/includes/db/grn_db.inc +++ b/purchasing/includes/db/grn_db.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ //------------------- update average material cost ------------------------------------------ Joe Hunt Mar-03-2008 @@ -95,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();