Giter VIP home page Giter VIP logo

gatomalo-fiscal's Introduction

gatomalo

Integración opensource con factura fiscal de Panamá

Instalación en linux

El instalador de Linux corre un script que descarga las dependencias e instala GATOMALO como un servicio de linux.

curl -sSL https://raw.githubusercontent.com/Bluetide/gatomalo-fiscal/master/setup.sh | bash

Instalación usando source

  1. Descargar repo e instalar dependencias
git clone [email protected]:Bluetide/gatomalo-fiscal.git gatomalo
cd gatomalo
python3 -m venv venv
source venv/bin/activate
pip install --upgrade wheel pip
pip install -r requirement.txt
  1. Configurar variables de entorno
export ZOHO_AUTH='xyz'
export ZOHO_ORG='xyz'
export ADMIN_USERNAME='admin'
export ADMIN_PASSWORD='somethingyoucanrememberbutitsnotsohardtoguess'
  1. Ejecutar gatomalo
python3 app.py

Usage Instructions

Manual commands

  1. To send a Factura JSON:
curl http://localhost:5000/facturas_api --data     @fact.json -H 'Content-Type: application/json'
  1. To print Reporte X y Z got to cd /gatomalo and run
sudo ./tfunilx SendCmd I0X
sudo ./tfunilx SendCmd I0Z
  1. to create a Nota de Credito (devolucion)
 curl http://192.168.1.3:5000/nota --data     @dev.json -H 'Content-Type: application/json'

Si se realizo una impresion manual previamente, hay que enviar una nota de credito de forma manual con los campos necesarios. Para ejecutar el comando de la impresora enviandole el archivo txt (raw)

  sudo ./tfunilx SendFileCmd <archivo.txt>
  1. dev.json default format: factura_id: es el número que se encuentra en localhost:5000/facturas legacy_id: es el número impreso en la factura fiscal

    {"nota": {
    "factura_id":104,
    "legacy_id":140
    }}
  2. reporte con rango de fechas de facturas impresas

    fecha de inicio YYYMMDD
    fecha de fin yyymmdd
    RfYYYMMDDyyymmdd
    ejemplo (del 1ero de enero de 2014 hasta el 1ero de diciembre de 2014.
    sudo ./tfunilx SendCmd Rf01401010150401
    

For API usage

Ver documentación

Credits

Ivan Barria Grimaldo @ibarria0

Roberto Zubieta @zubietaroberto

Carlos Raul Piad @Carlospiad

Efrain Lay @EfrainLayCastillo

Special thanks to:

gatomalo-fiscal's People

Contributors

carlospiad avatar efrainlaycastillo avatar gregesf avatar ibarria0 avatar julianc606 avatar

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.