You are on page 1of 74

MANUFACTURING ERP FOR PURCHASE

ORDER INVENTORY

A MINI PROJECT REPORT

Submitted by

Alwin.B 711720104008
Dharaneesh.N 711720104303
Muhammedh Dhanish 711720104047
Yameen.K
Kanya.K.S 711720104032

in partial fulfillment for the award of the


degree of
BACHELOR OF ENGINEERING
IN

COMPUTER SCIENCE AND ENGINEERING

KGiSL INSTITUTE OF TECHNOLOGY, SARAVANAMPATTI

ANNA UNIVERSITY :: CHENNAI 600 025

May 2023
ANNA UNIVERSITY : CHENNAI 600 025

BONAFIDE CERTIFICATE

Certified that this project report “Manufacturing Erp For Purchase Order Inventory” is
the bonafide work of “Alwin B, Dharaneesh N, Muhammedh Dhanish Yamen K,
Kanya K S” who carried out the project work under my supervision.

SIGNATURE SIGNATURE
Dr. THENMOZHI T Ms.KAMALA V
HEAD OF THE DEPARTMENT SUPERVISOR
Assistant Professor
Computer Science and Computer Science and
Engineering KGiSL Institute of Engineering KGiSL Institute of
Technology Saravanampatti Technology Saravanampatti
Coimbatore-35 Coimbatore-35

Submitted for the Anna University Viva-Voce examination held on

Internal Examiner External Examiner


ACKNOWLEDGEMENT

We express our deepest gratitude to our Chairman and Managing Director,


Padma Shri Dr. G.ASHOK BAKTHAVACHALAM, KGiSL Educational
Institutions, for providing us with an environment to complete our project sS

We express our heartfelt gratitude to our venerated Managing Director,


Dr. ASHOK BAKTHAVATHLAM, KGiSL Educational Institutions, who gave
the opportunity to frame the project to the full satisfaction.

We are very grateful to Mr. R.ARAVIND KUMAR, CEO, Dr.M


SELVAM, M.E.,Ph.D., Principal and Dr.S. SURESH KUMAR, M.E.,
Ph.D.,Vice Principal for their valuable guidance and blessings.

We would like to thank Dr. RAMKUMAR R P, M.E., (Ph.D)., Head of


the Department, Department of Computer Science and Engineering for his
unwavering support during the entire course of our project work and who modelled
us both technically and morally for achieving greater success in this project work.

We express our sincere thanks to our faculty guide Ms.V.KAMALA, M.E.,


Assistant Professor, Department of Computer Science and Engineering.

We also thank all the faculty members of our department for their help in
making this project a successful one.

Finally, we take this opportunity to extend our deep appreciation to our


family and friends, for all they meant to us during the crucial times of the
completion of our project.
ABSTRACT

This project “Manufacturing ERP for Purchase Order Inventory” deals with maintenance of
product in a concern. This project also takes care of maintaining records of purchase details, sales
details, stock details, supplier details and activities of the concern. As this is generic project it can be
used by a wide variety of outlets (Retailers and Wholesalers) to automate the process of manually
maintaining the records related to the subject of maintaining the stock and cash flows.
The main goal of the application is to maintain the records of stock, billing, details of
purchasers and sellers and their current financial positions with the company.
Various reports are generated based on the requirement of the concern, reports will present the
management with the current position of the company. The project will be efficient tool for the
company and it will aid in the improvement of the company. In this system all the details about
issues assigned are stored in databases where the manager can retrieve information at any time.
The transactions related to purchase, sale and returns are maintained manually at present along
with maintaining the accounts of the customers and the suppliers. All these are to be automated and
an application is required to relate all of them relatively and logically so that the current system can
be replaced and accepted without major changes and problems.
The application should provide quick access to the records maintained and must reveal the
important reviews about the business so that the growth can be easily compared and should provide
with the various reports showing the related details so that the important decisions could be taken
easily.

LANGUAGE USED
FRONT END : VISUAL BASIC.NET
BACK END : SQL SERVER

I
TABLE OF CONTENTS

CHAPTER NO. TITLE PAGENO.

ABSTRACT i
LIST OF TABLES ii
LIST OF FIGURES vi
LIST OF ABBREVIATIONS vii

1. INTRODUCTION
1.1 PROBLEM DEFINITION
1.2 OBJECTIVE OF THE PROJECT
1.3 SIGNIFICANCE OF THE PROJECT
1.4 OUTLINE OF THE PROJECT

2. LITERATURE REVIEW

3. SYSTEM ANALYSIS
3.1 EXISTING SYSTEM
3.2 DRAWBACKS
3.3 PROPOSED SYSTEM
3.4 FEASIBILITY STUDY
3.4.1 Tests of Feasibility
3.4.1.1 Technical Feasibility
3.4.1.2 Operational Feasibility
3.4.1.3 Economical Feasibility

4. SYSTEM SPECIFICATION
4.1 HARDWARE REQUIREMENTS
4.2 SOFTWARE REQUIREMENTS
4.3 TOOLS
5. SOFTWARE DESCRIPTION
5.1 BACKEND

II
6. PROJECT DESCRIPTION
6.1 OVERVIEW OF A PROJECT
6.2 MODULE DESCRIPTION
6.2.1 SPEECH RECOGNITION
6.2.2 PYTTSX3
6.2.2 DATETIME
6.2.4 WIKIPEDIA
6.2.5 WEB-BROWSER
6.3 DATA FLOW DIAGRAM
6.4 ENTITY RELATIONSHIP DIAGRAM
7. SYSTEM TESTING
7.1 TESTING METHODS
7.2 TYPES OF TESTING
7.2.1 Unit Testing
7.2.2 Integration Testing
7.2.3 Functional Testing
7.2.4 Stress Testing
7.2.5 Acceptance Testing
7.3 TESTING STRATEGY
8. SYSTEM IMPLEMENTATION
8.1 PYTHON BACKEND
8.2 FUNCTION
9. CONCLUSION & FUTURE
ENHANCEMENTS
9.1 CONCLUSION
9.2 FUTURE ENHANCEMENTS
10. APPENDIX
III
10.1 TABLE DEIGN
10.2 SCREENSHOTS
10.3 SAMPLE CODE
11. REFERENCES

IV
LIST OF FIGURES

FIG.NO FIGURE NAME PAGE NO

6.3 Data Flow diagram


6.4 Entity Relationship Diagram

v
LIST OF ABBREVIATIONS

VB Visual Basic

API Application Program Interface

ERP Enterprise Resource Planning

IMS Inventory Management System

SQL Structured Query Language

GUI Graphical User Interface

vi
CHAPTER 1

INTRODUCTION

A Computerized ERP for Purchase Order Inventory Control System is a computer program
that tracks inventory and sometimes creates automated replenishment orders. Computerized
inventory systems are used for tracking perpetual inventory and gauging replenishment. Information
on retail buying, inventory control, sold details and other supply activities.

