Coder Social home page Coder Social logo

blkluv / paystub-forms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimius-debug/jag-forms

0.0 0.0 0.0 83 KB

It's a paystub generator ,features dynamic responses and the ability to customize the theme. I'm also working on adding an integrated payroll system, along with some AI assistance and more form options

Home Page: https://jag-forms.streamlit.app/

Python 83.87% HTML 16.13%

paystub-forms's Introduction

paystub-generator

The Paystub Generator is a Python application that generates pay stubs as PDF files using the ReportLab library.

Installation

Before running the application, you need to install ReportLab. You can install it via pip:

pip install requierment.txt

Usage

The Paystub Generator expects data in the form of a dictionary, where each key-value pair corresponds to a piece of information to be included on the pay stub. Here's an example of what the input data might look like:

data = {
    "company_name": "John Doe Inc.",
    "address": "123 north street, New York, NY 10001",
    "check_no": '106',
    "employee_information":"Jane Doe",
    "ssn":" ***-**-1234",
    "reporting_period":"4/21/2023 - 5/5/2023",
    "EmployeeID":'146',
    "pay_date": "5/5/2023",
    "rate": 25.00,
    "hours": 200.00,
    "ytd_gross": 6000.00,
    "ytd_net": 6000.00,
    "current_total_deductions": 0.0,
    "gross_pay": 600.00,
    "ytd_deductions": 0.0,
    "net_pay": 600.00,
    "federal_tax": 0.0,
    "state_tax": 0.0,
    "social_security_dectuctions": 0.0,
    "other_deductions": 0.0,
}

To generate a pay stub, call the create_pay_stub function with the name of the PDF file you want to generate and the data dictionary:

create_pay_stub("pay_stub.pdf", data)

This will create a PDF file named pay_stub.pdf with the provided pay stub information.

Customization

You can customize the pay stub by modifying the create_pay_stub function in the script. This function determines how the pay stub is laid out and what information is included.

paystub-forms's People

Contributors

nimius-debug avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.