projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed syntax typo.
[fa-stable.git]
/
reporting
/
rep203.php
diff --git
a/reporting/rep203.php
b/reporting/rep203.php
index 3ad684adc96085c7afd7b27bdb3a8c530d900437..ffe28416f75f70167b43550c00872677e3a630e3 100644
(file)
--- a/
reporting/rep203.php
+++ b/
reporting/rep203.php
@@
-53,7
+53,7
@@
function getTransactions($supplier, $date)
function print_payment_report()
{
function print_payment_report()
{
- global $path_to_root;
+ global $path_to_root
, $systypes_array
;
$to = $_POST['PARAM_0'];
$fromsupp = $_POST['PARAM_1'];
$to = $_POST['PARAM_0'];
$fromsupp = $_POST['PARAM_1'];
@@
-65,14
+65,14
@@
function print_payment_report()
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
- if ($fromsupp ==
reserved_words::get_all_numeric()
)
+ if ($fromsupp ==
ALL_NUMERIC
)
$from = _('All');
else
$from = get_supplier_name($fromsupp);
$dec = user_price_dec();
$from = _('All');
else
$from = get_supplier_name($fromsupp);
$dec = user_price_dec();
- if ($currency ==
reserved_words::get_all()
)
+ if ($currency ==
ALL_TEXT
)
{
$convert = true;
$currency = _('Balances in Home Currency');
{
$convert = true;
$currency = _('Balances in Home Currency');
@@
-103,7
+103,7
@@
function print_payment_report()
$sql = "SELECT supplier_id, supp_name AS name, curr_code, ".TB_PREF."payment_terms.terms FROM ".TB_PREF."suppliers, ".TB_PREF."payment_terms
WHERE ";
$sql = "SELECT supplier_id, supp_name AS name, curr_code, ".TB_PREF."payment_terms.terms FROM ".TB_PREF."suppliers, ".TB_PREF."payment_terms
WHERE ";
- if ($fromsupp !=
reserved_words::get_all_numeric()
)
+ if ($fromsupp !=
ALL_NUMERIC
)
$sql .= "supplier_id=$fromsupp AND ";
$sql .= "".TB_PREF."suppliers.payment_terms = ".TB_PREF."payment_terms.terms_indicator
ORDER BY supp_name";
$sql .= "supplier_id=$fromsupp AND ";
$sql .= "".TB_PREF."suppliers.payment_terms = ".TB_PREF."payment_terms.terms_indicator
ORDER BY supp_name";
@@
-131,7
+131,7
@@
function print_payment_report()
else
$rate = 1.0;
$rep->NewLine(1, 2);
else
$rate = 1.0;
$rep->NewLine(1, 2);
- $rep->TextCol(0, 1,
systypes::name($trans['type'])
);
+ $rep->TextCol(0, 1,
$systypes_array[$trans['type']]
);
$rep->TextCol(1, 2, $trans['supp_reference']);
if ($trans['type'] == 20)
$rep->DateCol(2, 3, $trans['due_date'], true);
$rep->TextCol(1, 2, $trans['supp_reference']);
if ($trans['type'] == 20)
$rep->DateCol(2, 3, $trans['due_date'], true);