Generate the required data sheet for the DutyPay(dutypay.eu) TaxHub platform from Plentymarkets.
Project description
plenty_taxhub_generator
Description
Create a Tax Hub Report with sales order and refunds from PlentyMarkets. Tax Hub is a report used by DutyPay.
Installation
poetry install plenty_taxhub_generator
or
python3 -m pip install plenty_taxhub_generator --user --upgrade
Usage
Prepare a configuration file with the following format:
[General]
base_url=https://{your-plenty-cloud}.plentymarkets-cloud01.com
[Mappings]
referrer_id={IDs of the order origins}
country_id=AT=2,CZ=6,ES=8,FR=10,GB=12,IT=15,PL=23 # list of countries where VAT is charged
[fixed_values]
source_zone=DE
market_zone_currency=EUR
And place the config at:
/home/user/.plenty_taxhub_generator_config.ini
for Linux systemsC:\\Users\user\.plenty_taxhub_generator_config.ini
for Windows systems
Create a API user on PlentyMarkets: Setup-> Settings-> User-> Accounts-> New-> Access: REST-API
Then just run the program:
python3 -m plenty_taxhub_generator --from 2020-09-01 --to 2020-09-30
Please provide the date in one of the following formats:
- YYYY-MM-DDTHH:MM:SS+UTC-OFFSET
- YYYY-MM-DDTHH:MM
- YYYY-MM-DD
You will be asked to provide your API credentials from Plentymarkets. Afterwards these will be saved into your Keyring (system intern password storage) for a certain amount of time.
The report will be placed by default at your current working directory. But you can provide a different location with the -o/--out
option.
You can view the mappings in your config with the -m/--mappings
option.
And you can change the base URL of your PlentyMarkets system with -c/--url/--change_url
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plenty_taxhub_generator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f934fb55199c2ff3b34c38d9a6f1434dc01593f7dc15fcbe4cf53225a733c952 |
|
MD5 | 37d0698a65a518aa1167afc50d49ec5c |
|
BLAKE2b-256 | 83e1f3d5eb5a69ec498e667606dc5a3e9ef77bec43cc7e33d7ef75ebb049630f |
Hashes for plenty_taxhub_generator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c1ef8282511e816c80e5d6586051f5a4f9bf8d8600812000b1a57f51279b7f2 |
|
MD5 | c79a39e96ecf4106dfef167d882988c2 |
|
BLAKE2b-256 | fd72bfd4f1c233d1a2544636503ee9a99567fa078e450c3c83639eba8ff45c6d |