From: Joe Hunt Date: Wed, 24 Dec 2008 09:13:45 +0000 (+0000) Subject: Stamping the GL accounts with Exchange Variance X-Git-Tag: 2.3-final~1347 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=aeb34c5277eed786aa2de93a09dc38302624eebc;p=fa-stable.git Stamping the GL accounts with Exchange Variance --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index eaf91575..f332bb6f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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. diff --git a/gl/includes/db/gl_db_banking.inc b/gl/includes/db/gl_db_banking.inc index 237626a4..25f61a4b 100644 --- a/gl/includes/db/gl_db_banking.inc +++ b/gl/includes/db/gl_db_banking.inc @@ -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); } }