Bir2316Inputs
What BIR Form 2316 needs for one employee and year that payroll itself cannot know: the previous employer (items 16 to 18A, 22, 25B), the PERA tax credit (27), the employer type (15) and the CTC / valid ID the employee presents when signing.
| Table | bir_2316_inputs |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 17 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/Bir2316Inputs.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
inputsId | Integer | inputs_id | — | primary key, generated |
employeeId | Integer | employee_id | — | — |
taxYear | Integer | tax_year | — | — |
employerType | String | employer_type | — | — |
prevEmployerTin | String | prev_employer_tin | Yes | — |
prevEmployerName | String | prev_employer_name | Yes | — |
prevEmployerAddress | String | prev_employer_address | Yes | — |
prevEmployerZip | String | prev_employer_zip | Yes | — |
prevTaxableCompensation | BigDecimal | prev_taxable_compensation | Yes | — |
prevTaxWithheld | BigDecimal | prev_tax_withheld | Yes | — |
peraTaxCredit | BigDecimal | pera_tax_credit | Yes | — |
ctcNumber | String | ctc_number | Yes | — |
ctcPlaceOfIssue | String | ctc_place_of_issue | Yes | — |
ctcDateIssued | LocalDate | ctc_date_issued | Yes | — |
ctcAmountPaid | BigDecimal | ctc_amount_paid | Yes | — |
updatedBy | String | updated_by | Yes | — |
updatedAt | LocalDateTime | updated_at | — | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Repository
Bir2316InputsRepository
Declared over Bir2316Inputs with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/Bir2316InputsRepository.java
| Method | Returns | Notes |
|---|---|---|
findByEmployeeIdAndTaxYear(Integer employeeId, Integer taxYear) | Optional<Bir2316Inputs> | derived |
findByTaxYear(Integer taxYear) | List<Bir2316Inputs> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over Bir2316Inputs.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| GovernmentFormsController | /api/government-forms | 16 | PH Statutory |
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.