Skip to content

XenonHan/ShoppingReceipt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Shopping Receipt

This program prints the receipt according to the shopping cart record. The sales tax also included in the receipt based on different locations and product categories.

To run the program

1. Import this maven project to your ide
2. Run Main.java under "src\main\java".
3. Input the transaction file name e.g. transaction_1

Run on command prompt

1. cd to the project directory
2. Run below commands:
mvn compile
mvn exec:java -D"exec.mainClass"="Main"

3. Input the transaction file name e.g. transaction_1

Preview

To add a transaction

1. Create an Execl file(.xslx)
2. Record the transaction info (location, product name, price, quantity)
3. Store the file under directory "/src/main/java/transaction/"

Preview

To modify/add tax rate of a location

1. Go to directory "/src/main/java/config/"
2. Open tax.json and modify

Preview

To modify/add product category

1. Go to directory "/src/main/java/config/"
2. Open categories.json and modify

Preview

Coverage Report

1. Go to the home directory of this project
2. run
mvn test 

3. Open the index.html under ./target/site/jacoco

Preview

Releases

No releases published

Packages

No packages published

Languages