> ## Documentation Index
> Fetch the complete documentation index at: https://docs.billbasket.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Payroll & salary

> Configure salary structures and run monthly payroll in BillBasket, using attendance and holidays to calculate what each employee is owed and export a CSV.

Configure how each employee is paid, then run payroll once a month to
calculate what everyone is owed. BillBasket factors in attendance and
holidays automatically, and lets you review a draft before anything is
final.

<Note>
  Employee HR is an optional add-on module — turn it on from Settings →
  Add-ons (Admin PIN required) if you don't see it in your menu.
</Note>

## See it on your device

<Tabs>
  <Tab title="Phone">
    <Frame>
      *Screenshot coming soon — Android phone view.*
    </Frame>
  </Tab>

  <Tab title="Tablet">
    <Frame>
      *Screenshot coming soon — Android tablet view.*
    </Frame>
  </Tab>

  <Tab title="Windows PC">
    <Frame>
      *Screenshot coming soon — Windows desktop view.*
    </Frame>
  </Tab>
</Tabs>

## Setting up an employee's salary

For each employee, choose a salary type:

* **Monthly fixed** — a set salary amount each month.
* **Prorated** — a monthly amount adjusted based on the days actually worked.
* **Daily-rate** — paid per day worked.

You can also add an optional commission percentage, so an employee earns a
share of the sales they make on top of their base salary.

## Running payroll

At the end of the month, run payroll from **Employee HR → Payroll**.
BillBasket calculates net pay per employee using:

* Their salary type and amount
* Attendance recorded for the month (Present, Absent, Half-day, Paid Leave)
* Holidays added for the month
* Any bonus or deduction adjustments you add manually

## Draft, finalize, export

Payroll is saved as a **draft** first, so you can review the numbers before
committing to them. Once you're confident it's correct, **finalize** it — a
finalized payroll can be exported as a CSV file.

## Try it: Sharma Kirana Store

<Steps>
  <Step title="Set up Suresh's salary">
    Rajesh Sharma opens **Employee HR → Payroll** and sets Suresh's salary
    type to **Monthly fixed**, with a 2% commission on the sales he makes.
  </Step>

  <Step title="Run payroll at month-end">
    At the end of the month, Rajesh runs payroll. BillBasket calculates
    Suresh's net pay using his attendance and any holidays that month.
  </Step>

  <Step title="Review the draft">
    Rajesh reviews the draft payroll. It's been a good month, so he adds a
    small bonus for Suresh before moving on.
  </Step>

  <Step title="Finalize and export">
    Once he's happy with the numbers, Rajesh finalizes the payroll and
    exports it as a CSV file for his records.
  </Step>
</Steps>
