Home Java Milk shop Inventory Management System Using Java with Print Receipt

Milk shop Inventory Management System Using Java with Print Receipt

10 min read

The Milk Rice shop Inventory Management System is developed using Java and mysql. The project is built to manage sales and transactions. To make a new transaction, fields such as: Milk type, qty,price and payment needs to be selected. If you like to learn point of sales systems step by step, this is the right place to learn from the beginning. In this tutorial, we will learn  jasper reports step by step and design and  print receipts for the payments.


  1. POS
  2. Stock
  3. Recipt

Learn how to make this System Step by step

The first step Create the database named with “milksystem “. then established the database connection to download the mysql connector in order to connect Java & mysql.if you don’t you  have an idea about download the mysql connector you can follow this link.

To connect the database please refer the following code. To create the method name connect (); paste the below code inside to the Connect () method.

The system shall be able to select the relevant milk type.

Add the Product details into the JTable

After selected the  relavent Milk type the user has the option to add the qty by clicking the add button to see all Products details which will be shown in the below table.

Paste this code inside the add button

Calculating the Total and balance

After that  create the method Sales().we have to create two different tables to store data into the database.we also have to create the following tables from database.
sales tables consist of following colums – id,subtotal,pay,balance.
sales_products tables consist of following colums –id,sales_id,prodname,price,qty,total

Call the Sales() method inside the Print Invoice button. after calculating the total Print receipt will be released. This print receipt designed by Jsper Reporting.

Paste this code inside the Print Invoice button

Print Recipt

I have attached the video tutorial below it will help you  to do this  step by step.




Load More Related Articles
Load More By admin
Load More In Java

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Ecommerce Project Asp.net mvc Step by Step

This tutorial will teach you  how to make a Ecommerce Project using Asp.net Mvc step …