$def_coy = 1;

$tb_pref_counter = 2;

I went in and programmatically changed it to a $def_coy = 0;  this seems to fix the problem.

Nevertheless, it appears that this is a bug because there is the possibility to have the user get into a situation where they may not be able log in. 

There is an option to select which is your start up company and when this is set other than 0 it will create this problem. (BUG)

Here is the config_db.php

$db_connections = array (
    0 => array ('name' => 'Training Co.',
        'host' => 'localhost',
        'dbuser' => 'user',
        'dbpassword' => 'pwd',
        'dbname' => 'db',
        'tbpref' => '0_'),

    1 => array ('name' => 'SCF Coop',
        'host' => 'localhost',
        'dbuser' => 'user',
        'dbpassword' => 'pwd',
        'dbname' => 'db',
        'tbpref' => '1_')

    );

I have 0_ company = Training company
I have 1_ company = our working company.

when I try to login i select Training Co.  I have defined a new administrator account.

I have enabled the sql logging...

Instead of validating against 0_ company FA selects company 1_ company, which is incorrect...

SQL..

SELECT * FROM 1_users WHERE user_id = 'tezo' AND password='XXXXXXXXXXX'



Incorrect Password

The user and password combination is not valid for the system.

If you are not an authorized user, please contact your system administrator to obtain an account to enable you to use the system.

Does any body have a fix for this...

4

(2 replies, posted in Setup)

Thanks that did it...

In certain parts of the world one decimal place is not enough for taxes.

It was assumed that in the preference settings for the number of decimal places would apply to at least everything...

There is a big difference between... taxes of 9.750 vs. 9.8...

Is there some consideration for fixing this?

Tezo