Customer Payment: fixed missing charge amount during edition, fixed submit button...
[fa-stable.git] / includes / banking.inc
index 21dbb8f6fc85516bc819ce47427cf5d00993e835..0641dd59d2dfd22624e3d9f96b9ec44d9b3a4f32 100644 (file)
@@ -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']);