Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonhteper/satr
CLI para reportes de facturas del SAT
https://github.com/jonhteper/satr
Last synced: about 1 month ago
JSON representation
CLI para reportes de facturas del SAT
- Host: GitHub
- URL: https://github.com/jonhteper/satr
- Owner: jonhteper
- License: gpl-3.0
- Created: 2024-07-20T04:50:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T02:25:35.000Z (5 months ago)
- Last Synced: 2024-09-07T04:36:18.377Z (5 months ago)
- Language: Rust
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sat Reporter
Aplicación de línea de comandos para realizar reportes de facturas del SAT, leyendo los xml.
## Uso
```
# Imprime el total de facturación (incluyendo impuestos) del emisor
$ satr report emisor total$ satr report emisor total -s -e
$ satr report emisor subtotal
$ satr report emisor iva
$ satr report emisor isr
```## Próximas funciones
```
# Imprime el desglose de todas las facturas que encuentre en la carpeta actual.
# Buscará de forma recursiva.
$ satr print .# Imprime el desglose de todas la facturas que coincidan con el criterio de búsqueda
# en la carpeta indicada, de forma recursiva
$ satr find emisor --name --date_start --date_end# fecha final de búsqueda implícita (hoy)
$ satr find emisor --rfc --date_start# path implícito (carpeta actual)
$ satr find receptor --rfc
```## Instalar
### Desde el código fuente
Descargar el repositorio.
```
git clone https://github.com/jonhteper/satr.git
```Compilar.
```
make
```Reducir tamaño del binario (opcional).
***Importante:** para este paso es necesario tener instalado [upx](https://github.com/upx/upx).*
```
make opt
```Instalar (sistemas UNIX like).
```
sudo make install
```