Service layers

Admin/AssetsController → AdminAssetsService → AssetService handles catalog and allocation. Employee/AssetsController → Employee/AssetsService provides the read-only self list. TenantDb records are CompanyId-scoped; People supplies Person associations.

CreateEmployeeAsset parses assignment_date with dd/MM/yyyy, falling back to the current date; parses nullable period/interval and sets Assigned. The interval guard checks assignment_period before parsing assignment_interval_id: one-sided input can drop a value or throw. Validate the pair; do not describe the defect as a supported optional combination.

Availability and release

CheckEmployeeAsset and duplicate/active-count queries guard capacity and existing live holder records. These prechecks do not by themselves establish race-safe allocation; concurrent assign tests and transaction/constraint inspection remain necessary.

ReleaseEmployeeAsset(s) marks Released and stamps ReleaseDate, freeing capacity. AutoReleaseDate has no release worker identified in the snapshot. Soft deletion and IsActive/IsDeleted filtering must preserve historical queries without making deleted items assignable.

Security checks

Admin operations use relevant can_*_assets grants; employee self-read names can_view_personal_assets. Manager/People views reuse person-scoped reads, so test actor-to-person scope as well as tenant scope. Class authorization is insufficient evidence of every check. Do not hard-delete history or release unrelated holders as a capacity workaround. Assignment email failure is separate from whether the allocation committed.

SQL deletion conflict — release is not delete

The original Stored procedures (index + full SQL dumps) contradicts the July Assets source's blanket soft-delete description. spDeleteAsset returns -2 when an active Assigned allocation exists; otherwise it hard-deletes EmployeeAssets for the item and the Assets row within a transaction. spDeleteEmployeeAsset directly hard-deletes the allocation by ID. These procedures do not themselves show caller/company authorization.

Their actual mapping to the deployed controller/service remains unverified. Do not promise history survives Delete, or use Delete as an equivalent to Release. Manual release is the intended allocation-status change; inspect the exact called method before removal. Preserve required evidence through an approved process, and treat destructive cleanup as restricted engineering work, not ordinary return guidance.

Source scope

Assets — business view · Assets — technical view · Assets — configuration · Assets — API reference · Assets — user journeys · Assets — runbook

July code/demo evidence was not retested here. Manual removal/release was not executed in the shared demo. AutoReleaseDate has no identified release worker; the period/interval guard is defective in the snapshot. Exact concurrency, batch atomicity, retirement guards and field-level grants require verification.