> For the complete documentation index, see [llms.txt](https://payana-saas.gitbook.io/payana-saas-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://payana-saas.gitbook.io/payana-saas-docs/produk/payroll-on-chain.md).

# Payroll & Pajak On-Chain

Setiap kali karyawan mengklaim gaji, potongan BPJS dan PPh21 dihitung otomatis oleh `CompanyVault` berdasarkan konfigurasi persentase (basis poin) yang ditetapkan HR — bukan dihitung manual di spreadsheet setelah gaji sudah cair.

## Alur perhitungan

1. HR mengatur `bpjsBps` dan `pph21Bps` untuk perusahaannya (misalnya 300 bps = 3% untuk BPJS).
2. Setiap `claimSalary()`, kontrak memotong persentase itu dari jumlah yang diklaim dan mencatatnya terpisah dari jumlah bersih yang diterima karyawan.
3. `payana-indexer` mengindeks setiap potongan ke tabel `complianceVault`, dikelompokkan per perusahaan per periode.
4. HR membuka dashboard **Compliance** untuk melihat akumulasi potongan bulan berjalan, dan bisa mengekspornya sebagai Excel atau CSV untuk pelaporan resmi ke BPJS/kantor pajak.
5. Setelah HR benar-benar menyetorkan potongan itu ke instansi terkait, mereka mencatat rekonsiliasi (jumlah yang benar-benar disetor) di sistem — sehingga ada perbandingan jelas antara "estimasi on-chain" dan "yang benar-benar dibayarkan".

## Kenapa ini penting

Perhitungan pajak yang tersebar di spreadsheet individual rawan human error dan sulit diaudit — tidak ada jejak yang membuktikan angka itu dihitung dengan aturan yang sama untuk semua karyawan, di semua waktu. Karena rumus potongan berjalan di smart contract yang sama untuk seluruh perusahaan, setiap potongan otomatis konsisten dan bisa ditelusuri ulang kapan saja langsung dari riwayat blockchain — tidak bergantung pada file yang bisa hilang atau berubah diam-diam.

## Dokumen resmi yang dihasilkan

Dari data yang sama, karyawan bisa mengunduh:

* **Slip gaji** per periode klaim
* **Bukti potong pajak (bukti pajak tahunan)** — diformat mengikuti format dokumen pajak Indonesia
* **Surat keterangan kerja** — untuk keperluan administratif eksternal

Detail cara mengambilnya: [Slip Gaji, Bukti Pajak & Surat Kerja](/payana-saas-docs/panduan-karyawan/dokumen-slip-pajak.md). Cara HR mengelola dan mengekspor laporan: [Compliance & Pajak](/payana-saas-docs/panduan-hr-and-legal/compliance-pajak.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://payana-saas.gitbook.io/payana-saas-docs/produk/payroll-on-chain.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
