Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CW-045 · ภ.ง.ด.1 monthly withholding filing

Aperta
#44 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia da #43 per comprendere il confine tra riconciliazione, autorizzazioni, download e audit, poi esamina la specifica pubblicata da Revenue Department sul layout del testo e la questione irrisolta relativa alle regole in #36. Il lavoro è completato quando l’esportazione dell’azienda demo inizializzata corrisponde ai totali calcolati a mano, i test di layout e arrotondamento dei casi limite hanno esito positivo, i periodi non riconciliati restituiscono l’errore #43 e l’esportazione viene sottoposta ad audit.

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

Descrizione

P1 payroll phase-3

Priority P1 · Area payroll · Estimate M · Phase 3

Parent

#3 (CW-004), which bundled the monthly filing, the annual summary and the 50 ทวิ certificate. This is the monthly filing alone.

What to build

A payroll officer picks a month and downloads a ภ.ง.ด.1 file in the Revenue Department's text layout, ready to submit. Every Thai employer files this monthly; today the figures are correct in Cwork and have to be re-keyed into whatever is used to file them, which is the error-prone step this system exists to remove.

Rounding is where this goes wrong quietly, so it is tested against the Revenue Department's rules rather than left to whatever the language does by default.

Acceptance criteria

  • The export for the seeded demo company matches hand-computed totals, line by line.
  • The layout matches the published specification — field widths, ordering, padding.
  • Rounding follows the Revenue Department's rules, with tests covering the boundary cases.
  • A period that does not reconcile produces the error from #43, not a file.
  • The export is audited like any other.

Blocked by

  • #43 — reconciliation, permission, download and audit come from there; this ticket is the formatter.

The rules being formatted here have not been reviewed by anyone qualified — see #36.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
2h 56m
PR unite (30g)
4

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.