Fixed bug in checking selected GL accounts for tax types.
[fa-stable.git] / taxes / tax_types.php
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;