function add_audit_trail($trans_type, $trans_no, $trans_date, $descr='')
{
function add_audit_trail($trans_type, $trans_no, $trans_date, $descr='')
{
- . " (type, trans_no, user, gl_date, description)
+ . " (type, trans_no, user, gl_date, description, stamp)
VALUES(".db_escape($trans_type).", ".db_escape($trans_no).","
. $_SESSION["wa_current_user"]->user . ","
VALUES(".db_escape($trans_type).", ".db_escape($trans_no).","
. $_SESSION["wa_current_user"]->user . ","
db_query($sql, "Cannot add audit info");
// all audit records beside just inserted one should have gl_seq set to NULL
db_query($sql, "Cannot add audit info");
// all audit records beside just inserted one should have gl_seq set to NULL