Giter Site home page Giter Site logo

payroll-loading-for-peoplesoft's Introduction

Payload Loading For Peoplesoft

Load job payment items into the PS Staging table.

Setup using a virtual enviroment

  • Make the dependencies for the pip package cx_Oracle are already installed
  • Create the virtual enviroment python -m venv venv
  • Activate the virtual enviroment source venv/bin/activate
  • Install the pip packages: pip install -r requirements.txt

If using a config file

  • Create a config file: cp config.ini.dist config.ini
  • Add your database settings to config.ini

Running

Command Line Arguments

  • csv: Path to the CSV file to load
  • pay_start: Earns begin date, this needs to match the current PS Paysheets entry for the target pay group.
  • pay_end: Earns end date, this needs to match the current PS Paysheets entry for the target pay group.
  • pay_group: The PeopleSoft pay group these records are for.
  • company: The PeopleSoft company code these records are for.
  • --config: Path of a config containing db connection details. If this isn't given it will check your environmental variables for connection details.
  • --as-sysdba: Connect to the database as sysdba. Probably not something you want to do in production.

Environmental Variables

If a config file isn't passed in, the script will look at the following environmental variables for the database connection details.

  • PS_DATABASE_HOST
  • PS_DATABASE_USER
  • PS_DATABASE_PASSWORD
  • PS_DATABASE_SID
  • PS_DATABASE_PORT

Valid Column Headers

  • disable_direct_deposit - Disable Direct Deposit for this entry.
  • emplid- PS Emplid of job for this entry.
  • empl_rcd - PS Job empl_rcd for this entry, defaults to 0
  • seq_no - Sequence number for the staging table, defaults to 0. You are response for making sure the order in the csv file is correct
  • earning_code- Earning code for this entry.
  • hours- Hours to be loaded for this entry. Mutually exclusive with amount.
  • amount - Amount (money) to be loaded for this entry. Mutually exclusive with hours.
  • combo_code- Match the payment to an account string.

Example

python import-csv.py example.csv 2019-01-01 2019-01-31 PAYGROUP_CODE COMPANY_CODE --config config.ini

Useful stuff to read before you try to make this script work

The PeopleSoft Documentation related to the staging table this script loads into

Copyright Stuff

payroll-loading-for-peoplesoft's People

Contributors

jkelley-gfu avatar

Watchers

James Cloos avatar Ryan Backman avatar  avatar

Forkers

linux2647

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.