Fixed bug in checking selected GL accounts for tax types.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 30 Jan 2010 15:22:23 +0000 (15:22 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 30 Jan 2010 15:22:23 +0000 (15:22 +0000)
CHANGELOG.txt
taxes/tax_types.php

index b12489610a7d8c96386e69b4a0c3e024d26dd002..a4ba9945dada45fef3a7e69d1b8c283c769aa9ac 100644 (file)
@@ -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
index c76691830053dd31a44bf08aa1c9c30ef3ac1d4b..4dfebf7fbfe7d9e4afe9d70f00c6b41ce40ff9bf 100644 (file)
@@ -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;