Add
int CSaleOrderTax::Add( array arFields );
The method Add adds a new amount of tax to an order.
Parameters
Parameter | Description |
---|---|
arFields | Associated array containing parameters of the new record whose keys are
the order parameter names, and values are the parameter values. The following values are possible:
|
Returned values
Returns the ID of the new tax amount on success or false otherwise.
Example
<? $arFields = array( "ORDER_ID" => 12789, "TAX_NAME" => "VAT", "IS_PERCENT" => "Y", "VALUE" => 3.5, "VALUE_MONEY" => 6948.55, "APPLY_ORDER" => 300, "IS_IN_PRICE" => "N", "CODE" => "NDS" ); CSaleOrderTax::Add($arFields); ?>
© «Bitrix24», 2001-2024