==== XML ====
==== PHP ====
function rpcf_user5_general_report($t_start,$t_end) { //-0x4008
$ret=array();
if (!$this->connection->urfa_call(-0x4008)) {
print "Error calling function ". __FUNCTION__ ."\n";
return FALSE;
}
$packet = $this->connection->getPacket();
$packet->DataSetInt($t_start);
$packet->DataSetInt($t_end);
$this->connection->urfa_send_param($packet);
if ($x = $this->connection->urfa_get_data()) {
$ret['count'] = $x->DataGetInt();
for ($i=0;$i<$ret['count'];$i++) {
$report['account_id'] = $x->DataGetInt();
$report['incoming_rest'] = $x->DataGetDouble();
$report['services_discount_1'] = $x->DataGetDouble();
$report['services_discount_2'] = $x->DataGetDouble();
$report['services_discount_3'] = $x->DataGetDouble();
$report['services_discount_5'] = $x->DataGetDouble();
$report['services_discount_6'] = $x->DataGetDouble();
$report['payments'] = $x->DataGetDouble();
$report['outgoing_rest'] = $x->DataGetDouble();
$ret['report'][]=$report;
}
}
return $ret;
}