projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User side price/qty input formatting via onblur handler.
[fa-stable.git]
/
purchasing
/
supplier_trans_gl.php
diff --git
a/purchasing/supplier_trans_gl.php
b/purchasing/supplier_trans_gl.php
index cc78626998f5f2d480ec7707bdd2ab4565050bd7..fdec05f83f6120e926de3eb23d8d735f5fe538aa 100644
(file)
--- a/
purchasing/supplier_trans_gl.php
+++ b/
purchasing/supplier_trans_gl.php
@@
-3,10
+3,10
@@
$page_security=5;
$path_to_root="..";
$page_security=5;
$path_to_root="..";
-include($path_to_root . "/purchasing/includes/supp_trans_class.inc");
-include($path_to_root . "/includes/session.inc");
+include
_once
($path_to_root . "/purchasing/includes/supp_trans_class.inc");
+include
_once
($path_to_root . "/includes/session.inc");
-include($path_to_root . "/purchasing/includes/purchasing_ui.inc");
+include
_once
($path_to_root . "/purchasing/includes/purchasing_ui.inc");
$js = "";
if ($use_date_picker)
$js .= get_js_date_picker();
$js = "";
if ($use_date_picker)
$js .= get_js_date_picker();
@@
-54,7
+54,7
@@
if (isset($_POST['AddGLCodeToTrans'])){
{
$myrow = db_fetch_row($result);
$gl_act_name = $myrow[1];
{
$myrow = db_fetch_row($result);
$gl_act_name = $myrow[1];
- if (!
is_numeric($_POST['amount']
))
+ if (!
check_num('amount'
))
{
display_error(_("The amount entered is not numeric. This line cannot be added to the transaction."));
$input_error = true;
{
display_error(_("The amount entered is not numeric. This line cannot be added to the transaction."));
$input_error = true;
@@
-64,7
+64,8
@@
if (isset($_POST['AddGLCodeToTrans'])){
if ($input_error == false)
{
$_SESSION['supp_trans']->add_gl_codes_to_trans($_POST['gl_code'], $gl_act_name,
if ($input_error == false)
{
$_SESSION['supp_trans']->add_gl_codes_to_trans($_POST['gl_code'], $gl_act_name,
- $_POST['dimension_id'], $_POST['dimension2_id'], $_POST['amount'], $_POST['memo_']);
+ $_POST['dimension_id'], $_POST['dimension2_id'],
+ input_num('amount'), $_POST['memo_']);
clear_fields();
}
}
clear_fields();
}
}