X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_journal.php;h=31a4da95d3ec962aa6293c5224a8be74e00adee4;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=b5a2c1cc287a05f0b400a9abb63df99ba6b0844e;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/gl/gl_journal.php b/gl/gl_journal.php index b5a2c1cc..31a4da95 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,8 @@ function check_item_data() return false; } - if (!(!strlen($_POST['AmountDebit']) ^ !strlen($_POST['AmountCredit']))) +// 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;