This repository/code is designed to give a quick overview of the actual cost of a shipment.
The code extracts all costs based on the order number and outputs them in a file with two sheets. Sheet 1 contains all shipments (based on the reference) and lists all corresponding cost service types and their amount. Sheet 2 contains all the shipments (based on the reference) and lists the sum of all the costs, so you have an overview of the total cost of the shipment.
You can place any number of invoice files into the "invoice" directory within this repository and receive one output file.
-
Open Windows Powershell and install git by using the following command:
winget install git
-
Clone this repository
git clone https://github.com/clemone210/DACHSER-invoice_cost-summary.git
-
Install Python on Windows by using this guide: install_python.md
-
Install the dependencies
pip install -r requirements.txt
-
Download the invoices from eLogistics as a .csv file.
-
Create a new folder called "invoices" in the repository root directory.
-
Move all the downloaded invoices into the "invoices" folder.
-
Run a Powershell shell from the repository folder
python main.py
orpython3 main.py
-
You should now have your shipment data in the repository directory.