public function GetLastVoucher($sales_point, $type)
	{
		$req = array(
			'PtoVta' 	=> $sales_point,
			'CbteTipo' 	=> $type
			);

		return $this->ExecuteRequest('FECompUltimoAutorizado', $req)->CbteNro;
	}
public function GetLastVoucher($sales_point, $type)
	{
		$req = array(
			'PtoVta' 	=> $sales_point,
			'CbteTipo' 	=> $type
			);

		return $this->ExecuteRequest('FECompUltimoAutorizado', $req)->CbteNro;
	}
public function GetLastVoucher ( $ sales_point , $ type ) { $ req = array ( 'PtoVta' => $ sales_point , 'CbteTipo' => $ type ) ; return $ this -> ExecuteRequest ( 'FECompUltimoAutorizado' , $ req ) -> CbteNro ; }
Gets last voucher number

Asks to Afip servers for number of the last voucher created for
certain sales point and voucher type {@see WS Specification
item 4.15}

@since 0.7

@param int $sales_point 	Sales point to ask for last voucher
@param int $type 		Voucher type to ask for last voucher

@return int
Gets last voucher number