Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Bolivia Codigo de Control

El Código de control Es un dato alfanumérico generado e impreso por un sistema de facturación computarizado SFV al momento de emitir una factura y sirve sirve para determinar la validez o no de una factura.

Ejemplo: CB-5E-CF-8B-05

Está constituido por pares de datos alfanuméricos separados por guiones (-) y expresados en formato hexadecimal (A, B, C, D, E y F), no contene la letra “O” solamente el número cero (0). Se genera en base a información de dosificación de la transacción comercial y la llave asignada a la dosificación utilizando los algoritmos Alleged RC4, Verhoeff y Base 64 como se explica en la Especificación Técnica para la generación del Código de Control.

Este es una implementacion completa del generador y validacion del Código de Control

Uso

$ pip install bolivia-cc
$ bolivia_cc --generar \
    --autorizacion=7000000006000 \
    --factura=560001 \
    --nit=3200000 \
    --fecha=2023-01-01 \
    --total=10000 \
    --llave=SECRET \
7B-F3-48-A8
import bolivia_cc

codigo_control = bolivia_cc.generate_control_code(
    autorizacion="20040010113",
    factura="665",
    nitci="1004141023",
    fecha="20070108",
    monto="905.23",
    llave="442F3w5AggG7644D737asd4BH5677sasdL4%44643(3C3674F4",
)

assert codigo_control == "771-D5-61-C8"

Metadata

Release files for bolivia-cc 0.1.3a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bolivia-cc 0.1.3a0
File Size Uploaded
bolivia_cc-0.1.3a0.tar.gz 652.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bolivia-cc 0.1.3a0
File Interpreter ABI Platform
bolivia_cc-0.1.3a0-py3-none-any.whl Python 3 none any Details

Total release size: 661.1 kB

Release files / bolivia_cc-0.1.3a0.tar.gz

Download URL bolivia_cc-0.1.3a0.tar.gz
Size 652.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72c25ce45127c99aa7628d264de19a71390d9748717e95547eba4ded69fe40ba
BLAKE2b-256 checksum
How to use checksums
20483cb1b15c41e254174f426c65b3b73058d4883138c554416eebcc986e9793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.11.1 Darwin/22.2.0

Release files / bolivia_cc-0.1.3a0-py3-none-any.whl

Download URL bolivia_cc-0.1.3a0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a459954a38600f8c4301c433628bd71e2417ea53e13825b7e2fda17ad10dbf3
BLAKE2b-256 checksum
How to use checksums
fea8128b1ac52281b44db7b9d615c481ac8ac8e112b65ce973586eee46032a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.11.1 Darwin/22.2.0

Release history Release notifications | RSS feed

This release

0.1.3a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page