- . " (type, trans_no, user, fiscal_year, gl_date, description, gl_seq)
- VALUES($trans_type, $trans_no,"
- . $_SESSION["wa_current_user"]->user. ","
- . get_company_pref('f_year') .","
- . "'". date2sql($trans_date) ."',"
- . db_escape($descr). ", 0)";
+ . " (type, trans_no, user, gl_date, description, stamp)
+ VALUES(".db_escape($trans_type).", ".db_escape($trans_no).","
+ . $_SESSION["wa_current_user"]->user . ","
+ . "'$date',". db_escape($descr). ", CURRENT_TIMESTAMP)";