The program lets everyone who wants to stop wasting time and bring life in order quickly
manage everyday tasks with help of prioritized to-do list. This is a complete inventory management
system performs a Point of Sale function and multi warehouse stock control. System has receiving
and shipping functions generates invoices, sale receipt. This system will guide you through the
creation of vendors list, purchase orders, products list, receiving lists, sales orders, and invoices. You
can maintain your inventory as well as databases in the most cost effective and suitable way.

Various reports are generated based on the requirement of the concern; reports will present the
management with the current position of the company. The project will be efficient tool for the
company and it will aid in the improvement of the company. In this system all the details about
issues assigned are stored in databases where the manager can retrieve information at any time.

ERP Software means keeping the overall costs associated with having inventory as low as
possible without creating problems. This is also sometimes called stock control. It is an important
part of any business that must have a stock of products or items on hand. Correctly managing
inventory control is a delicate balance at all times between having too much and too little in order to
maximize profits. The costs associated with holding stock, running out of stock, and placing orders
must all be looked at and compared in order to find the right formula for a particular business.

1
1.1 PROBLEM DEFINITION

After analyzing many existing IMS we have now the obvious vision of the project
to be developed. Before we started to build the application team had many challenges.We defined our
problem statement as:
o To make desktop based application of IMS for small organization.
o To make the system easily managed and can be secured.
o To cover all the areas of IMS like purchase details, sales details and stock management

1.2 OBJECTIVE OF THE PROJECT

The primary objectives of the project are mentioned below:


 To fulfill the requirement for achieving the Bachelor’s degree of Computer Information
System.
 To know the fundamentals of the .Net Technology and Visual Studio with the.Net
Framework

The secondary objectives of this project are mentioned below:

 To develop an application that deals with the day to day requirement of any production
organization
 To develop the easy management of the inventory
 To handle the inventory details like sales details, purchase details and balance stock
details.
 To provide competitive advantage to the organization.
 To provide details information about the stock balance.
 To make the stock manageable and simplify the use of inventory in the organization

2
1.3 SIGNIFICANCE OF THE PROJECT

● Improves the productivity, Reduce the Time and Cost Factors Associated with the systems.

● Helps to Easy Maintenance of Inventory System.

● Easy and Interactive for Organization and Dealers.

1.4 OUTLINE OF THE PROJECT


The Inventory Management System (IMS) refers to the system and processes to manage the
ERP of organization with the involvement of Technology system. This system can be used to store
the details of the Product Details, Supplier and Customer Details, stock maintenance, update the
stock based on the sales details, and generate purchase order and Sales report.

3
CHAPTER 2

LITERATURE REVIEW

Author - Miss. Divyarani Patil, Miss. Manasi Rawal, Miss. Savita Bandgar, Miss. Muskan
Pathan, Prof. J. T. Patil

To manage the organization's inventory system, this project aims to develop the Stock
Management System web application. By conducting the survey in several businesses and malls,
The word The term "stock management system" describes the processes and techniques utilized by
a business to manage its inventory while implementing technological solutions. This system can be
used to maintain track of inventory, update inventory depending on sales data, and produce daily or
weekly sales and inventory reports. Software called an inventory management system is useful for
companies that run hardware stores where the owner maintains records of sales and purchases.
Workplace mistakes, manual delays, and process speeding up. A store owner can use an inventory
management system to keep track of sales and available stock, as well as to determine when and
how much to reorder.

Keywords: Visual Studio, stock management system, Products, Sell.

A windows-based system called Inventory System is used to keep track of orders, sales, and
deliveries. Inventory management software's functions include maintaining an ideal stock level,
tracking products as they are moved between locations, receiving new inventory, managing
warehouse operations like Purchase Order, Sales Details, and Inventory, preventing product
obsolescence and spoilage, and making sure your products are always in stock. Stock management
software automates what was formerly a labor-intensive, manual process of counting each item one
at a time and documenting it on paper. This technique can be digitized to increase accuracy while
also saving time.

Today, it is increasingly popular to conduct business online in order to increase a company's


target market. Given that the customer can save time and consider it hassle-free, it becomes more
efficient. The sales system and inventory system combine to form a web-based system, which is the
most often used system by several businesses.

4
LITERATURE SURVEY

Decision Support System for Stock Alert Using Fuzzy Analytic Hierarchy Process and
Sequential Pattern Analysis Approach, R. Gustriansyah, D. I. Sensuse, and A. Ramadhan, 2021:
Before being supplied to the customer, pharmaceuticals are often stored in warehouses by
pharmacies. The difficulty of predicting the stock of each product to the right in order to avoid
excess/shortages arose since stacking products in a warehouse might decrease the productivity of
the warehouse and increase the costs connected with inventory. Development of an inventory
management system by Y. Fan, 2021: This paper introduces agent technology into domestic storage
management and uses the autonomy, reactivity, and sociality of agents to define interaction and
cooperation mechanisms among different agents, realising the seamless connection among
enterprises, achieving the goal of reducing and even eliminating inventory, making it a practical
idea and method for enterprises to realise effective storage management.

METHODOLOGY

By using Visual Studio.Net Stock management system is developed and also Microsoft Sql Server.
From .Net we have used web forms library to create forms and take input from user. And we’ve
used SQL to connect database and insert, update operations.

5
Above figure shows the system work i.e how actually system works. In the stock management
system when user starts this web application he/she will get a first page i.e Home page. In that he/she
needs to register his/her store if they are using this first time and after they can login. After this user
should have to add products of remaining stock from his/her store. Then after he/she can view how
stock is remaining and other all the information like Products arrived date, manufacture date and
expiry date. After this user can sell the products by selecting products and then user will get the bill
of his purchased order.

6
CHAPTER 3

SYSTEM ANALYSIS

System Analysis is about complete understanding of existing systems and finding where the
existing system fails. The solution is determined to resolve issues in the proposed system. It defines
the system. The system is divided into smaller parts. Their functions and inter relation of these
modules are studied in system analysis. Automatic Stock Alert software is required to act as an
interface into the digital world by understanding user requests or commands and then translating into
actions or recommendations based on agent’s understanding of the world

3.1 EXISTING SYSTEM

The system, which is followed at present, is a manual system. The system consists of Book of
Accounts that has to be maintained in all aspects. Printing work is difficult. In the existing system
each and every time a reference should be made manually. There are high possibilities to commit
errors and mistakes, which leads to produce the wrong statements to the management. Report
generation is also not an easy task.
Another important drawback of existing system is time factor. It will not help the management
could not act on any issue purchase of production unless getting the reports in time controls cannot
be used. The above said reasons are overcome by using the Visual Basic .Net. Since the security
system in this package is more secure than other software packages.

DRAWBACKS

 The existing system has no security measure against logging in and no checks are made for
authorized users.
 The end user has to remember a lot of command to make efficient use of the system.
 The system does not have any descriptive reports and thus did not help management in
decision-making.
 Enormous amount of time is consumed
 The end user has to remember a lot of command to make efficient use of the system.
 More manual Work Required, So Less Accurate.

7
3.2 PROPOSED SYSTEM

