X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fgl_journal.php;h=e6f1bcc6b0db243d615090de2e3e27e52a551d59;hb=4ad1b8743c32d8851c254a3a877ae19b2b30ace8;hp=31a4da95d3ec962aa6293c5224a8be74e00adee4;hpb=29685c93a974b2ea8def79345567d7f31425ef9f;p=fa-stable.git 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;