X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fbanking.inc;h=0641dd59d2dfd22624e3d9f96b9ec44d9b3a4f32;hb=1734935f14ed161f322431481ed483dd2274f464;hp=21dbb8f6fc85516bc819ce47427cf5d00993e835;hpb=6a9fe12bd07ac318b986ba3ef470562524df465d;p=fa-stable.git diff --git a/includes/banking.inc b/includes/banking.inc index 21dbb8f6..0641dd59 100644 --- a/includes/banking.inc +++ b/includes/banking.inc @@ -163,7 +163,8 @@ function exchange_variation($pyt_type, $pyt_no, $type, $trans_no, $pyt_date, $am { $trans = get_customer_trans($trans_no, $type); $pyt_trans = get_customer_trans($pyt_no, $pyt_type); - $ar_ap_act = $trans['receivables_account']; + $cust_accs = get_branch_accounts($trans['branch_code']); + $ar_ap_act = $cust_accs['receivables_account']; $person_id = $trans['debtor_no']; $curr = $trans['curr_code']; $date = sql2date($trans['tran_date']);