/bill-center

invoice validation and reimbursement platform

Primary LanguageGo

Bill-Center

Structure

  • pdf bill qrcode extract and scan
  • bill parse web service In Progress
  • User CRUD Almost

Project Layout Reference

├── README.md
├── cmd
│   ├── bill-decode // cli pdf qrcode scan
│   └── bill-server // provide web service
├── go.mod
├── go.sum
├── pkg
│   └── bill-decode // decode lib 
└── resource
    ├── fapiao.png
    └── 凉茶发票.pdf

Installation

  1. You need a go development environment setup before everything starts taking off.

  2. Use git clone cloing the repo to your local folder. git clone https://github.com/hades300/bill-center

  3. Import document/sql/create.sql to your database.

  4. Create configuration file from cmd/bill-server/config/config.toml.bak. cp config/config.toml.bak config/config.toml Update config.toml according to your local configurations if necessary.

  5. Run command go run main.go cd cmd/bill-server && go run main.go

Usage

bill qrcode decode

download release

11-25: dir parse supported

bill-decode -pdf "invoce.pdf"
# 11-25: dir parse supported
bill-decode -dir "."

#hades300@Hades:/mnt/c/Users/10189/Desktop/报销发票$ bill-decode -dir .
#文件名:/mnt/c/Users/10189/Desktop/报销发票/深入解析CSS.pdf
#校验码   69971408812971265095
#发票代码         031002100311
#发票号码         83057117
#开票日期         20211125
#合计金额(不含税)         116.40
#
#文件名:/mnt/c/Users/10189/Desktop/报销发票/RDS.pdf
#校验码   74664259960234463970
#发票代码         033002100411
#发票号码         79636701
#开票日期         20211124
#合计金额(不含税)         56.51