projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimized function get_trans_tax_details() by @apmuthu.
[fa-stable.git]
/
admin
/
view_print_transaction.php
diff --git
a/admin/view_print_transaction.php
b/admin/view_print_transaction.php
index 7e72bb33aa1e34fa5fd5fba3d7c166b1dd6717ae..0b4de2d25fde1dc98498a595e96ee33c0148a026 100644
(file)
--- a/
admin/view_print_transaction.php
+++ b/
admin/view_print_transaction.php
@@
-22,7
+22,7
@@
include_once($path_to_root . "/admin/db/transactions_db.inc");
include_once($path_to_root . "/reporting/includes/reporting.inc");
$js = "";
include_once($path_to_root . "/reporting/includes/reporting.inc");
$js = "";
-if ($use_popup_windows)
+if ($
SysPrefs->
use_popup_windows)
$js .= get_js_open_window(800, 500);
page(_($help_context = "View or Print Transactions"), false, false, "", $js);
$js .= get_js_open_window(800, 500);
page(_($help_context = "View or Print Transactions"), false, false, "", $js);
@@
-113,11
+113,11
@@
function handle_search()
if (check_valid_entries()==true)
{
$trans_ref = false;
if (check_valid_entries()==true)
{
$trans_ref = false;
- $sql = get_sql_for_view_transactions(
$_POST['filterType'], $_POST['FromTransNo'], $_POST['ToTransNo']
, $trans_ref);
+ $sql = get_sql_for_view_transactions(
get_post('filterType'), get_post('FromTransNo'), get_post('ToTransNo')
, $trans_ref);
if ($sql == "")
return;
if ($sql == "")
return;
- $print_type =
$_POST['filterType']
;
+ $print_type =
get_post('filterType')
;
$print_out = ($print_type == ST_SALESINVOICE || $print_type == ST_CUSTCREDIT || $print_type == ST_CUSTDELIVERY ||
$print_type == ST_PURCHORDER || $print_type == ST_SALESORDER || $print_type == ST_SALESQUOTE ||
$print_type == ST_CUSTPAYMENT || $print_type == ST_SUPPAYMENT || $print_type == ST_WORKORDER);
$print_out = ($print_type == ST_SALESINVOICE || $print_type == ST_CUSTCREDIT || $print_type == ST_CUSTDELIVERY ||
$print_type == ST_PURCHORDER || $print_type == ST_SALESORDER || $print_type == ST_SALESQUOTE ||
$print_type == ST_CUSTPAYMENT || $print_type == ST_SUPPAYMENT || $print_type == ST_WORKORDER);
@@
-161,4
+161,3
@@
end_form(2);
end_page();
end_page();
-?>