Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pcriv/complicode-go

Control code generator for invoices inside the Bolivian national tax service implemented in Golang.
https://github.com/pcriv/complicode-go

bolivia golang invoice taxes

Last synced: 3 days ago
JSON representation

Control code generator for invoices inside the Bolivian national tax service implemented in Golang.

Awesome Lists containing this project

README

        

# Complicode

Control code generator for invoices inside the Bolivian national tax service.

### Usage

```go
package main

import (
"fmt"
"time"

"github.com/pablocrivella/complicode-go"
)

func main() {
authCode := "29040011007"
key := "9rCB7Sv4X29d)5k7N%3ab89p-3(5[A"
date, _ := time.Parse("20060102", "20070702")
invoice := complicode.Invoice{Number: 1503, Nit: 4189179011, Date: date, Amount: 2500}
code := complicode.Generate(authCode, key, invoice)

fmt.Printf(code) // => "6A-DC-53-05-14"
}
```

## License

Copyright 2020 [Pablo Crivella](https://pablocrivella.me).
Read [LICENSE](LICENSE) for details.