<?php
/**********************************************************************
***********************************************************************/
$page_security = 'SA_GLTRANSVIEW';
$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");

include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");

include_once($path_to_root . "/gl/includes/gl_db.inc");
include_once($path_to_root . "/gl/includes/db/print_cheques_db.inc");
include_once($path_to_root . "/admin/db/list_values_db.inc"); 
include_once($path_to_root . "/gl/includes/ui/gl_trans_view_ui.inc");
include_once($path_to_root . "/payroll/includes/db/emp_trans_db.inc");


$js = "";
if ($SysPrefs->use_popup_windows)
	$js .= get_js_open_window(900, 500);
page(_($help_context = "General Ledger Transaction Details"), true, false, "", $js);


if (!isset($_GET['type_id']) || !isset($_GET['trans_no'])) 
{ /*Script was not passed the correct parameters */

	display_note(_("The script must be called with a valid transaction type and transaction number to review the general ledger postings for."));
	end_page();
}


display_gl_view_transactions($_GET['type_id'], $_GET['trans_no']);
//end of while loop

is_voided_display($_GET['type_id'], $_GET['trans_no'], _("This transaction has been voided."));

end_page(true, false, false, $_GET['type_id'], $_GET['trans_no']);

?>
