Skip to main content

Calculate BR taxes from NF total value, and calculate the original value of a NF from a received payment

Project description

br-regras-fiscais

A lib to calculate taxes on Brasil for NFe, and also get total NFe value from a payment.

It takes in account if Imposto de Renda is less than R$ 10,00, and same for CRF (PIS, COFINS,CSLL)


original_nota_value

Using the paid valued from a Transaction it returns the original total value of a NF


tax_dict

Returns a Data Class with the taxes values:

@dataclass
class TaxesValues:
    cofins: Decimal
    csll: Decimal
    ir: Decimal
    pis: Decimal

    @property
    def sum_crf(self) -> Decimal:
        return self.pis + self.csll + self.cofins

Project details


Download files

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

Source Distribution

br_regras_fiscais-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

br_regras_fiscais-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file br_regras_fiscais-0.1.0.tar.gz.

File metadata

  • Download URL: br_regras_fiscais-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for br_regras_fiscais-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78d48451eda6a14ec9cad3416537561929b2da1172a02f654328ec3dde97c22b
MD5 5d4733169f2777b7f2401392dffe88af
BLAKE2b-256 7ebccd63a4e7b926dacc05b949f278b621d1069b8323e8dbc178722e6feaa907

See more details on using hashes here.

File details

Details for the file br_regras_fiscais-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for br_regras_fiscais-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f172b622fbc34e269e84cd02d1bbe8ff1ebffe32082b2bd24ef3efb3febb04
MD5 d263c9d598397a53da8d213b82d4ed16
BLAKE2b-256 526108aa8316da613b913a86ba65a4e70a2610a6dd70212c9aa371acf8b3bf63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page