> 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/phk-multi-sig.md).

# PHK Multi-Sig On-Chain

Pemutusan Hubungan Kerja (PHK) di Payana bukan keputusan sepihak yang bisa dieksekusi satu klik — prosesnya membutuhkan dua lapis otorisasi berbeda sebelum benar-benar berlaku, dan pesangon dihitung serta dicairkan otomatis oleh kontrak, bukan proses administratif terpisah.

## Alur dua lapis persetujuan

```mermaid
sequenceDiagram
    participant HR
    participant Legal
    participant CV as CompanyVault
    participant K as Karyawan

    HR->>CV: proposeTermination(alasan)
    Note over CV: Proposal berlaku 7 hari (TERMINATION_EXPIRY)
    Legal->>CV: approveTermination()
    Note over CV: Sekarang punya HR_ROLE + LEGAL_ROLE approval
    HR->>CV: executeTermination()
    CV->>CV: Hitung pesangon otomatis (severance)
    CV->>K: Transfer pesangon ke Smart Account
    CV-->>K: Stream gaji dihentikan
    Note over K: Surat Keputusan PHK tersedia untuk diunduh
```

1. **HR mengajukan proposal** (`proposeTermination`) — mencantumkan alasan (disimpan terenkripsi off-chain, hanya hash-nya yang tercatat on-chain untuk kerahasiaan).
2. **Legal meninjau dan menyetujui** (`approveTermination`) — lapis independen ini mencegah PHK dieksekusi sepihak oleh HR tanpa tinjauan kedua.
3. **Proposal punya masa berlaku 7 hari** (`TERMINATION_EXPIRY`) — kalau tidak dieksekusi dalam rentang itu, proposal kedaluwarsa dan harus diajukan ulang.
4. **HR mengeksekusi** (`executeTermination`) — hanya bisa dilakukan setelah persetujuan Legal ada dan sebelum masa berlaku habis.

## Pesangon otomatis

Begitu PHK dieksekusi, kontrak menghitung pesangon berdasarkan `DEFAULT_SEVERANCE_BPS` (2% dari akumulasi gaji sebagai basis default, dapat dikonfigurasi per perusahaan sesuai ketentuan kompensasi yang berlaku) dan mencairkannya langsung ke Smart Account karyawan — tidak menunggu proses payroll manual terpisah.

## Dokumen yang dihasilkan

Setelah eksekusi, sistem menghasilkan **Surat Keputusan PHK** resmi yang bisa diunduh karyawan maupun HR, mencantumkan alasan, tanggal pengajuan, tanggal efektif, dan rincian pesangon.

## Kenapa dua lapis persetujuan penting

Struktur multi-sig ini memastikan tidak ada satu pihak yang bisa memutuskan hubungan kerja sendirian tanpa tinjauan independen — sekaligus memberi karyawan kepastian bahwa proses ini mengikuti alur yang sama untuk semua orang, tercatat permanen, dan tidak bisa "dipercepat" atau dilewati di luar prosedur yang tertulis di kontrak.

Panduan penggunaan: [Memproses PHK](/payana-saas-docs/panduan-hr-and-legal/proses-phk.md) (untuk HR/Legal) dan [Jika Terjadi PHK](/payana-saas-docs/panduan-karyawan/proses-phk.md) (untuk karyawan).


---

# 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/phk-multi-sig.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.
