Cleanup: removed reference to nonexisiting company setting.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 4 Jan 2015 11:32:16 +0000 (12:32 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 5 Jan 2015 08:45:17 +0000 (09:45 +0100)
gl/includes/db/gl_db_trans.inc

index 41c783a454a2ffc86c20eb39a7a843628d927055..372c516199c9c9d1ed2a06f7b6981fd2c894cf17 100644 (file)
@@ -42,7 +42,7 @@ function add_gl_trans($type, $trans_id, $date_, $account, $dimension, $dimension
                else
                        $memo_ = $_SESSION["wa_current_user"]->username . " - " . $memo_;
        }
-       if (!is_subledger_account($account) && $account==get_company_pref('deffered_income_act') || $account==get_company_pref('grn_clearing_act'))
+       if (!is_subledger_account($account) || $account==get_company_pref('grn_clearing_act'))
                $person_id = $person_type_id = null;
 
        $sql = "INSERT INTO ".TB_PREF."gl_trans ( type, type_no, tran_date,