It is necessary to specify in the tradeConfirmationDocument the total commission to be charged to the client as a result of the trade and paid as part of the settlement amount. The initial decision is made via a variant of the booleanInputBox:
The "Boolean Input Box" (Variant)
The choices are whether to calculate or input the commission.
If "Calculate" is selected, the commission will be calculated in accordance with the specifications of the commissionDataRecord specified in the portfolioDataRecord (see Setting Commissions, in this manual).
If "Input" is selected, the doubleInputBox will be displayed and the proper amount may be entered by filling in the edit box and clicking "OK"