X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Faccruals.php;h=c9233a058868f61ef074d2da853e24c224c0f19d;hb=f1fe277df787cdefb65142d66ce247b8757ba057;hp=60f38577c0fefb61f6acba6a9bc23ba4ba9d15de;hpb=ba1796b08e619c4bc10c4d6f5a1ed5039ee4d1dc;p=fa-stable.git diff --git a/gl/accruals.php b/gl/accruals.php index 60f38577..c9233a05 100644 --- a/gl/accruals.php +++ b/gl/accruals.php @@ -17,7 +17,7 @@ if ($use_date_picker) // Begin the UI include_once($path_to_root . "/includes/ui.inc"); -$_SESSION['page_title'] = _($help_context = _("Revenue / Cost Accruals")); +$_SESSION['page_title'] = _($help_context = "Revenue / Cost Accruals"); page($_SESSION['page_title'], false, false,'', $js); //-------------------------------------------------------------------------------------------------- @@ -35,7 +35,7 @@ if (isset($_POST['go']) || isset($_POST['show'])) } elseif (!is_date_in_fiscalyear($_POST['date_'])) { - display_error(_("The entered date is not in fiscal year.")); + display_error(_("The entered date is out of fiscal year or is closed for further data entry.")); set_focus('date_'); $input_error = 1; } @@ -64,7 +64,7 @@ if (isset($_POST['go']) || isset($_POST['show'])) if (!is_date_in_fiscalyears($lastdate, false)) { - display_error(_("Some of the period dates are outside the fiscal year. Create a new fiscal year first!")); + display_error(_("Some of the period dates are outside the fiscal year or are closed for further data entry. Create a new fiscal year first!")); set_focus('date_'); $input_error = 1; } @@ -130,6 +130,7 @@ if (isset($_POST['go']) || isset($_POST['show'])) 0, $ref, $am0 * -1); add_gl_trans(ST_JOURNAL, $id, $date, get_post('res_act'), get_post('dimension_id'), get_post('dimension2_id'), $ref, $am0); + add_audit_trail(ST_JOURNAL, $id, $date); add_comments(ST_JOURNAL, $id, $date, $memo); $Refs->save(ST_JOURNAL, $id, $ref); }