`DTAZV::addExchange`

Adds an exchange.

       require_once '/DTAZV.php';

         boolean
         DTAZV::addExchange

         array
         $account_receiver

         double
         $amount

         array
         $purposes

         array

          $account_sender = array()

&title.desc;

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. 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 sender contain name Sender's name. Maximally 35 chars are allowed. additional_name Sender's additional name (max. 35 chars) street Sender's street/PO Box (max. 35 chars) city Sender's city (max. 35 chars) bank_code Sender's bank code (8-digit BLZ) account_number Sender's account number (10-digit)

Account data for receiver contain name Receiver's name. Maximally 35 chars are allowed. additional_name Receiver's additional name (max. 35 chars) street Receiver's street/PO Box (max. 35 chars) city Receiver's city (max. 35 chars) bank_code Receiver's bank code (8 or 11 char BIC) account_number Receiver's account number (up to 34 char IBAN)

&title.param;

&type.array; `$account_receiver`

- Receiver's account data.

`double` `$amount`

- Amount of money (Euro) in this exchange.

&type.array; `$purposes`

- Array of up to 4 lines (max. 35 chars each) for description of the exchange.

&type.array; `$account_sender`

- Sender's account data.

&title.throws;

throws no exceptions thrown

&title.note; ¬e.notstatic;