public function CreateNextVoucher($data)
	{
		$last_voucher = $this->GetLastVoucher($data['PtoVta'], $data['CbteTipo']);
		
		$voucher_number = $last_voucher+1;

		$data['CbteDesde'] = $voucher_number;
		$data['CbteHasta'] = $voucher_number;

		$res 					= $this->CreateVoucher($data);
		$res['voucher_number'] 	= $voucher_number;

		return $res;
	}
public function CreateNextVoucher($data)
	{
		$last_voucher = $this->GetLastVoucher($data['PtoVta'], $data['CbteTipo']);
		
		$voucher_number = $last_voucher+1;

		$data['CbteDesde'] = $voucher_number;
		$data['CbteHasta'] = $voucher_number;

		$res 					= $this->CreateVoucher($data);
		$res['voucher_number'] 	= $voucher_number;

		return $res;
	}
public function CreateNextVoucher ( $ data ) { $ last_voucher = $ this -> GetLastVoucher ( $ data [ 'PtoVta' ] , $ data [ 'CbteTipo' ] ) ; $ voucher_number = $ last_voucher + 1 ; $ data [ 'CbteDesde' ] = $ voucher_number ; $ data [ 'CbteHasta' ] = $ voucher_number ; $ res = $ this -> CreateVoucher ( $ data ) ; $ res [ 'voucher_number' ] = $ voucher_number ; return $ res ; }
Create next voucher from AFIP

This method combines Afip::GetLastVoucher and Afip::CreateVoucher
for create the next voucher

@since 0.7

@param array $data Same to $data in Afip::CreateVoucher except that
don't need CbteDesde and CbteHasta attributes

@return array [CAE => CAE assigned to voucher, CAEFchVto => Expiration
date for CAE (yyyy-mm-dd), voucher_number => Number assigned to
voucher]
Create next voucher from AFIP