- if (add_exchange_variation($trans_no1, $date_, $to_account, $to_gl_account,
- $currency, PT_MISC, $person_id))
- $exchanged = true;
- }
- if ($exchanged == true)
- {
- $ref1 = $Refs->get_next(ST_JOURNAL, null, $date_);
- $Refs->save(ST_JOURNAL, $trans_no1, $ref1);
- add_audit_trail(ST_JOURNAL, $trans_no1, $date_);
+ add_exchange_variation($trans_no1, $date_, $to_account, $to_gl_account,
+ $currency, PT_MISC, $person_id);