Git Product home page Git Product logo

facturajs's People

Contributors

dependabot[bot] avatar emilioastarita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facturajs's Issues

Certificado no emitido por AC de confianza, issues with open ssl

  1. tenia problema con openssl x generar los pem. me confude no se si es correcta,
    (el command en el readman no hace un pem, y mi dio error

// openssl req -x509 -newkey rsa:4096 -nodes
// -out ./nginx/cert.pem
// -keyout ./nginx/key.pem -days 365 -subj "/C=AR/O=TU_EMPRESA/CN=TU_SISTEMA/serialNumber=CUIT MI_CUIT"

  1. esa me da: ' Certificado no emitido por AC de confianza' response de afip. gracias.

la AFIP usa TLS de 1974

Buenas, arranqué con esto para hacer unas pruebas y resulta que nuestra amada AFIP usa TLS del año del choto con tamaño de claves de 4 bits, entonces falla con:

(node:14790) UnhandledPromiseRejectionWarning: Error: write EPROTO 139949712528768:error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small:../ssl/statem/statem_clnt.c:2156

Busqué y se puede obligar a openssl a aceptar cifrados arcaicos, inseguros y pedorros (porque imaginate pedirle a la AFIP que actualicen sus servicios, ¡ja!), entonces lo corro así:
node --tls-cipher-list="TLS_RSA_WITH_AES_256_GCM_SHA384" dist/examples/last-bill.js

y falla con:

(node:14406) UnhandledPromiseRejectionWarning: Error [ERR_SOCKET_CLOSED]: Socket is closed

Y hasta ahí llegué... ¿ideas?

Cannot find type definition file for 'bluebird'

al correr tsc, me dá el error:

node_modules/facturajs/dist/AfipServices.d.ts(1,23): error TS2688: Cannot find type definition file for 'bluebird'.
node_modules/facturajs/dist/AfipServices.d.ts(3,26): error TS7016: Could not find a declaration file for module 'bluebird'. '/fe_AFIP_test/node_modules/bluebird/js/release/bluebird.js' implicitly has an 'any' type.
Try npm install @types/bluebird if it exists or add a new declaration (.d.ts) file containing declare module 'bluebird';

Forma de pago? Items?

Hola, por lo que veia en el ejemplo del repo para generar un comprobante, no es necesario especificar forma de pago, ni los items que componen la factura.

Screenshot 2023-08-01 at 10 28 53

Esto es requerido en la web oficial, pero no parece fallar sin mandarlos por API. No hay problema en no mandarlos?
En caso de querer agregarlo tampoco encontré en la documentación como hacerlo

Screenshot 2023-08-01 at 10 28 28

Obtener PDF

Tienen idea si hay algun endpoint que permita generar el PDF de la factura?

Saludos!

Documentación / Ejemplos

Buenas
¿sería posible expandir un poco más la documentación? O tal vez más ejemplos de uso.

Saludos

Facturas A

Hola, facturajs permite generar comprobantes tipo 1, es decir A? Porque no encuentro la forma de pasar los datos que necesito mandar para generar comprobantes tipo A, por ejemplo Ivas y tributos.

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.