From 4ad1b8743c32d8851c254a3a877ae19b2b30ace8 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 27 Mar 2008 14:17:33 +0000 Subject: [PATCH] Fixed debit/credit entry check. --- gl/gl_journal.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gl/gl_journal.php b/gl/gl_journal.php index 31a4da95..e6f1bcc6 100644 --- a/gl/gl_journal.php +++ b/gl/gl_journal.php @@ -137,8 +137,7 @@ function check_item_data() return false; } -// if (!(!strlen($_POST['AmountDebit']) ^ !strlen($_POST['AmountCredit']))) - if (input_num('AmountDebit')!=0 && input_num('AmountCredit')!=0) + if (!(input_num('AmountDebit')!=0 ^ input_num('AmountCredit')!=0) ) { display_error(_("You must enter either a debit amount or a credit amount.")); return false; -- 2.30.2