From: Janusz Dobrowolski Date: Thu, 27 Mar 2008 14:17:33 +0000 (+0000) Subject: Fixed debit/credit entry check. X-Git-Tag: v2.4.2~19^2~2133 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4ad1b8743c32d8851c254a3a877ae19b2b30ace8;hp=d234b8793a83540e1db0d3d47614a31c39c6aa8c;p=fa-stable.git Fixed debit/credit entry check. --- 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;