==== XML ====
==== PHP ====
function rpcf_save_account($account_id,$account, $block_start_date, $block_end_date, $discount_period_id) { //0x2032
if (!$this->connection->urfa_call(0x2032)) {
print "Error calling function ". __FUNCTION__ ."\n";
return FALSE;
}
if ($block_start_date == -1)
$block_start_date = now();
if ($block_end_date == -1)
$block_end_date = max_time();
$packet = $this->connection->getPacket();
$packet->DataSetInt($account_id);
$packet->DataSetInt($discount_period_id);
$packet->DataSetDouble($account['credit']);
$packet->DataSetInt($account['is_blocked']);
if ($account['is_blocked']!=0) {
$packet->DataSetInt($block_start_date);
$packet->DataSetInt($block_end_date);
}
$packet->DataSetInt($account['dealer_account_id']);
$packet->DataSetDouble($account['vat_rate']);
$packet->DataSetDouble($account['sale_tax_rate']);
$packet->DataSetInt($account['int_status']);
$packet->DataSetInt($account['block_recalc_abon']);
$packet->DataSetInt($account['block_recalc_prepaid']);
$packet->DataSetInt($account['unlimited']);
$this->connection->urfa_send_param($packet);
$this->connection->urfa_get_data();
}
}