Stamping the GL accounts with Exchange Variance
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 24 Dec 2008 09:13:45 +0000 (09:13 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 24 Dec 2008 09:13:45 +0000 (09:13 +0000)
CHANGELOG.txt
gl/includes/db/gl_db_banking.inc

index eaf91575b8c837e578727be81abb0f9f359f01fa..f332bb6f25799bcea3a6739b384d79199648de2c 100644 (file)
@@ -21,7 +21,7 @@ $ -> Affected files
 
 23-Dec-2008 Joe Hunt
 # Fixed an accounting sync in GL when adding bank account transactions (no customer/supplier trans)
-$ /gl/includes/db/bl_db_banking.inc
+$ /gl/includes/db/gl_db_banking.inc
 
 22-Dec-2008 Janusz Dobrowolski
 # [0000102] Credit note was stored without entered shippment cost and comment.
index 237626a4f76973153c33d2b98a8e6d427aa199b0..25f61a4be78b15bc3e98806df5b94ce71c1778b1 100644 (file)
@@ -24,10 +24,10 @@ function add_exchange_variation($trans_type, $trans_no, $date_, $account,
                        $trans_no = get_next_trans_no($trans_type);
                if ($person_type_id == null)
                        $person_type_id = payment_person_types::misc();
-               add_gl_trans($trans_type, $trans_no, $date_, $account, 0, 0, "",
+               add_gl_trans($trans_type, $trans_no, $date_, $account, 0, 0, _("Exchange Variance"),
                -$diff, null, $person_type_id, $person_id);
-       add_gl_trans($trans_type, $trans_no, $date_, get_company_pref('exchange_diff_act'), 0, 0, "",
-               $diff, null, $person_type_id, $person_id);
+       add_gl_trans($trans_type, $trans_no, $date_, get_company_pref('exchange_diff_act'), 0, 0, 
+               _("Exchange Variance"), $diff, null, $person_type_id, $person_id);
        }       
 }