0% found this document useful (0 votes)
188 views24 pages

Employee Payment Management System: Submitted To

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
188 views24 pages

Employee Payment Management System: Submitted To

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Employee Payment Management System

On Summer Training Project Report at

Bachelor of Engineering
In
Information Technology
Submitted by
Lalit Sharma: (Roll No. 16UITE9019)

Submitted to
Prof. Dr. N.C Barwar
(Head)

Department of Computer Science and Engineering


M.B.M. Engineering College
Faculty of Engineering & Architecture
Jai Narain Vyas University, Jodhpur

June 5,2018 to july 25 2018

1
DECLARATION

I, Lalit Sharma hereby declare that this Sumer Training project titled “Employee Payment
Management System ” is a record of original work done by me.

I, further certify that this work has not formed the basis for the award of the
Degree/Diploma/Associateship/Fellowship or similar recognition to any candidate of any
university and no part of this report is reproduced as it is from any other source without
appropriate reference and permission.

SIGNATURE OF STUDENT
Lalit Sharma
th
4 Semester, IT
Roll No. – 16UITE9019

2
ACKNOWLEDGEMENT
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it possible,
whose constant guidance and encouragement crown all efforts with success.

I am grateful to our Teacher Mr. Alfozen shaikh for the guidance, inspiration and
constructive suggestions that helpful us in the preparation of this summer training project.
I also thank my colleagues who have helped in successful completion of the Summer
Training project.
I would also like to thank my respective HOD Dr. N.C. Barwar who gave me an opportunity
to present this project.

3
ABSTRACT

it is a Employee payment management system GUI application. It Is used to calculate the


employee salary with overtime bonus in weekly wages.

And also generate the employee payment slip with all details about that employee

some of the employees are doing overtime work in this application calculate the overtime
payment based on how many hours he work greater than than the daily hours.

By condition employees mainly weekly working 40 hours above 40 hours it will consider as a
overtime work it will benefit for the employees because earn some extra money add with the
whatever weekly salary.
By mainly it is used weekly wages and also overtime employee salary management system.

And also after giving hours per worked and wages per hour clicking the weekly wages button
then automatically shows tax, gross payable, overtimebonus and net payable .it is main
adavantage of this application.
And also generate employee weekly wages payable slip with date.

4
INDEX

Sr.No. TITLE PAGE NO


CHAPTER 1-
INTRODUCTION
PYTHON
Python Language Introduction

1 History of Python 6-11


Python Features
Python graphical user interfaces (GUIs)
PYTHON TKINTER GUI
Tkinter Widgets
Geometry Management

CHAPTER-2
IMPLEMENTATION
2 Technologies used 12 - 18
Language used
CODE OF PROJECT

CHAPTER-3 SCREENSHOTS
3 19 - 22

CHAPTER-4 CONCLUSION
4 23

5 CHAPTER-5 REFERENCES 24

5
CHAPTER 1-INTRODUCTION

PYTHON
Python Language Introduction
Python is a widely used general-purpose, high level programming language. It was initially
designed by Guido van Rossum in 1991 and developed by Python Software Foundation. It
was mainly developed for emphasis on code readability, and its syntax allows programmers
to express concepts in fewer lines of code.
Python is a programming language that lets you work quickly and integrate systems more
efficiently.
Python is a high-level, interpreted, interactive and object-oriented scripting language. Python
is designed to be highly readable. It uses English keywords frequently where as other
languages use punctuation, and it has fewer syntactical constructions than other languages.
• Python is Interpreted − Python is processed at runtime by the interpreter. You do
not need to compile your program before executing it. This is similar to PERL and PHP.
• Python is Interactive − You can actually sit at a Python prompt and interact with the
interpreter directly to write your programs.
• Python is Object-Oriented − Python supports Object-Oriented style or technique of
programming that encapsulates code within objects.
• Python is a Beginner's Language − Python is a great language for the beginner-level
programmers and supports the development of a wide range of applications from simple text
processing to WWW browsers to games.

History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at the
National Research Institute for Mathematics and Computer Science in the Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68,
Smalltalk, and Unix shell and other scripting languages.
Python is copyrighted. Like Perl, Python source code is now available under the GNU
General Public License (GPL).
Python is now maintained by a core development team at the institute, although Guido van
Rossum still holds a vital role in directing its progress.

