@@ 1605-1611 (lines=7) @@ | ||
1602 | $from['id'] = $post_array['id']; |
|
1603 | $from['account_currency'] = $post_array['account_currency']; |
|
1604 | $from['accountid'] = $post_array['fromaccountid']; |
|
1605 | if ($account['posttoexternal'] == 1) { |
|
1606 | $from['credit'] = abs($post_array['credit']); |
|
1607 | $from['payment_type'] = '0'; |
|
1608 | } else { |
|
1609 | $from['credit'] = abs($post_array['credit']); |
|
1610 | $from['payment_type'] = 'debit'; |
|
1611 | } |
|
1612 | $from['posttoexternal'] = $account['posttoexternal']; |
|
1613 | ||
1614 | $from['notes'] = $post_array['notes']; |
|
@@ 1619-1625 (lines=7) @@ | ||
1616 | $to['id'] = $toid; |
|
1617 | $to['account_currency'] = $post_array['account_currency']; |
|
1618 | $to['accountid'] = $post_array['toaccountid']; |
|
1619 | if ($toaccountinfo['posttoexternal'] == 0) { |
|
1620 | $to['credit'] = abs($post_array['credit']); |
|
1621 | $to['payment_type'] = '0'; |
|
1622 | } else { |
|
1623 | $to['credit'] = abs($post_array['credit']); |
|
1624 | $to['payment_type'] = 'debit'; |
|
1625 | } |
|
1626 | $to['notes'] = $post_array['notes']; |
|
1627 | $to['action'] = 'save'; |
|
1628 | $response = $this->user_model->user_fund_transfer($from); |