PurchaseReceivingItem
The PurchaseReceivingItem entity, mapped to the purchase_receiving_item table.
| Table | purchase_receiving_item |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 3 |
| Relationships | 3 |
| Source | backend/src/main/java/com/motorph/payroll/model/PurchaseReceivingItem.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
receivingItemId | Integer | receiving_item_id | — | primary key, generated |
quantityReceived | Integer | quantity_received | — | — |
unitCost | BigDecimal | unit_cost | Yes | — |
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
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
receiving | @ManyToOne | PurchaseReceiving | receiving_id | Yes |
item | @ManyToOne | InventoryItem | item_id | Yes |
location | @ManyToOne | WarehouseLocation | location_id | Yes |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| PurchaseReceiving | items | @OneToMany |
Neighbourhood
Repository
No Spring Data repository is declared over this entity. It is reached through another entity's association, through the EntityManager directly, or it is written only by a migration.
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/.