6
Python Features
Python's features include −
• Easy-to-learn − Python has few keywords, simple structure, and a clearly defined
syntax. This allows the student to pick up the language quickly.
• Easy-to-read − Python code is more clearly defined and visible to the eyes.
• Easy-to-maintain − Python's source code is fairly easy-to-maintain.
• A broad standard library − Python's bulk of the library is very portable and cross-
platform compatible on UNIX, Windows, and Macintosh.
• Interactive Mode − Python has support for an interactive mode which allows
interactive testing and debugging of snippets of code.
• Portable − Python can run on a wide variety of hardware platforms and has the same
interface on all platforms.
• Extendable − You can add low-level modules to the Python interpreter. These
modules enable programmers to add to or customize their tools to be more efficient.
• Databases − Python provides interfaces to all major commercial databases.
• GUI Programming − Python supports GUI applications that can be created and
ported to many system calls, libraries and windows systems, such as Windows MFC,
Macintosh, and the X Window system of Unix.
• Scalable − Python provides a better structure and support for large programs than
shell scripting.
Apart from the above-mentioned features, Python has a big list of good features, few are
listed below −
• It supports functional and structured programming methods as well as OOP.
• It can be used as a scripting language or can be compiled to byte-code for building
large applications.
• It provides very high-level dynamic data types and supports dynamic type checking.
• IT supports automatic garbage collection.
• It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.

Python graphical user interfaces (GUIs)


• Tkinter − Tkinter is the Python interface to the Tk GUI toolkit shipped with Python.
We would look this option in this chapter.

7
• wxPython − This is an open-source Python interface for
wxWindows http://wxpython.org.
• JPython − JPython is a Python port for Java which gives Python scripts seamless
access to Java class libraries on the local machine http://www.jython.org.
There are many other interfaces available, which you can find them on the net.

PYTHON TKINTER GUI


Tkinter Programming

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides
a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented
interface to the Tk GUI toolkit.

Creating a GUI application using Tkinter is an easy task. All you need to do is perform the
following steps −
• Import the Tkinter module.
• Create the GUI application main window.
• Add one or more of the above-mentioned widgets to the GUI application.
• Enter the main event loop to take action against each event triggered by the user.

Example
#!/usr/bin/python

8
import tkinter
top = tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()

This would create a following window −

Tkinter Widgets
Tkinter provides various controls, such as buttons, labels and text boxes used in a GUI
application. These controls are commonly called widgets.
There are currently 15 types of widgets in Tkinter. We present these widgets as well as a brief
description in the following table –

Sr.No. Operator & Description

1 Button
The Button widget is used to display buttons in your application.

2 Canvas
The Canvas widget is used to draw shapes, such as lines, ovals, polygons and
rectangles, in your application.

3 Checkbutton
The Checkbutton widget is used to display a number of options as checkboxes.
The user can select multiple options at a time.

9
4 Entry
The Entry widget is used to display a single-line text field for accepting values
from a user.

5 Frame
The Frame widget is used as a container widget to organize other widgets.

6 Label
The Label widget is used to provide a single-line caption for other widgets. It can
also contain images.

7 Listbox
The Listbox widget is used to provide a list of options to a user.

8 Menubutton
The Menubutton widget is used to display menus in your application.

9 Menu
The Menu widget is used to provide various commands to a user. These
commands are contained inside Menubutton.

10 Message
The Message widget is used to display multiline text fields for accepting values
from a user.

11 Radiobutton
The Radiobutton widget is used to display a number of options as radio buttons.
The user can select only one option at a time.

12 Scale
The Scale widget is used to provide a slider widget.

13 Scrollbar
The Scrollbar widget is used to add scrolling capability to various widgets, such as
list boxes.

14 Text

10
The Text widget is used to display text in multiple lines.

15 Toplevel
The Toplevel widget is used to provide a separate window container.

16 Spinbox
The Spinbox widget is a variant of the standard Tkinter Entry widget, which can
be used to select from a fixed number of values.

17 PanedWindow
A PanedWindow is a container widget that may contain any number of panes,
arranged horizontally or vertically.

18 LabelFrame
A labelframe is a simple container widget. Its primary purpose is to act as a spacer
or container for complex window layouts.

19 tkMessageBox
This module is used to display message boxes in your applications.

Geometry Management
All Tkinter widgets have access to specific geometry management methods, which have the
purpose of organizing widgets throughout the parent widget area. Tkinter exposes the
following geometry manager classes: pack, grid, and place.
• The pack() Method − This geometry manager organizes widgets in blocks before
placing them in the parent widget.
• The grid() Method − This geometry manager organizes widgets in a table-like
structure in the parent widget.
• The place() Method − This geometry manager organizes widgets by placing them in a
specific position in the parent widget.

11
CHAPTER-2 IMPLEMENTATION

Technologies used - Python 3.6


Python Tkinter GUI
Language used - Python

CODE OF PROJECT
import time
import datetime
from tkinter import *
import tkinter.messagebox

root=Tk()
root.title("Employee payroll system")
root.geometry('1350x650+0+0')
root.configure(background="powder blue")

Tops=Frame(root,width=1350,height=50,bd=8,bg="powder blue")
Tops.pack(side=TOP)

