예제 #1
0
 private function prepareRelatedAccounts($p_accountID, $p_otherAccountID, $p_amount_client, &$p_debitLedgerAccountID, &$p_creditLedgerAccountID, &$p_amount)
 {
     $this->assertLedgerAccountExists($p_accountID, CloudBankConsts::LedgerAccountType_Account);
     $this->assertLedgerAccountExists($p_otherAccountID);
     CloudBankServer::SwapIf($p_amount_client < 0, $p_accountID, $p_otherAccountID, $p_debitLedgerAccountID, $p_creditLedgerAccountID);
     $p_amount = abs($p_amount_client);
 }