projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git]
/
purchasing
/
supplier_credit.php
diff --git
a/purchasing/supplier_credit.php
b/purchasing/supplier_credit.php
index 102184b03b48fd3364f2f9414dafd5a8ca374f6e..25c24e3b0afdf31771954d07b0ede86581ad817f 100644
(file)
--- a/
purchasing/supplier_credit.php
+++ b/
purchasing/supplier_credit.php
@@
-137,7
+137,7
@@
if (isset($_POST['AddGLCodeToTrans'])){
function check_data()
{
function check_data()
{
- global $total_grn_value, $total_gl_value;
+ global $total_grn_value, $total_gl_value
, $Refs
;
if (!$_SESSION['supp_trans']->is_valid_trans_to_post())
{
if (!$_SESSION['supp_trans']->is_valid_trans_to_post())
{
@@
-146,7
+146,7
@@
function check_data()
return false;
}
return false;
}
- if (!
references::
is_valid($_SESSION['supp_trans']->reference))
+ if (!
$Refs->
is_valid($_SESSION['supp_trans']->reference))
{
display_error(_("You must enter an credit note reference."));
set_focus('reference');
{
display_error(_("You must enter an credit note reference."));
set_focus('reference');
@@
-160,7
+160,7
@@
function check_data()
return false;
}
return false;
}
- if (!
references::
is_valid($_SESSION['supp_trans']->supp_reference))
+ if (!
$Refs->
is_valid($_SESSION['supp_trans']->supp_reference))
{
display_error(_("You must enter a supplier's credit note reference."));
set_focus('supp_reference');
{
display_error(_("You must enter a supplier's credit note reference."));
set_focus('supp_reference');