The proposed system is to computerize the orders and maintaining security of the data. The
aim of the proposed system is the overcome the difficulties of the existing system. It is continually
growing because of the ability to provide cost effective services and the execution of operations
under expertise of highly technical professionals. Our development team is a combination of skilled
individuals, who have been a part of development teams for some of the most renowned portals and
software applications.

ADVANTAGES

 Custom software solutions enable you to develop a software solution that maps your
unique business processes rather than changing your business processes to conform to what
”packaged software" provides.
 Custom software solutions enable efficient data processing matching your business
requirements.
 Custom software solutions enable you to monitor and control your business processes the
way you feel right for your business.
 Custom software solutions enable you to automate your business processes the way you
feel is best for your business meeting the unique needs of your business.
 Custom software solutions automate processes that you currently do manually.
 Custom software solutions enable you to take out Customized Reports as per your unique
business needs.

8
3.3 FEASIBILITY STUDY

An analysis and evaluation of a proposed project to determine if it is technically feasible, is


feasible within the estimated cost, and will be profitable. Feasibility studies are almost always
conducted where large sums are at stake. A feasibility study aims to objectively and rationally
uncover the strengths and weaknesses of an existing insurance agency applications and threats
present in the environment, the resources required to carry through, and ultimately the prospects for
success in the personal assistant.

3.3.1 Tests of Feasibility

Feasibility study is conducted once the problem is clearly understood. Feasibility study is
necessary to determine that the proposed system in insurance bot is feasible by considering the
technical, operational, and economical factors. By having a detailed feasibility study the management
in the will have a clear-cut view of the proposed system of the personal assistant. Feasibility study
encompasses the following things:

 Technical Feasibility

 Operational Feasibility

 Economical Feasibility

9
3.4.1.1 Technical Feasibility

Includes finding out technologies for the project, both hardware and software. For virtual
assistant, user must have microphone to convey their message and a speaker to listen when system
speaks. These are very cheap now a days and everyone generally possess them. Besides, system
needs internet connection .While using JIA, make sure you have a steady internet connection. It is
also not an issue in this era where almost every home or office has Wi-Fi.

3.4.1.2 Operational Feasibility

It is the ease and simplicity of operation of proposed System .System does not
require any special skill set for users to operate it. In fact, it is designed to be used by
almost everyone. Kids who still don’t know to write can readout problems for system.

3.4.1.3 Economical Feasibility

Here, we find the total cost and benefit of the proposed system over current system. For this
project, the main cost is documentation cost. User also would have to pay for microphone and
speakers. Again, they are cheap and available. As far as maintenance is concerned, JIA won’t cost
too much.

10
CHAPTER 4

SYSTEM SPECIFICATION

4.1 HARDWARE REQUIREMENTS

 Processor : Intel Dual Core


 Base memory size : 4 GB RAM
 Hard Disk capacity : 500GB and above
 Keyboards keys : 107 keys including 12 function
 Monitor : DELL

4.2 SOFTWARE REQUIREMENTS

 Language : VISUAL BASIC.NET


 Database : MICROSOFT SQL SERVER

11
CHAPTER 5

SOFTWARE DESCRIPTION

A software requirements specification (SRS) is a description of a software system to be


developed. It lays out functional and non-functional requirements, and may include a set of use cases
that describe user interactions that the software must provide. Software requirements specification
establishes the basis for an agreement between users and chat bot on what the software product is to
do as well as what it is not expected to do. Software requirements specification permits a rigorous
assessment of requirements before design can begin and reduces later redesign. It should also provide
a realistic basis for estimating product costs, risks, and schedules.

5.1 FRONT END – VISUAL BASIC.NET


Visual basic.NET 2008 is a version of Microsoft’s Visual Basic that was designed to make
web service application easier to develop. According to Microsoft, VB.NET was reengineered, rather
than released as VB 6.0 with added features to facilitate making fundamental changes to the language
VB.NET is the first fully object oriented programming version of Visual basic and hence support
OOP concepts such as abstraction, inheritance, polymorphism and aggregation.

FEATURES OF VVB.NET 2008:

Visual basic.NET provides the easiest, most productive language and too for rapidly building
Windows and Web applications. Visual basic.NET comes with enhanced visual designers, increased
application performance, and a powerful integrated development environment. It also supports
creation of applications for wireless Internet enabled hand held devices. Some of the important
features of VB.NET 2008 are as follow below.

Powerful Windows-based application: Visual basic.NET 2008 comes with features such as a
powerful new forms designer, an in-place menu editor, and automatic control and docking. Visual
basic.NET delivers new productivity features for building more robust applications easily and
quickly. With an improved integrated development environment and a significantly reduced Start-up
time, VB.NET offers fast, automatic formatting of code as you type, improved Intelligence , an
enhanced object browser and XML designer and much more.

12
Powerful, flexible, simplified data access: You can tackle any data access scenario easily with
ADO.NET and ADO data access. The flexibility of ADO.NET enables data binding to any database,
as well as classes, collection, and arrays, and providers true XML representation of data. Seamless
access to ADO.NET, Visual Basic.NET can gain high-speed access to MS SQL Server, Oracle, DB2,
Microsoft Access and more.
Improved coding: you can code faster and more efficiency. A multitude of enhancement to the
code editor, including enhanced intelligence, smart listing of code for greater readability and a
background compile for real-time notification of syntax errors transform into a rapid application
development coding machine.

Directed access to the coding: Visual basic developers can have full access to the capabilities
available in .NET Framework 1.1 Developers can easily program system services including the event
log, performance counters and file system. The new Windows Services project system services
including the event log, performance counters and files system. The new windows Services project
template enables to build real Microsoft Windows NT services. Programming against windows
Services and creating new windows Services is not available in Visual Basic.NET standard, it
requires Visual studio 2008 professional, or higher.
Full Object-Oriented Constructs: You can create reusable, enterprises-class code using Full
object-oriented constructs, Language features include full implementation inheritance, Encapsulation,
and polymorphism. Structured exception handling provides a global error Handler and eliminating
spaghetti code.
Reuse existing investment: you an reuse all your existing active controls. Windows Forms in
Visual Basic.NET 2008 provide a robust container for existing ActiveX controls. In Addition, full
support for existing ADO code and data hiding enables a smooth transition to Visual basic.NET
2008.
Upgrade wizards: you upgrade your code to receive all of the benefits of Visual Basic .NET
2008. The Visual Basic.NET upgrade Wizard, available in Visual Basic .NET 2008 Standard Edition,
and higher, upgrade up to 95 percent of existing Visual Basic code and forms. To visual Basic.NET
with new support for web classes and user controls.

13
To get the most out of Visual Studio .NET, you will most likely wish to tailor it to suit your
style of working. With the wide variety of configuration options, both familiar and new, you'll want
to take the time examine some of the various options you can set. In this document, you will be
introduced to many of the different configurations and learn about the various settings in Visual
Studio .NET. You will also learn about the different types of windows, including Tool windows,
which can be docked to the environment or free floating, and you'll learn about Document windows.
CONFIGURATION
The first time you use Visual Studio .NET, you will be prompted for some configuration
information about how you will use the environment most often. Figure 1 shows an example of the
My Profile screen.
The My Profile Screen allows you to set some overall environment defaults.

