SuruchBoss / SuruchBoss/Cwork

CW-046 · ภ.ง.ด.1ก annual withholding summary

Open
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P1 payroll phase-3
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Priority P1 · Area payroll · Estimate S · Phase 3

Parent

#3 (CW-004).

What to build

A payroll officer picks a tax year and downloads ภ.ง.ด.1ก, the annual summary every Thai employer files. It is the year's monthly filings added up, so it reuses the aggregation and the rounding rules from #44 and differs in layout.

Acceptance criteria

  • The annual export equals the sum of the twelve monthly exports for the same year — asserted by a test, not by inspection.
  • The layout matches the published specification.
  • An employee who joined or left mid-year appears with the months they were actually paid.
  • A year with a month that does not reconcile is refused, naming the month.

Blocked by

  • #44 — the aggregation and rounding rules are built there, and duplicating them is how the two filings end up disagreeing.

If this is wanted sooner it can be unblocked and worked alongside #44, at the cost of writing the aggregation twice and reconciling it afterwards.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading #44 to understand the aggregation and rounding rules, then locate the existing monthly export entry point and its tests. Define the annual export against the published layout, covering mid-year employment, twelve-month equality, and reconciliation failures that name the month; completion requires tests for these acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, typescript
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.