Skip to main content

EwtTransaction

One month's expanded withholding on income payments to a payee under one ATC code.

Tableewt_transactions
Tenant-scopedYes — extends TenantOwned
Columns11
Relationships1
Sourcebackend/src/main/java/com/motorph/payroll/model/EwtTransaction.java

Columns​

FieldTypeColumnNullNotes
ewtTransactionIdIntegerewt_transaction_id—primary key, generated
periodMonthLocalDateperiod_month——
atcCodeStringatc_code——
incomePaymentBigDecimalincome_payment——
taxRateBigDecimaltax_rate——
taxWithheldBigDecimaltax_withheld——
remarksStringremarksYes—
createdByStringcreated_byYes—
createdDateLocalDateTimecreated_dateYes—
lastModifiedByStringlast_modified_byYes—
lastModifiedDateLocalDateTimelast_modified_dateYes—

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.

Relationships​

FieldKindTargetJoin columnRequired
payee@ManyToOneEwtPayeeewt_payee_idYes

Neighbourhood​

Repository​

EwtTransactionRepository​

Declared over EwtTransaction with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/EwtTransactionRepository.java

MethodReturnsNotes
findFiltered(@Param("payeeId") Integer payeeId, @Param("from") LocalDate from, @Param("to") LocalDate to, Pageable pageable)Page<EwtTransaction>explicit @Query
findAllByPeriodMonthBetweenOrderByPeriodMonthAsc(LocalDate from, LocalDate to)List<EwtTransaction>derived
existsByPayee_EwtPayeeId(Integer payeeId)booleanderived

Reached by​

These controllers hold — directly or through a service they depend on — a repository over EwtTransaction.

ControllerBase pathEndpointsModule
EwtController/api8PH Statutory
EwtFormsController/api/government-forms/ewt4PH 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/.