Figure 1. Set the configuration on the My Profile Screen

VISUAL STUDIO START PAGE

If you choose to have the start-up page as the Visual Studio Start Page, you will see a screen that
looks similar to Figure 2.

14
Figure 2. Visual Studio start page

Figure 2 The Visual Studio Start page allows you to start a recent project, open an existing project, or
create a new project. On this screen, there is a menu on the left side that will let you link to what’s New Help
menu. You can see a list of online community links, where you can get assistance with Visual Studio .NET
and many other Microsoft products. You can get the headlines for MSDN news, and you have the ability to
Search the MSDN site for information related to Visual Studio. You can also reset your profile. On the Get
Started page you can select a recent project, create a new project, or open an existing project. 4.4

CREATING A NEW PROJECT

In Visual Studio .NET, if from the File menu you click New and then Project, you will see a dialog
that looks like Figure 3. When putting together an application in Visual Studio .NET, you may have multiple
projects. The set of projects together make up what is called a Solution.

15
Figure 3. The New Project dialog box

Figure 3. The New Project dialog box allows you to create a new Solution of a particular project type

On the left side of this screen, you can choose what type of project you will be creating. Depending on
the options you selected when you installed your Visual Studio environment, you can choose from a Visual
Basic .NET, C#, C++, and possibly other programming languages. Not all of these languages for Visual
Studio come from Microsoft; there are other companies developing applications that will use the .NET
Framework.

On the right side of this screen, you can choose a default template for the type of project you will be
creating. There are many different templates to choose from. Table 2 provides a list of some of these project
template types.

Prior to adding a new project to this solution, you need to set the Name and Path where this project
will reside on your hard drive. Fill in the path for where you want this project to reside in the Location text
box. Visual Studio .NET creates the necessary path, and will create a folder name with the same name as the
project. For example, if you fill in the Name Login Test, and set path to D:\MySamples, this solution will be
created in D:\MySamples\LoginTest\LoginTest.sln.

16
SOLUTION EXPLORER WINDOW

A set of projects that are part of the same application in Visual Studio .NET is called a Solution. The
Solution Explorer window shows you a tree view list of each project, each project's references, and each
project's components. If this window is closed, you can open it from the View menu by clicking Solution
Explorer. Components may be made up of forms, classes, modules, and any other file types it takes to create
your application. Double-click on an item in order to edit that item within the IDE.

Figure 4. Solution Explorer


Figure 4. The Solution Explorer gives you a graphical representation of all of the files that make up your
project(s)

PROPERTY WINDOW

When working with classes such as text boxes and forms, you will most likely need to change certain
attributes about those classes. To bring up the Properties window, on the View menu click Properties
Window (F4). (See Figure 5.) Once this window is up, you can either view the list alphabetically or
categorized by attribute. Properties within this window can be selected either from a list or by clicking a
button to bring up a dialog box. There may be others you type some text into, like the Text property that is
used to change the title of a form.

17
Figure 5. This shows us Property Window, used to set the parameters of our screen dialog box

5.2 BACK END : MICROSOFT SQL SERVER


MS SQL Server is a powerful database management system and the user can create
application that requires little or no programming. It supports GUI features and an entire
programming language, Visual Studio Application which can be used to develop richer and more
developed application.
There are quite a few reasons, the first being that SQL is a feature rich program that can handle
any database related task you have. You can create places to store your data build tools that make it
easy to read and modify your database contents, and ask questions of your data. SQL is a relational
database, a database that stores information about related objects. In MS SQL that database means a
collection of tables that hold data. It collectively stores all the other related objects such as queries,
forms and reports that are used to implement function effectively.
The MS SQL database can act as a back end database for .NET as a front end, MS SQL
supports the user with its powerful database management functions. A beginner can create his/her
own database very simply by some mouse clicks. Another good reason to use SQL as backend tool is

18
that it is a component of the overwhelmingly popular Microsoft office software suite.
MS SQL however is a relational database, which means that you can define relationships
among the data it contains. Relational database, are superior to flat file databases because you can
store discrete information.
Microsoft SQL Server is a full-featured relational database management system (RDBMS) that offers
a variety of administrative tools to ease the burdens of database development, maintenance and
administration. In this article, we'll cover six of the more frequently used tools: Enterprise Manager,
Query Analyzer, SQL Profiler, Service Manager, Data Transformation Services and Books Online.
Let's take a brief look at each:
Enterprise Manager is the main administrative console for SQL Server installations. It
provides you with a graphical "birds-eye" view of all of the SQL Server installations on your
network. You can perform high-level administrative functions that affect one or more servers,
schedule common maintenance tasks or create and modify the structure of individual databases.
Query Analyzer offers a quick and dirty method for performing queries against any of your
SQL Server databases.It's a great way to quickly pull information out of a database in response to a
user request, test queries before implementing them in other applications, create/modify stored
procedures and execute administrative tasks.
SQL Profiler provides a window into the inner workings of your database. You can monitor
many different event types and observe database performance in real time. SQL Profiler allows you
to capture and replay system "traces" that log various activities. It's a great tool for optimizing
databases with performance issues or troubleshooting particular problems.

Service Manager is used to control the MSSQLServer (the main SQL Server process),
MSDTC (Microsoft Distributed Transaction Coordinator) and SQLServerAgent processes. An icon
for this service normally resides in the system tray of machines running SQL Server. You can use
Service Manager to start, stop or pause any one of these services.
Data Transformation Services (DTS) provide an extremely flexible method for importing
and exporting data between a Microsoft SQL Server installation and a large variety of other formats.
The most commonly used DTS application is the "Import and Export Data" wizard found in the
server program group.
Books Online is an often overlooked resource provided with SQL Server that contains
19
answers to a variety of administrative, development and installation issues. It's a great resource to
consult before turning to the Internet or technical support. Hopefully, this article has provided you
with a brief introduction to the various tools available to Microsoft SQL Server users. Now get out
there and give them a whirl!
SQL Server Architecture

Microsoft® SQL Server data is stored in databases. The data in a database is organized into
the logical components visible to users. A database is also physically implemented as two or more
files on disk. When using a database, you work primarily with the logical components such as tables,
views, procedures, and users. The physical implementation of files is largely transparent. Typically,
only the database administrator needs to work with the physical implementation.
Each instance of SQL Server has four system databases (master, model, tempdb, and msdb)
and one or more user databases. Some organizations have only one user database, containing all the
data for their organization. Some organizations have different databases for each group in their
organization, and sometimes a database used by a single application. For example, an organization
could have one database for sales, one for payroll, one for a document management application, and
so on. Sometimes an application uses only one database; other applications may access several
databases.
It is not necessary to run multiple copies of the SQL Server database engine to allow multiple
users to access the databases on a server. An instance of the SQL Server is capable of handling
thousands of users working in multiple databases at the same time. Each instance of SQL Server
makes all databases in the instance available to all users that connect to the instance, subject to the
defined security permissions.
When connecting to an instance of SQL Server, your connection is associated with a particular
database on the server. This database is called the current database.

