Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximilianschmitt/vatman
A small CLI to help with reporting quarterly VAT stuff.
https://github.com/maximilianschmitt/vatman
Last synced: about 1 month ago
JSON representation
A small CLI to help with reporting quarterly VAT stuff.
- Host: GitHub
- URL: https://github.com/maximilianschmitt/vatman
- Owner: maximilianschmitt
- License: mit
- Created: 2015-04-16T12:37:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T22:48:18.000Z (over 2 years ago)
- Last Synced: 2024-11-20T14:50:43.747Z (about 2 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# vatman
A small CLI to help with reporting quarterly VAT stuff. Usage is documented for my personal use as this little module will probably not be of much help to anyone else.
## Installation
```
$ npm i vatman -g
```## Usage
If you have a file called `paypal-payments.json`:
```json
{
"source": "paypal",
"quarter": 1,
"year": 2015,
"records": [
{
"countryCode": "DE",
"payedAmount": 2970,
"createdAt": "2015-01-20T12:03:00.000Z"
},
{
"countryCode": "DE",
"payedAmount": 2970,
"createdAt": "2015-01-25T16:41:08.000Z"
}
]
}
```Type this into your console:
```
$ cat paypal-payments.json | vatman > paypal-payments.txt
```This will generate a file `paypal-payments.txt` with the following contents:
```
2 PayPal-Bestellungen im 1. Quartal 2015Monat Land Umsatzsteuer Umsatz
Januar DE 19% (EUR 4,74) EUR 29,70
Januar DE 19% (EUR 4,74) EUR 29,70Die angegebene Umsatzsteuer ist im Verkaufspreis immer enhalten. Bsp.: EUR 29,70 für Käufe aus Deutschland enthält 19% (EUR 4,74) Umsatzsteuer.
PayPal-Gebühren und Rückzahlungen können dem beiliegenden PayPal-Kontobericht entnommen werden.
```