include_once($path_to_root . "/includes/banking.inc");
$js = "";
-if ($use_date_picker)
+if (user_use_date_picker())
$js .= get_js_date_picker();
page(_($help_context = "Revaluation of Currency Accounts"), false, false, "", $js);
if (isset($_GET['AddedID']))
{
$trans_no = $_GET['AddedID'];
+ $JE = $_GET['JE'];
$trans_type = ST_JOURNAL;
if ($trans_no == 0)
display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Journal Entries for this Transfer")));
}
+ if ($JE > 0)
+ display_notification_centered(sprintf(_("%d Journal Entries for AR/AP accounts have been added"), $JE));
//display_footer_exit();
}
}
if (!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');
return false;
}
if (!check_data())
return;
- $trans_no = add_exchange_variation_all($_POST['date'], $_POST['ref'], $_POST['memo_']);
+ $trans = add_exchange_variation_all($_POST['date'], $_POST['ref'], $_POST['memo_']);
- meta_forward($_SERVER['PHP_SELF'], "AddedID=$trans_no");
+ meta_forward($_SERVER['PHP_SELF'], "AddedID=".$trans[0]."&JE=".$trans[1]);
//clear_data();
}
end_page();
-?>