20
CHAPTER 6

PROJECT DESCRIPTION

Manufacturing ERP for Purchase Order Inventory System is a windows process developed for
organization to simplify Inventory maintenance and Placing Order.

6.1 OVERVIEW OF THE PROJECT


A collection of data designed to be used by different people is called a database. It is a
collection interrelated data stored together with controlled redundancy to serve one or more
applications in an optional fashion. The data is stored in such a fashion that it is independent of the
programs of people using the data. A common and controlled approach is used in adding new data
and modifying and retrieving existing data within the database.
1. Product Details
2. Supplier Details
3. Customer Details
4. Purchase Details
5. Sales Details
6. Stock Details

6.2 MODULE DESCRIPTION


6.2.1 PRODUCT DETAILS:

This Module Mainly concentrates on complete details about the product to the concerns.
These modules have the fields of product code, product name, product price, product description.
Due to this module User can know the facts of product name and their prices.

6.2.2 SUPPLIER DETAILS

This module is use to sustain the data of suppliers offering different products and retailers

21
purchasing different grades of finished goods which includes supplier number, supplier name, and
address, phone no and Mail ID.

6.2.3 CUSTOMER DETAILS

In this option we can add, edit or delete a specified customer details. The Add new option is
used to add new details of customer. If any of the customer details like Name or Address details is to
be changed then choose Edit for modification. If we want to delete the details of a customer choose
Abort option.

6.2.4 PURCHASE INVOICE

Purchase invoice is the important module in this project .in this module the user can maintain
the whole details of the purchase invoice .This module contains the fields of invoice no, supplier
code, supplier name, product code, unit price, qty etc. The important thing in this module is the user
can calculate the vat details

6.2.5 SALES DETAILS

This module is used to manage the sale’s information for the company. It includes Sales iD,
Date, Customer, Total Amount, Tax and Net Amount for every sales of the company along with the
complete details of product, quantity, rate at which the product is being sold and the discount that the
company provides to the customers.

6.2.6 STOCK MAINTENANCE

The company needs enough products to keep the ongoing production at a steady level. So, keeping
details of the product in the stock is necessary. This module is used to maintain the enough stock of product
to support the transformation of different products. This module takes care of the stock as per the shift (day /
night) and type of product to be generated.

22
6.3 DATAFLOW DIAGRAM

A Data Flow Diagram (DFD) is a traditional visual representation of the information flows
within a system. A neat and clear DFD can depict the right amount of the system requirement
graphically. It can be manual, automated, or a combination of both.

It shows how data enters and leaves the system, what changes the information, and where data
is stored. A data-flow diagram is a way of representing a flow of data through a process or a system
(usually an information system). The DFD also provides information about the outputs and inputs of
each entity and the process itself. A data-flow diagram has no control flow — there are no decision
rules and no loops.

23
Circle: A circle (bubble) shows a process that transforms data inputs into data outputs.

Data Flow: A curved line shows the flow of data into or out of a process or data store.

Data Store: A set of parallel lines shows a place for the collection of data items. A data store
indicates that the data is stored which can be used at a later stage or by the other processes in a
different order. The data store can have an element or group of elements.

Source or Sink: Source or Sink is an external entity and acts as a source of system inputs or sink of
system outputs.

0-level DFDM

It is also known as fundamental system model, or context diagram represents the entire software
requirement as a single bubble with input and output data denoted by incoming and outgoing arrows.
24
1-level DFD

In 1-level DFD, a context diagram is decomposed into multiple bubbles/processes. In this level, we
highlight the main objectives of the system and breakdown the high-level process of 0-level DFD
into sub processes.

2-Level DFD

2-level DFD goes one process deeper into parts of 1-level DFD. It can be used to project or
record the specific/necessary detail about the system's functioning.

25
26
Fig.6.3 Dataflow diagram

27
6.4 ER DIAGRAM

Entity-relationship (ER) diagram, a graphical representation of entities and their relationships to each other,
typically used in computing in regard to the organization of data within databases or information systems. An entity is a
piece of data-an object or concept about which data is stored. A relationship is how the data is shared between entities.
There are three types of relationships between entities:

One-to-One

One instance of an entity (A) is associated with one other instance of another entity (B). For example,
in a database of employees, each employee name (A) is associated with only one social security number (B).

One-to-Many

One instance of an entity (A) is associated with zero, one or many instances of another entity (B), but
for one instance of entity B there is only one instance of entity A. For example, for a company with all
employees working in one building, the building name (A) is associated with many different employees (B),
but those employees all share the same singular association with entity A.

Many-to-Many

One instance of an entity (A) is associated with one, zero or


many instances of another entity (B), and one instance of entity B is
associated with one, zero or many instances of entity A. For example,
28
for a company in which all of its employees work on multiple projects, each instance of an employee (A) is
associated with many instances of a project (B), and at the same time, each instance of a project (B) has
multiple employees (A) associated with it.

Fig.6.4 ER diagram

29
CHAPTER 7

SYSTEM TESTING
System Testing is a level of the software testing where complete and integrated software is
tested. The purpose of this test is to evaluate the system's compliance with the specified
requirements. By definition of ISTQB system testing is the process of testing an integrated system to
verify that it meets specified.

7.1 TESTING METHODS


Software Testing Type is a classification of different testing activities into categories, each
having, a defined test objective, test strategy, and test deliverables. The goal of having a testing type
is to validate the Application under Test for the defined Test Objective.
For instance, the goal of Accessibility testing is to validate the AUT to be accessible by disabled
people. So, if your Software solution must be disabled friendly, you check it against Accessibility
Test Cases.

7.2 TYPES OF TESTING


7.2.1 Unit Testing
In computer programming, unit testing is a software testing method by which individual units
of source code, sets of one or more computer program modules together with associated control data,
usage procedures, and operating procedures, are tested to determine whether they are fit for use.
In this personal assistant, every units of code is been tested and the correctness of every
module is been ensured.

7.2.2 Integration Testing


Integration testing (sometimes called integration and testing, abbreviated I&T) is the phase in
software testing in which individual software modules are combined and tested as a group. It occurs
after unit testing and before validation testing. Integration testing takes as its input modules that have
been unit tested, groups them in larger aggregates, applies tests defined in an integration test plan to
those aggregates, and delivers as its output the integrated system ready for system testing.
In this personal assistant, the units are been tested as a whole and the testing was successful.

30
7.2.3 Functional Testing
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.
Functional testing is centered on the following items:
Valid Input : identified classes of valid input must be accepted.
Invalid Input : identified classes of invalid input must be rejected.
Functions : identified functions must be exercised.
Output : identified classes of application outputs must be exercised.
Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key functions, or


special test cases. In addition, systematic coverage pertaining to identify Business process flows; data
fields, predefined processes, and successive processes must be considered for testing. Before
functional testing is complete, additional tests are identified and the effective value of current tests is
determined.

