`DTA::addExchange`

Adds an exchange. First the account data for the receiver of the exchange is set. In the case the DTA file contains credits, this is the payment receiver.

       require_once '/DTA.php';

         boolean
         DTA::addExchange

         array
         $account_receiver

         double
         $amount

         array
         $purposes

         array

          $account_sender = array()

&title.desc;

In the other case (the DTA file contains debits), this is the account, from which money is taken away. If the sender is not specified, values of the file sender are used by default.

Account data for receiver and sender contain name Name. Maximally 27 chars are allowed. bank_code Bank code. account_number Account number. additional_name If necessary, additional line for name (maximally 27 chars).

&title.param;

&type.array; `$account_receiver`

- Receiver's account data.

`double` `$amount`

- Amount of money in this exchange. Currency: EURO

&type.array; `$purposes`

- Array of up to 14 lines (maximally 27 chars each) for description of the exchange. A string is accepted as well.

&type.array; `$account_sender`

- Sender's account data.

&title.throws;

throws no exceptions thrown

&title.note; ¬e.notstatic;