Project File On Payroll Management
Project File On Payroll Management
Project File On Payroll Management
_
Mr. Bansidhar
Computer Science Teacher
ACKNOWLEDGEMENT
PRATICULARS:-
Preface
Manual System
Proposed System
Introduction of Payroll Management
Signification of Payroll Management
Objectives and Scope of Project
Hardware and Software Requirements
Working Enviroment
Function and Modules used in program
Source Code
Conclusion
PREFACE
>Costly
>Maintenance Problem
>Time consuming
>Tedious
PROPOSED SYSTEM
This project holds the potential to significantly benefit not only but also their
employees, ensuring timely and accurate compensation while simplifying the
administrative workload. Furthermore, it provides an opportunity to gain practical
experience in software development, reinforcing the importance of information
technology in addressing real-world challenges.
3. Pay slip Generation: Generation of detailed pay slips for each employee,
ensuring transparency in compensation.
7. Compliance with Laws and Regulations: The system will ensure that all
payroll calculations and processes adhere to relevant labor laws, tax
regulations, and statutory requirements.
8. Training and Support: Provisions for training the personnel who will use
the system and providing ongoing support for system maintenance and
troubleshooting.
HARDWARE AND SOFTWARE
SPECIFICATIONS
HARDWARE
RAM: 2 GB or more
SOFTWARE
What is Python?
Uses of Python:
1. Web Development: Python is widely used to create dynamic and
interactive websites and web applications. Frameworks like Django
and Flask simplify web development by providing pre-built
components and tools for developers.
import datetime
mycursor = mydb.cursor()
mycursor.execute(sql)
mycursor = mydb.cursor()
job VARCHAR(15), \
BasicSalary INT, \
DA FLOAT, \
HRA FLOAT, \
GrossSalary FLOAT, \
Tax FLOAT, \
NetSalary FLOAT)"
mycursor.execute(query)
while True:
print('\n\n\n')
print("*" * 95)
print('\t\t\t\t\tMAIN MENU')
print("*" * 95)
choice = int(input())
if choice == 1:
try:
print('Enter employee information ......')
if mjob.upper() == 'OFFICER':
else:
rec = (mempno, mname, mjob, mbasic, mda, mhra, mgross, mtax, mnt)
query = "INSERT INTO " + TableName + " VALUES (%s, %s, %s, %s, %
%s, %s, %s, %s)"
mycursor.execute(query, rec)
mydb.commit()
print('Record added successfully......')
except Exception as e:
elif choice == 2:
try:
mycursor.execute(query)
except Exception as e:
elif choice == 3:
try:
mycursor.execute(query)
myrecord = mycursor.fetchone()
print(myrecord)
c = mycursor.rowcount
if c == 0:
print('Nothing to Display')
except Exception as e:
elif choice == 4:
try:
if ch.upper() == 'Y':
mydb.commit()
except Exception as e:
elif choice == 5:
try:
mycursor.execute(query)
mydb.commit()
c = mycursor.rowcount
if c > 0:
print('Deleting done')
else:
elif choice == 6:
try:
mycursor.execute(query)
myrecord = mycursor.fetchone()
c = mycursor.rowcount
if c == 0:
else:
mname = myrecord[1]
myjob = myrecord[2]
mbasic = myrecord[3]
print('----------------------------------------')
print('Type Value to modify below or just press Enter for no change ')
if len(x) > 0:
mname = x
if len(x) > 0:
myjob = x
if len(x) > 0:
mbasic = float(x)
query = 'UPDATE ' + TableName + ' SET name=' + "'" + mname + "'" + ', job='
+ "'" + myjob + "'" + ', basicsalary=' \
mycursor.execute(query)
mydb.commit()
print('Record Modified')
except Exception as e:
elif choice == 7:
try:
myrecords = mycursor.fetchall()
print("\n\n\n")
print("*" * 95)
print("*" * 95)
now = datetime.datetime.now()
print(now.strftime("%y-%m-%d %H:%M:%S"))
print()
print("-" * 95)
print("-" * 95)
print('%4d %-15s %-10s %8.2f %8.2f %8.2f %9.2f %8.2f %9.2f' % rec)
print("-" * 95)
except Exception as e:
elif choice == 8:
try:
mycursor.execute(query)
now = datetime.datetime.now()
print("\n\n\n")
print("-" * 95)
print("\t\t\t\tSalary Slip")
print("-" * 95)
print(now.strftime("%y-%m-%d %H:%M:%S"))
myrecords = mycursor.fetchall()
print('%4d %-15s %-10s %8.2f %8.2f %8.2f %9.2f %8.2f %9.2f' % rec)
except Exception as e:
elif choice == 9:
try:
mycursor.execute(query)
now = datetime.datetime.now()
print(now.strftime("%y-%m-%d %H:%M:%S"))
break
else:
print('Wrong Choice.........')
OUTPUT
Conclusion