From d9b8049cdb635c2c516180298272e0ae4ee4a500 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 30 Jan 2010 15:22:23 +0000 Subject: [PATCH] Fixed bug in checking selected GL accounts for tax types. --- CHANGELOG.txt | 4 +++- taxes/tax_types.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b124896..a4ba994 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -23,7 +23,9 @@ $ -> Affected files + Added Purchase tax account in en_US-new.sql and en_US-demo.sql $ /sql/en_US-demo.sql /sql/en_US_new.sql - +# Fixed bug in gl accounts checks + /taxes/tax_types.php + 30-Jan-2010 Janusz Dobrowolski # [0000194] Fixed tax records from journal entry (voiding problem) $ /gl/includes/db/gl_db_trans.inc diff --git a/taxes/tax_types.php b/taxes/tax_types.php index c766918..4dfebf7 100644 --- a/taxes/tax_types.php +++ b/taxes/tax_types.php @@ -38,7 +38,7 @@ function can_process() return false; } - if (!is_tax_gl_unique(get_post('sales_gl_code', 'purchasing_gl_code', $selected_id))) { + if (!is_tax_gl_unique(get_post('sales_gl_code'), get_post('purchasing_gl_code'), $selected_id)) { display_error( _("Selected GL Accounts cannot be used by another tax type.")); set_focus('sales_gl_code'); return false; -- 2.30.2