7.2.4 Validation Testing

Verification testing includes different activities such as business requirements, system requirements, design
review, and code walkthrough while developing a product.

It is also known as static testing, where we are ensuring that "we are developing the right product or not".
And it also checks that the developed application fulfilling all the requirements given by the client.

Validation testing is testing where tester performed functional


and non-functional testing. Here functional testing includes Unit
Testing (UT), Integration Testing (IT) and System Testing (ST),
and non-functional testing includes User acceptance testing (UAT).
Validation testing is also known as dynamic testing, where we
are ensuring that "we have developed the product right." And it
also checks that the software meets the business needs of the client.

31
7.2.5 Acceptance Testing
Acceptance Testing is a level of the software testing where a system is tested for
acceptability. The purpose of this test is to evaluate the system’s compliance with the business
requirements and assess whether it is acceptable for delivery.
Formal testing with respect to user needs, requirements, and business processes conducted to
determine whether or not a system satisfies the acceptance criteria and to enable the student, admin
or other authorized entity to determine whether or not to accept the system.

32
CHAPTER 8

SYSTEM IMPLEMENTATION

The implementation phase is less creative than system design. A system design may be dropped at any time
prior to implementation, although it becomes more difficult when it goes to the design phase. The final report of the
implementation phase includes procedural flowcharts, record layouts, and a workable plan for implementing the
candidate system design into a operational design.

6.3.2 USER TRAINING


It is designed to prepare the users for testing & converting the system. There is several ways to trail the
users they are:

1) User manual
2) Training demonstrations.

1) User manual:
The summary of important functions about the system & software can be provided as a document to the
user. User training is designed to prepare the user for testing and convening a system
The summary of important functions about the system and the software can be provided as a document to the
user
1. Open http page
2. Type the file name with URL index.html in the address bar
3. Index is opened existing user the type the username and password
4. Click the submit button

2) Training demonstration:

Another user training element is a training demonstration. Live demonstration with personal contact is
extremely effective for training users.

33
CHAPTER 9

CONCLUSION & FUTURE ENHANCEMENTS

9.1 CONCLUSION

The “Manufacturing ERP for Purchase Order Inventory System” has been developed to
satisfy all proposed requirements. The process of customer, Supplier, product, sales, Purchase, Bill
details is maintained more simple and easy. The system is highly scalable and user friendly. Almost
all the system objectives have been met. The system has been tested under all criteria. The system
minimizes the problem arising in the existing manual system and it eliminates the human errors to
zero level. The design of the database is flexible ensuring that the system can be implemented. It is
implemented and gone through all validation.
All phases of development were conceived using methodologies. User with little training can
get the required report. The software executes successfully by fulfilling the objectives of the project.
Further extensions to this system can be made required with minor modifications.

9.2 FUTURE ENHANCEMENT

In Future My Billing software system is implemented to the most sophisticated web based
billing system. This web based software has been designed especially for small & midsized
businesses. My Billing system is the most reliable, flexible and scalable billing software that helps
streamline billing while considerably reducing operating costs. I have an Idea future billing system
must include with partial access features (Like privacy in face-book) we can actually grant access to
the users.

34
CHAPTER 10

APPENDIX

10.1. TABLE DESIGN

TABLE NAME : PRO_DET


PRIMARY KEY : PRO_ID

FIELD NAME DATA TYPE DESIGNATION


Pro_id Varchar(6) Product ID
Pro_name Varchar(20) Product Name
Qty Int Quantity
Pro_price Int Product Price
Pro_desc Varchar(20) Product Description

TABLE NAME : SUP_DET


PRIMARY KEY : SUP_ID

FIELD NAME DATA TYPE DESIGNATION


Sup_id Varchar(6) Supplier id
Sup_ name Varchar(10) Supplier name
Addr Varchar(20) Address
Cont_no Numeric Contact Number
Mailid Varchar(10) Mail id

TABLE NAME : CUS_DET


PRIMARY KEY : CUS_ID

FIELD NAME DATA TYPE DESIGNATION


Cus_id Varchar(6) Customer id
Cus_ name Varchar(10) Customer name
Addr Varchar(20) Address
Cont_no Numeric Contact Number
Mailid Varchar(10) Mail id

35
TABLE NAME : ORD_DET
PRIMARY KEY : ORD_ID
FOREIGN KEY : CUS_ID

FIELD NAME DATA TYPE DESIGNATION


Ord_id Int Order ID
Ord_dt DateTime Order Date
Cus_id Varchar(6) Customer ID
Sno Int Serial No
Prod Varchar(20) Product Name
Unit_price Int Unit Price
Qty Int Quantity
Disc Int Discount
Tot_amt Int Total Amount

TABLE NAME : PUR_DET


PRIMARY KEY : PUR_ID
FOREIGN KEY : SUP_ID

FIELD NAME DATA TYPE DESIGNATION


Pur_id Int Purchase ID
Pur_dt DateTime Purchase Date
Sup_id Varchar(6) Supplier ID
Sno Int Serial No
Prod Varchar(20) Product Name
Unit_price Int Unit Price
Qty Int Quantity
GST Int Sales Tax
Tot_amt Int Total Amount

36
TABLE NAME : SAL_DET
PRIMARY KEY : SAL_ID
FOREIGN KEY : CUS_ID

FIELD NAME DATA TYPE DESIGNATION


Sal_id Int Sales ID
Sal_dt DateTime Sales Date
Cus_id Varchar(6) Customer ID
Sno Int Serial No
Prod Varchar(20) Product Name
Unit_price Int Unit Price
Qty Int Quantity
GST Int Sales Tax
Tot_amt Int Total Amount

TABLE NAME : STO_DET


FOREIGN KEY : PRO_ID

FIELD NAME DATA TYPE DESIGNATION


Dt DateTime Date
Pro_id Int Product ID
Pro_name Varchar(20) Product Name
Sto_lev Int Stock Level

37
10.2 SCREENSHOTS

LOGIN PAGE

Fig 10.2.1 Login Page

38
MAIN FORM

Fig 10.2.2 Master Maintenance

39
MAIN FORM

Fig 10.2.3 Transaction

40
PRODUCT DETAILS

Fig 10.2.4 Product Details

41
SUPPLIER DETAILS

Fig 10.2.5 Supplier Details

42
CUSTOMER DETAILS

Fig 10.2.6 Customer Details

43
ORDER DETAILS

Fig 10.2.7 Order Details

44
PURCHASE DETAILS

Fig 10.2.8 Purchase Details

45
SALES DETAILS

46
Fig 10.2.9 Sales Details

STOCK DETAILS

Fig 10.2.10 Stock Details

47
REPORTS

PRODUCT REPORT

Fig 10.2.11 Product Report

48
SUPPLIER REPORT

Fig 10.2.12 Supplier Report

49
CUSTOMER REPORT

Fig 10.2.13 Customer Report

50
ORDER REPORT

Fig 10.2.14 Order Report