f1=Frame(root,width=600,height=600,bd=8,bg="powder blue")
f1.pack(side=LEFT)
f2=Frame(root,width=300,height=700,bd=8,bg="powder blue")
f2.pack(side=RIGHT)

fla=Frame(f1,width=600,height=200,bd=8,bg="powder blue")
fla.pack(side=TOP)
flb=Frame(f1,width=300,height=600,bd=8,bg="powder blue")
flb.pack(side=TOP)

lblinfo=Label(Tops,font=('arial',45,'bold'),text="Employee Payment Management system


",bd=10,fg="green")

12
lblinfo.grid(row=0,column=0)

def exit():
exit=tkinter.messagebox.askyesno("Employee system","Do you want to exit the system")
if exit>0:
root.destroy()
return

def reset():
Name.set("")
Address.set("")
HoursWorked.set("")
wageshour.set("")
Payable.set("")
Taxable.set("")
NetPayable.set("")
GrossPayable.set("")
OverTimeBonus.set("")
Employer.set("")
NINumber.set("")
txtpayslip.delete("1.0",END)
def enterinfo():
txtpayslip.delete("1.0",END)
txtpayslip.insert(END,"\t\tPay Slip\n\n")
txtpayslip.insert(END,"Name :\t\t"+Name.get()+"\n\n")
txtpayslip.insert(END,"Address :\t\t"+Address.get()+"\n\n")
txtpayslip.insert(END,"Employer :\t\t"+Employer.get()+"\n\n")
txtpayslip.insert(END,"NI Number :\t\t"+NINumber.get()+"\n\n")
txtpayslip.insert(END,"Hours Worked :\t\t"+HoursWorked.get()+"\n\n")
txtpayslip.insert(END,"Net Payable :\t\t"+NetPayable.get()+"\n\n")
txtpayslip.insert(END,"Wages per hour :\t\t"+wageshour.get()+"\n\n")
txtpayslip.insert(END,"Tax Paid :\t\t"+Taxable.get()+"\n\n")
txtpayslip.insert(END,"Payable :\t\t"+Payable.get()+"\n\n")
def weeklywages():

13
txtpayslip.delete("1.0",END)
hoursworkedperweek=float(HoursWorked.get())
wagesperhours=float(wageshour.get())

paydue=wagesperhours*hoursworkedperweek
paymentdue="INR",str('%.2f'%(paydue))
Payable.set(paymentdue)

tax=paydue*0.2
taxable="INR",str('%.2f'%(tax))
Taxable.set(taxable)

netpay=paydue-tax
netpays="INR",str('%.2f'%(netpay))
NetPayable.set(netpays)

if hoursworkedperweek > 40:


overtimehours=(hoursworkedperweek-40)+wagesperhours*1.5
overtime="INR",str('%.2f'%(overtimehours))
OverTimeBonus.set(overtime)
elif hoursworkedperweek<=40:
overtimepay=(hoursworkedperweek-40)+wagesperhours*1.5
overtimehrs="INR",str('%.2f'%(overtimepay))
OverTimeBonus.set(overtimehrs)
return

#===============================Variables============================
==========
Name=StringVar()
Address=StringVar()
HoursWorked=StringVar()
wageshour=StringVar()
Payable=StringVar()
Taxable=StringVar()

14
NetPayable=StringVar()
GrossPayable=StringVar()
OverTimeBonus=StringVar()
Employer=StringVar()
NINumber=StringVar()
TimeOfOrder=StringVar()
DateOfOrder=StringVar()

DateOfOrder.set(time.strftime("%d/%m/%Y"))

#================= Label Widget


========================================

lblName=Label(fla,text="Name",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=0,column=0)
lblAddress=Label(fla,text="Address",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=0,column=2)
lblEmployer=Label(fla,text="Employer",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=1,column=0)
lblNINumber=Label(fla,text="NI
Number",font=('arial',16,'bold'),bd=20,fg="red",bg="powder blue").grid(row=1,column=2)
lblHoursWorked=Label(fla,text="Hours
Worked",font=('arial',16,'bold'),bd=20,fg="red",bg="powder blue").grid(row=2,column=0)
lblHourlyRate=Label(fla,text="Hourly
Rate",font=('arial',16,'bold'),bd=20,fg="red",bg="powder blue").grid(row=2,column=2)
lblTax=Label(fla,text="Tax",font=('arial',16,'bold'),bd=20,anchor='w',fg="red",bg="powder
blue").grid(row=3,column=0)
lblOverTime=Label(fla,text="OverTime",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=3,column=2)
lblGrossPay=Label(fla,text="GrossPay",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=4,column=0)
lblNetPay=Label(fla,text="Net Pay",font=('arial',16,'bold'),bd=20,fg="red",bg="powder
blue").grid(row=4,column=2)

15
#=========================== Entry Widget
=====================================

etxname=Entry(fla,textvariable=Name,font=('arial',16,'bold'),bd=16,width=22,justify='left')
etxname.grid(row=0,column=1)

etxaddress=Entry(fla,textvariable=Address,font=('arial',16,'bold'),bd=16,width=22,justify='lef
t')
etxaddress.grid(row=0,column=3)

etxemployer=Entry(fla,textvariable=Employer,font=('arial',16,'bold'),bd=16,width=22,justify
='left')
etxemployer.grid(row=1,column=1)

etxhoursworked=Entry(fla,textvariable=HoursWorked,font=('arial',16,'bold'),bd=16,width=22
,justify='left')
etxhoursworked.grid(row=2,column=1)

etxwagesperhours=Entry(fla,textvariable=wageshour,font=('arial',16,'bold'),bd=16,width=22,j
ustify='left')
etxwagesperhours.grid(row=2,column=3)

etxnin=Entry(fla,textvariable=NINumber,font=('arial',16,'bold'),bd=16,width=22,justify='left'
)
etxnin.grid(row=1,column=3)

etxgrosspay=Entry(fla,textvariable=Payable,font=('arial',16,'bold'),bd=16,width=22,justify='l
eft')
etxgrosspay.grid(row=4,column=1)

etxnetpay=Entry(fla,textvariable=NetPayable,font=('arial',16,'bold'),bd=16,width=22,justify='
left')
etxnetpay.grid(row=4,column=3)

16
etxtax=Entry(fla,textvariable=Taxable,font=('arial',16,'bold'),bd=16,width=22,justify='left')
etxtax.grid(row=3,column=1)

etxovertime=Entry(fla,textvariable=OverTimeBonus,font=('arial',16,'bold'),bd=16,width=22,j
ustify='left')
etxovertime.grid(row=3,column=3)

#=============================== Text Widget


===================================

payslip=Label(f2,textvariable=DateOfOrder,font=('arial',21,'bold'),fg="red",bg="powder
blue").grid(row=0,column=0)
txtpayslip=Text(f2,height=22,width=34,bd=16,font=('arial',13,'bold'),fg="green",bg="powder
blue")
txtpayslip.grid(row=1,column=0)

#=============================== Buttons
==================================

btnsalary=Button(flb,text='Weekly
Salary',padx=16,pady=16,bd=8,font=('arial',16,'bold'),width=14,fg="red",bg="powder
blue",command=weeklywages).grid(row=0,column=0)

btnreset=Button(flb,text='Reset',padx=16,pady=16,bd=8,font=('arial',16,'bold'),width=14,com
mand=reset,fg="red",bg="powder blue").grid(row=0,column=1)

btnpayslip=Button(flb,text='View
Payslip',padx=16,pady=16,bd=8,font=('arial',16,'bold'),width=14,command=enterinfo,fg="red
",bg="powder blue").grid(row=0,column=2)

17
btnexit=Button(flb,text='Exit
System',padx=16,pady=16,bd=8,font=('arial',16,'bold'),width=14,command=exit,fg="red",bg
="powder blue").grid(row=0,column=3)

root.mainloop()

18
CHAPTER-3 SCREENSHOTS

GUI – Main display window with name of the Employee


Payment Management System

1.GUI of Employee Payment Management System

it is a front end of the employee payment management


system

2.calculate the employee weekly wages with payment slip:-

19
after calculate the weekly wages with overtime work and
generate the payment slip

3.Add Buttons

20
1.weekly salary
after clicking this button shows tax,gross salary and net salary
and overtime bonus

2.reset
after clicking this button clear the all entries in this
application

3.view payslip
after clicking this button it will shows the payment slip in
the text box.

4.Exit system
after clicking this button it will shows one window ask yes or
no to destroy this application

4.exit system

21
22
CHAPTER-4 CONCLUSION

This project has really been faithful and informative. It has made us learn and understand the
many trivial concepts of Python Language. As we have used python Tkinter as a GUI it
provides various controls, such as buttons, labels and text boxes to build a user friendly
application.
The fast growing use of internet confirms the good future and scope of the proposed
project.
Finally it has taught us a valuable lifelong lesson about the improvements and
working and interacting in a group.

23
References

1. https://docs.python.org/3/library/tkinter.html
2. https://www.youtube.com/watch?v=YXPyB4XeYLA
3. https://www.tutorialspoint.com/python/python_gui_programming.html
4. http://effbot.org/tkinterbook/tkinter-index.htm
5. https://docs.python.org/3/library/tk.html
6. https://www.cmi.ac.in/~madhavan/courses/prog2-2015/docs/python-3.4.2-docs-
html/library/tkinter.html

24

You might also like