X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_journal.php;h=e6f1bcc6b0db243d615090de2e3e27e52a551d59;hb=4ad1b8743c32d8851c254a3a877ae19b2b30ace8;hp=b5a2c1cc287a05f0b400a9abb63df99ba6b0844e;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index b5a2c1cc..e6f1bcc6 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -13,14 +13,15 @@ include_once($path_to_root . "/gl/includes/ui/gl_journal_ui.inc"); include_once($path_to_root . "/gl/includes/gl_db.inc"); include_once($path_to_root . "/gl/includes/gl_ui.inc"); -$js = get_js_form_entry("CodeID2", "code_id", "AmountDebit"); +$js = ''; if ($use_popup_windows) $js .= get_js_open_window(800, 500); if ($use_date_picker) $js .= get_js_date_picker(); -$js .= get_js_set_focus('CodeID2'); -page(_("Journal Entry"), false, false, "setFocus()", $js); +set_focus('CodeID2'); + +page(_("Journal Entry"), false, false,'', $js); //----------------------------------------------------------------------------------------------- @@ -136,7 +137,7 @@ function check_item_data() return false; } - if (!(!strlen($_POST['AmountDebit']) ^ !strlen($_POST['AmountCredit']))) + if (!(input_num('AmountDebit')!=0 ^ input_num('AmountCredit')!=0) ) { display_error(_("You must enter either a debit amount or a credit amount.")); return false;