51
PURCHASE REPORT

Fig 10.2.15 Purchase Report

52
SALES REPORT

Fig 10.2.16 Sales Report

53
STOCK REPORT

Fig 10.2.17 Stock Report

54
10.3 SAMPLE CODE

LOGIN PAGE

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
If uname.Text = "" Or pwd.Text = "" Then
MsgBox("Please Enter Username And Password Then Login",
MsgBoxStyle.Information)
ElseIf UCase(uname.Text) = "ADMIN" And UCase(pwd.Text) = "ADMIN" Then
Me.Hide()
Dim f As New Main_frm
f.Show()
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
End
End Sub

MAIN FORM

Public Class Main_frm

Private Sub PRODUCTDETAILSToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles PRODUCTDETAILSToolStripMenuItem.Click
Dim f As New Product
f.Show()
End Sub

Private Sub SUPPLIERDETAILSToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles SUPPLIERDETAILSToolStripMenuItem.Click
Dim f As New Supplier
f.Show()
End Sub

Private Sub CUSTOMERDETAILSToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CUSTOMERDETAILSToolStripMenuItem.Click
Dim f As New Customer
f.Show()
End Sub

Private Sub PURCHASEToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles PURCHASEToolStripMenuItem.Click
Dim f As New Order
f.Show()
End Sub

55
Private Sub SALESToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles SALESToolStripMenuItem.Click
Dim f As New purchase
f.Show()
End Sub

Private Sub STOCKToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles STOCKToolStripMenuItem.Click
Dim f As New Stock
f.Show()
End Sub

Private Sub PRODUCTREPORTToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles PRODUCTREPORTToolStripMenuItem.Click
Dim f1 As New PROD_REP_1
f1.Show()
End Sub

Private Sub SUPPLIERREPORTToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles SUPPLIERREPORTToolStripMenuItem.Click
Dim f1 As New ZSUPP_REP
f1.Show()
End Sub

Private Sub CUSTOMERREPORTToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CUSTOMERREPORTToolStripMenuItem.Click
Dim f1 As New ZCUST_REP_3
f1.Show()
End Sub

Private Sub ORDERREPORTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles ORDERREPORTToolStripMenuItem.Click
Dim f1 As New ZORD_REP_2
f1.Show()
End Sub

Private Sub PURCHASEREPORTToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles PURCHASEREPORTToolStripMenuItem.Click
Dim f1 As New ZPURR_REP
f1.Show()
End Sub

Private Sub SALESREPORTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles SALESREPORTToolStripMenuItem.Click
Dim f1 As New ZSALL_REP
f1.Show()
End Sub

Private Sub STOCKREPORTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles STOCKREPORTToolStripMenuItem.Click
Dim f1 As New ZSTO_REP
f1.Show()
End Sub

Private Sub EXITToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles EXITToolStripMenuItem.Click
End
56
End Sub

Private Sub SALESToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles SALESToolStripMenuItem2.Click
Dim f As New Sal_Invoice
f.Show()
End Sub

PRODUCT DETAILS

Imports System.Data.SqlClient

Public Class Product


Inherits System.Windows.Forms.Form
Dim con As New SqlConnection("Data Source=KANYA;Initial
Catalog=Inventory;uid=sa;password=sql")
Dim com As SqlCommand
Dim qry As String
Dim adp As SqlDataAdapter
Dim ds As DataSet
Dim i As Integer
Dim p As String

Private Sub badd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles badd.Click
pname.Text = ""
qty.Text = ""
price.Text = ""
prod_desc.Text = ""
incr()

End Sub

Private Sub incr()


Try

Dim p As String
qry = "select pro_code from pro_det"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "pro_det")
i = ds.Tables("pro_det").Rows.Count
p = ds.Tables("pro_det").Rows(i - 1)(0)
p = Mid(p, 2)
p = Val(p) + 1
If Len(p) = 1 Then
p = "000" + p
ElseIf Len(p) = 2 Then
p = "00" + p
ElseIf Len(p) = 3 Then
p = "0" + p
End If
pcode.Text = "P" + p
Catch ex As Exception
pcode.Text = "P0001"

57
End Try
End Sub

Private Sub Product_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
incr()

End Sub

Private Sub bsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles bsave.Click
If pcode.Text = "" Or pname.Text = "" Or qty.Text = "" Or price.Text = "" Then
MsgBox("Please Enter All Values Then Save", MsgBoxStyle.Information)
Else
qry = "insert into pro_det values('" + pcode.Text + "','" + pname.Text +
"','" + qty.Text + "','" + price.Text + "','" + prod_desc.Text + "')"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteScalar()
con.Close()
MsgBox("Successfully Saved", MsgBoxStyle.Information, "Inventory")

pname.Text = ""
qty.Text = ""
price.Text = ""
prod_desc.Text = ""

incr()

End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Dim s As String
s = InputBox("Enter Product Code:")
Try
qry = "select pro_name,qty,price,pro_desc from pro_det where pro_code='" + s
+ "'"
com = New SqlCommand(qry, con)
adp = New SqlDataAdapter(com)
ds = New DataSet
adp.Fill(ds, "pro_det")
pcode.Text = s
pname.Text = ds.Tables("pro_det").Rows(0)(0)
qty.Text = ds.Tables("pro_det").Rows(0)(1)
price.Text = ds.Tables("pro_det").Rows(0)(2)
prod_desc.Text = ds.Tables("pro_det").Rows(0)(3)

Catch ex As Exception
MsgBox("Please Enter Correct Product Code", MsgBoxStyle.Information)
End Try

End Sub

Private Sub bedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles bedit.Click
58
If pcode.Text = "" Or pname.Text = "" Or qty.Text = "" Or price.Text = "" Or
prod_desc.Text = "" Then
MsgBox("Please Search Any One Product Detail Then Edit",
MsgBoxStyle.Information)
Else
qry = "update pro_det set pro_name='" + pname.Text + "',qty='" + qty.Text +
"',price='" + price.Text + "',pro_desc='" + prod_desc.Text + "' where pro_code='" +
pcode.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteScalar()
con.Close()
MsgBox("Successfully Edited")

pname.Text = ""
qty.Text = ""
price.Text = ""
prod_desc.Text = ""
incr()
End If
End Sub

Private Sub bdel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles bdel.Click

If pcode.Text = "" Or pname.Text = "" Or qty.Text = "" Or price.Text = "" Or


prod_desc.Text = "" Then
MsgBox("Please Search Any One Product Detail Then Edit",
MsgBoxStyle.Information)
Else
qry = "delete from pro_det where pro_code='" + pcode.Text + "'"
com = New SqlCommand(qry, con)
con.Open()
com.ExecuteScalar()
con.Close()
MsgBox("Successfully Deleted")

pname.Text = ""
qty.Text = ""
price.Text = ""
prod_desc.Text = ""

incr()
End If
End Sub

Private Sub bexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles bexit.Click
Me.Close()
End Sub

End Class

59
INVOICE DETAILS

Imports System.Data.SqlClient

