Skip to content

SlashGordon/buchhaltung

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

buchhaltung

rename invoice

The renaming function reads the PDF and extracts variables for the renaming.

build binary with:

go get -d -v ./... && go build buchhaltung.go

Move all PDF invoices to a directory. At the moment we only support pure PDFs and not scans.

Create a json config file like:

[
    {
        "outputname": "{number}_{company}.pdf",
        "identifyers":     {
            "number":  "Belegnummer\\s+(WF\\d{11})",
            "company": "(weinfreunde)"
        }
    },
    {
        "outputname": "{number}_{company}.pdf",
        "identifyers":     {
            "number":  "Rechnungsnr.:\\s+(F\\d{11})",
            "company": "(klarmobil)"
        }
    }
]

And run buchhaltung:

buchhaltung invoice -i /Users/test/bills -o /Users/test/bills/output -c /Users/test/
config_example.json

About

Renames invoices in pdf format based on the content of pdf and rules.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages