Giter Club home page Giter Club logo

Comments (15)

giansalex avatar giansalex commented on September 25, 2024

el resumen diario incluye a boletas y notas de crédito o débito relacionadas a boletas. Las boletas no son validadas por sunat, solo bastaria con generarla y firmarla. Si quieres validar que el xml cumpla con el esquema del UBL, puedes usar el ubl validator

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

trato de validar pero me sale este error y creo mis rutas estan bien (no lo descargue por que no me deja solo copie la carpeta que viene en "ubl-validador")
captura

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

creo se debe descargar si o si para que lo reconozca ?

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

C:\xampp\htdocs\ubl>composer require greenter/ubl-validator
Root package 'greenter/ubl-validator' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

from demo.

giansalex avatar giansalex commented on September 25, 2024

al parecer estas tratando de instalarlo en el mismo repositorio de ublvalidator, tienes que instalarlo en tu proyecto

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

entonces le agrego al composer de mi proyecto y le doy update?

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

si, si se pudo de esa manera muchas gracias amigo

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

captura

xml:
Notice: Trying to get property 'nodeName' of non-object in C:\xampp\htdocs\invoice\vendor\greenter\ubl-validator\src\Ubl\SchemaValidator.php on line 58
Schema file not found

from demo.

giansalex avatar giansalex commented on September 25, 2024

la ruta del archivo si es la correcta? , $xml si tiene valor cuando pasas a validate() .?

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

si es la ruta correcta
pdf = 10486113532-03-B001-000001

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

que despistado soy !!! ya vi cual es el error mis boletas se generan pero sin datos
captura

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

uso este codigo para mis boletas cual es mi error amigo

public function Generar_boleta($invoice)
{
	 $util = Util::getInstance();

	 $see = $util->getSee(SunatEndpoints::FE_BETA);
     Util::writeXml($invoice, $see->getFactory()->getLastXml());                          
     $this->sms = "boleta generada correctamente";           
     $pdf = $util->getPdf($invoice);
     $util->showPdf($pdf, $invoice->getName().'.pdf');                                              
	 return $this->sms;
}

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

no se tiene que enviar la boleta solo generar el xml firmarlo y el pdf

from demo.

giansalex avatar giansalex commented on September 25, 2024

si, es que getLastXml() retorna el ultimo xml enviado a sunat, en tu caso no se envio ninguno.
tendrias que usar.

$xml = $see->getXmlSigned($invoice);
Util::writeXml($invoice, $xml); 

from demo.

abelnexus avatar abelnexus commented on September 25, 2024

funciona perfectamente muchas gracias amigo en verdad agradezco mucho tu ayuda y tiempo brindado

from demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.