Public Class Sal_Invoice

Dim con As New SqlConnection("Data Source=MALAR-PC;Initial


Catalog=Inventory;uid=sa;password=sql")
Dim cmd, cmd1, cmd2, cmd3 As New SqlCommand
Dim qry, qry1, qry2, qry3 As String
Dim da, da1, da2, da3 As New SqlDataAdapter
Dim ds, ds1, ds2, ds3 As New DataSet
Dim i, j, i1, j1, i2, j2, k, m, i3, j3, v As Integer

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
Me.Close()

End Sub

Private Sub Sal_Invoice_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load

incr()
incr_sno()

dt.Text = Date.Today

qry = "select distinct ord_code from ord_det"


cmd = New SqlCommand(qry, con)
da = New SqlDataAdapter(cmd)
ds = New DataSet
da.Fill(ds, "ord_det")
i = ds.Tables("ord_det").Rows.Count

For j = 0 To i - 1
ord_no.Items.Add(ds.Tables("ord_det").Rows(j)(0))
Next

qry3 = " select pro_code from pro_det"


cmd3 = New SqlCommand(qry3, con)
da3 = New SqlDataAdapter(cmd3)
ds3 = New DataSet
da3.Fill(ds3, "pro_det")
i3 = ds3.Tables("pro_det").Rows.Count

For j3 = 0 To i3 - 1
pro_name.Items.Add(ds3.Tables("pro_det").Rows(j3)(0))
Next
60
End Sub

Private Sub amt_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


amt.Click
Dim k1, k2 As String
k1 = Val(unit_price.Text) * Val(qty.Text)
k2 = Val(k1) * (Val(vat.Text) / 100)
amt.Text = Val(k1) + Val(k2)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click

clear()
MsgBox("Saved", MsgBoxStyle.Information)
incr()
End Sub

Private Sub incr()


Try
qry = " select inv_no from sal_Inv"
cmd = New SqlCommand(qry, con)
da = New SqlDataAdapter(cmd)
ds = New DataSet
da.Fill(ds, "sal_Inv")
i = ds.Tables("sal_Inv").Rows.Count
k = ds.Tables("sal_Inv").Rows(i - 1)(0)
k = k + 1
inv_no.Text = k
Catch ex As Exception
inv_no.Text = 1
End Try

End Sub

Private Sub incr_sno()

Try
qry2 = " select sno from sal_inv where inv_no='" + inv_no.Text + "' order by
inv_no asc"
cmd2 = New SqlCommand(qry2, con)
da2 = New SqlDataAdapter(cmd2)
ds2 = New DataSet
da2.Fill(ds2, "sal_inv")
i2 = ds2.Tables("sal_inv").Rows.Count
j2 = ds2.Tables("sal_inv").Rows(i2 - 1)(0)
sno.Text = Val(j2) + 1
Catch ex As Exception
sno.Text = "1"
End Try

End Sub

61
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

qry = "insert into sal_Inv values ('" + inv_no.Text + "','" + dt.Text + "','" +
ord_no.Text + "','" + comp_name.Text + "','" + sno.Text + "','" + pro_name.Text + "','"
+ unit_price.Text + "','" + qty.Text + "','" + vat.Text + "','" + amt.Text + "','" +
trans.SelectedItem + "','" + veh_no.Text + "','" + tin_no.Text + "')"
cmd = New SqlCommand(qry, con)
con.Open()
cmd.ExecuteScalar()
con.Close()
MsgBox("Saved", MsgBoxStyle.Information)

pro_name.Text = ""
sno.Text = ""
pro_name.Text = ""
unit_price.Text = ""
qty.Text = ""
vat.Text = ""
amt.Text = ""
incr_sno()
bind()
End Sub

Private Sub bind()


qry1 = " select * from sal_Inv where Inv_no='" + inv_no.Text + "'"
cmd1 = New SqlCommand(qry1, con)
da1 = New SqlDataAdapter(cmd1)
ds1 = New DataSet
da1.Fill(ds1, "sal_Inv")
DataGridView1.DataSource = ds1
DataGridView1.DataMember = "sal_Inv"

End Sub
Private Sub clear()
inv_no.Text = ""
ord_no.Text = ""
ord_no.Text = ""
comp_name.Text = ""
pro_name.Text = ""
sno.Text = ""
pro_name.Text = ""
unit_price.Text = ""
qty.Text = ""
vat.Text = ""
amt.Text = ""
trans.Text = ""
veh_no.Text = ""
tin_no.Text = ""

End Sub

Private Sub ord_no_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles ord_no.SelectedIndexChanged
pro_name.Items.Clear()
qry1 = "select cname from ord_det where ord_code=" & ord_no.SelectedItem
62
cmd1 = New SqlCommand(qry1, con)
da1 = New SqlDataAdapter(cmd1)
ds1 = New DataSet
da1.Fill(ds1, "ord_det")
i1 = ds1.Tables("ord_det").Rows.Count

comp_name.Text = ds1.Tables("ord_det").Rows(j1)(0)

qry2 = "select distinct prod from ord_det where ord_code=" & ord_no.SelectedItem
cmd2 = New SqlCommand(qry2, con)
da2 = New SqlDataAdapter(cmd2)
ds2 = New DataSet
da2.Fill(ds2, "ord_det")
i2 = ds2.Tables("ord_det").Rows.Count

For j2 = 0 To i2 - 1
pro_name.Items.Add(ds2.Tables("ord_det").Rows(j2)(0))
Next

End Sub

Private Sub pro_name_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles pro_name.SelectedIndexChanged
qry3 = " select uprice,qty from ord_Det where prod='" & pro_name.SelectedItem &
"'"
cmd3 = New SqlCommand(qry3, con)
da3 = New SqlDataAdapter(cmd3)
ds3 = New DataSet
da3.Fill(ds3, "ord_Det")
i3 = ds3.Tables("ord_Det").Rows.Count
unit_price.Text = ds3.Tables("ord_Det").Rows(0)(0)
qty.Text = ds3.Tables("ord_Det").Rows(0)(1)
End Sub

Private Sub vat_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles


vat.Click
v = Val(unit_price.Text) * Val(qty.Text)
vat.Text = Val(v) * (10 / 100)
End Sub

End Class

63
64
CHAPTER 11

REFERENCES

 Elias Awath, “SYSTEM ANALYSIS AND DESIGN”,Tata Mc Graw Hill Publication, Sixth

Edition,2003

 S.Ramachandran,”COMPUTER AIDED DESIGN”, Air Walk Publication, Third

Edition,2003

 Richard Fairley,”SOFTWARE ENGINEERING CONCEPTS”,Tata Mc Graw Hill Publication,

Second Edition,1997

 Distributed .NET Programming in V .NET by Tom Barnaby

 Professional VB.NET, 2nd Edition by Fred Barwell, et al

 The .NET Languages: A Quick Translation Guide by Brian Bischof

 Programming VB.NET: A Guide for Experienced Programmers by Gary Cornell,

Jonathan Morrison

65

You might also like