$lote = $arquivo->addLote(array('tipo_servico'=> 2)); // tipo_servico = 1 para cobrança registrada, 2 para sem registro
PHP Fatal error: Uncaught exception 'Exception' with message 'Registros com emissao pelo beneficiario e sem registro nao sao enviados' in /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php:283\nStack trace:\n#0 [internal function]: CnabPHP\\resources\\B104\\remessa\\cnab240_SIGCB\\Registro3P->set_emissao_boleto(2)\n#1 /public_html/3rd/OpenCnabPHP/src/RegistroRemAbstract.php(60): call_user_func(Array, 2)\n#2 /public_html/3rd/OpenCnabPHP/src/RegistroRemAbstract.php(47): CnabPHP\\RegistroRemAbstract->__set('emissao_boleto', 2)\n#3 /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php(268): CnabPHP\\RegistroRemAbstract->__construct(Array)\n#4 /public_html/3rd/OpenCnabPHP/src/resources/generico/remessa/cnab240/Generico1.php(141): CnabPHP\\resources\\B104\\remessa\\cnab240_SIGCB\\Registro3P->__construct(Array)\n#5 /dados/@home/pr in /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php on line 283
No OpenCnabPHP/samples/ExemploRemessa.php
troquei de 1 para 2
$lote = $arquivo->addLote(array('tipo_servico'=> 2)); // tipo_servico = 1 para cobrança registrada, 2 para sem registro
PHP Fatal error: Uncaught exception 'Exception' with message 'Registros com emissao pelo beneficiario e sem registro nao sao enviados' in /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php:283\nStack trace:\n#0 [internal function]: CnabPHP\\resources\\B104\\remessa\\cnab240_SIGCB\\Registro3P->set_emissao_boleto(2)\n#1 /public_html/3rd/OpenCnabPHP/src/RegistroRemAbstract.php(60): call_user_func(Array, 2)\n#2 /public_html/3rd/OpenCnabPHP/src/RegistroRemAbstract.php(47): CnabPHP\\RegistroRemAbstract->__set('emissao_boleto', 2)\n#3 /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php(268): CnabPHP\\RegistroRemAbstract->__construct(Array)\n#4 /public_html/3rd/OpenCnabPHP/src/resources/generico/remessa/cnab240/Generico1.php(141): CnabPHP\\resources\\B104\\remessa\\cnab240_SIGCB\\Registro3P->__construct(Array)\n#5 /dados/@home/pr in /public_html/3rd/OpenCnabPHP/src/resources/B104/remessa/cnab240_SIGCB/Registro3P.php on line 283