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"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bolivia_cc-0.1.3a0.tar.gz (652.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bolivia_cc-0.1.3a0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file bolivia_cc-0.1.3a0.tar.gz.

File metadata

  • Download URL: bolivia_cc-0.1.3a0.tar.gz
  • Upload date:
  • Size: 652.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.2.0

File hashes

Hashes for bolivia_cc-0.1.3a0.tar.gz
Algorithm Hash digest
SHA256 72c25ce45127c99aa7628d264de19a71390d9748717e95547eba4ded69fe40ba
MD5 fed0ef40b83464187b4eceb0441b8143
BLAKE2b-256 20483cb1b15c41e254174f426c65b3b73058d4883138c554416eebcc986e9793

See more details on using hashes here.

File details

Details for the file bolivia_cc-0.1.3a0-py3-none-any.whl.

File metadata

  • Download URL: bolivia_cc-0.1.3a0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.2.0

File hashes

Hashes for bolivia_cc-0.1.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a459954a38600f8c4301c433628bd71e2417ea53e13825b7e2fda17ad10dbf3
MD5 a01ad6838f49ab8c69047aa895861ecc
BLAKE2b-256 fea8128b1ac52281b44db7b9d615c481ac8ac8e112b65ce973586eee46032a9f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3a0 This release

2 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