CW-070 · Cash advances, deducted when they fall due

Chiusa
#73 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading the payroll code under backend/src/modules/payroll/ and the payroll UI under web/src/features/payroll/. Trace how pay runs, payslips, standing deductions, auditing, and closed periods are represented before deciding where advances fit. Done means recording cash advances, showing and deducting multiple advances, carrying excess amounts without negative net pay, auditing them, and preventing edits after closure.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

P0 payroll

Priority P0 · Area payroll · Estimate S–M · Pilot B, November 2026

Advances (เบิกล่วงหน้า) are how many labourers get through a pay period, and the pilot gives them. Payroll has standing deductions such as loan repayment, but nothing records "500 baht paid out on the 8th, to come off this period's pay".

Scope

  • HR records an advance: who, how much, on what date, and paid in cash.
  • It is deducted from the next pay run that includes that date, and shown as its own line on the payslip.
  • An advance larger than the period's pay is not allowed to push net pay below zero. What remains carries to the next period, and HR sees it.

Acceptance

  • Two advances in one period both appear on the payslip and both come off net pay.
  • An advance bigger than the period's pay leaves net pay at zero and carries the rest, visibly, to the next period.
  • Advances are audited, and a closed period's advances cannot be edited.

Files backend/src/modules/payroll/, web/src/features/payroll/


Tracked in docs/backlog.md.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
45m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SuruchBoss/Cwork

Tutte le issue di SuruchBoss/Cwork

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.