Python script that generates multiple PEPPOL invoices with localized data.
Install python from the Microsoft Store, or directly from the Python foundation if you're feeling advanced.
Install Git for Windows.
Open your favourite terminal and clone this repository.
git clone https://github.com/hanusatv/peppolgenerator.git
CD into the peppolgenerator directory and install the required python modules.
pip install -r environmentRequirements.txt
Run the runservice.ps1
script with powershell. The application will start on http://localhost:9400.
To set the root directory, paste the path into the root directory field, and select Save root directory. Next, you need to map the template files, and variables files by selecting them from the dropdown menues, and select Save settings. The localizations from the XML variables will be listed, and then you need activate the localizations you want to generate copies of, and select Save settings once again. To generate localized copies of the templates, simply select Create files.
When inserting tags into the .docx file, you have to enter the whole tag in one go, and then save the file. If you edit a pre-existing tag, then Word will save the tag as two separate strings, eventough it looks as if it's only one single string. You therefore need to delete the whole paragraph, save the file, and then type in the whole tag again and save. Word will then save the tag as one single string, and not two.