Skip to main content

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.

Tablebir_2316_inputs
Tenant-scopedYes — extends TenantOwned
Columns17
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/Bir2316Inputs.java

Columns​

FieldTypeColumnNullNotes
inputsIdIntegerinputs_id—primary key, generated
employeeIdIntegeremployee_id——
taxYearIntegertax_year——
employerTypeStringemployer_type——
prevEmployerTinStringprev_employer_tinYes—
prevEmployerNameStringprev_employer_nameYes—
prevEmployerAddressStringprev_employer_addressYes—
prevEmployerZipStringprev_employer_zipYes—
prevTaxableCompensationBigDecimalprev_taxable_compensationYes—
prevTaxWithheldBigDecimalprev_tax_withheldYes—
peraTaxCreditBigDecimalpera_tax_creditYes—
ctcNumberStringctc_numberYes—
ctcPlaceOfIssueStringctc_place_of_issueYes—
ctcDateIssuedLocalDatectc_date_issuedYes—
ctcAmountPaidBigDecimalctc_amount_paidYes—
updatedByStringupdated_byYes—
updatedAtLocalDateTimeupdated_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

MethodReturnsNotes
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.

ControllerBase pathEndpointsModule
GovernmentFormsController/api/government-forms16PH Statutory

Generated page

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/.