Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pcriv/complicode-go
- Owner: pcriv
- License: mit
- Created: 2020-01-21T19:59:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T08:03:45.000Z (9 months ago)
- Last Synced: 2024-06-20T06:30:34.121Z (5 months ago)
- Topics: bolivia, golang, invoice, taxes
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Complicode
Control code generator for invoices inside the Bolivian national tax service.
### Usage
```go
package mainimport (
"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.