- add_gl_balance($trans_type, $trans_no, $date_, -$total);
+ if ($currency == $to_currency)
+ add_gl_balance($trans_type, $trans_no, $date_, -$total);
+ else // in this case those are exchange variances between bank and home rates
+ add_gl_trans($trans_type, $trans_no, $date_, get_company_pref('exchange_diff_act'),
+ 0, 0, _("Exchange Variance"), -$total);