A simple invoice maker with tax calculation written in C#.
As a business owner you probably often have to prepare invoices with the help of billing machines. This simple shop software is developed for generating invoices with tax calculation based on orders in TAG format (See SampleOrder.tag). The tag file contains information such as ItemNumber, ItemName, CustomerName, CustomerType, AmountOrdered, UnitPrice. To print invoices for each customer, you need a basis for all your pricing calculations. The value added tax (VAT) rate of 19%, for example, is applied to all customer types (if applicable) except for companies. Also, for students, 20% discount will be applied before VAT. By running the program, it will output an invoice with a summary for each customer and write data into a CSV file (See myfile.csv).
- Clone this project to your local machine:
git clone https://github.com/huaminghuangtw/Simple-Shop-Project.git
- Open
SimpleShop.sln
- Open
Package Manager Console
in Visual StudioTo open the console in Visual Studio, go to the main menu and select
Tools
>NuGet Package Manager
>Package Manager Console
command - Run the following command to install CsvHelper package:
PM> Install-Package CsvHelper
-
Change directory to Simple-Shop-Project\SimpleShop\bin\Debug\netcoreapp3.1, then pass the tag file as the command-line argument with the command:
SimpleShop ../../../../SampleOrder.tag
-
Debugging with command-line arguments within Visual Studio (See here for detailed steps)
If you have any question or suggestion, feel free to contact me at [email protected]. Contributions are also welcomed. Please open a pull-request or an issue in this repository.