-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905bbeb
commit 7ca729b
Showing
20 changed files
with
664 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
[![Build Status](https://travis-ci.org/SlashGordon/buchhaltung.svg?branch=master)](https://travis-ci.org/SlashGordon/buchhaltung) | ||
[![Coverage Status](https://coveralls.io/repos/github/SlashGordon/buchhaltung/badge.svg?branch=master)](https://coveralls.io/github/SlashGordon/buchhaltung?branch=master) | ||
# buchhaltung | ||
# buchhaltung | ||
|
||
## rename invoice | ||
|
||
The renaming function reads the PDF and extracts variables for the renaming. | ||
|
||
build binary with: | ||
|
||
```shell | ||
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: | ||
|
||
```json | ||
[ | ||
{ | ||
"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: | ||
```shell | ||
buchhaltung invoice -i /Users/test/bills -o /Users/test/bills/output -c /Users/test/ | ||
config_example.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/SlashGordon/buchhaltung/cmd" | ||
"github.com/SlashGordon/buchhaltung/utils" | ||
) | ||
|
||
func main() { | ||
utils.Logger.Info("Buchhaltung") | ||
const banner = ` | ||
___ _ _ _ _ | ||
| _ ) _ _ __ | |_ | |_ __ _ | | | |_ _ _ _ _ __ _ | ||
| _ \ | || | / _| | ' \ | ' \ / _| | | | | _| | || | | ' \ / _| | | ||
|___/ \_,_| \__| |_||_| |_||_| \__,_| |_| \__| \_,_| |_||_| \__, | | ||
|___/ | ||
` | ||
fmt.Printf(banner) | ||
cmd.Execute() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.