Skip to content

Feat/asset audit - #353

Merged
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
nafiuishaaq:feat/AssetAudit
Oct 4, 2025
Merged

Feat/asset audit#353
yusuftomilola merged 3 commits into
DistinctCodes:mainfrom
nafiuishaaq:feat/AssetAudit

Conversation

@nafiuishaaq

Copy link
Copy Markdown
Contributor

feat: Implement Asset Audits Module

This PR introduces the new asset audits module, allowing organizations to perform periodic audits to verify asset existence, condition, and accuracy of records.

Changes Implemented:

  • Asset Audits Module Generation:
    • asset-audits module generated in backend/src/asset-audits/.
  • Entity & DTOs Creation:
    • AssetAudit entity created with assetId, auditDate, auditedBy, status, and remarks fields.
    • CreateAssetAuditDto and UpdateAssetAuditDto created for data transfer.
    • Asset entity updated to include a one-to-many relationship with AssetAudit.
  • Service Methods and Endpoints:
    • AssetAuditsService implemented with CRUD operations (create, find all, find one, update, remove) for audit results.
    • AssetAuditsService includes a getAuditedVsMissingReport method for reporting.
    • AssetAuditsController implemented with API endpoints for all service methods, including /asset-audits for CRUD and /asset-audits/report/audited-vs-missing for the report.
  • Module Integration:
    • AssetAuditsModule imported into app.module.ts.
    • AssetsService exported from AssetsModule and a countAll method added to AssetsService to support the reporting feature.
  • Database Migration:
    • A manual TypeORM migration file (backend/src/migrations/1728000000001-CreateAssetAuditsTable.ts) was created to define the asset_audits table.

Acceptance Criteria Met:

  • Table asset_audits with assetId, auditDate, auditedBy, status, remarks.
  • API to record audit results.
  • Reports on audited vs. missing assets.
  • Generate asset-audits module.
  • Create entity & DTOs.
  • Add service methods and endpoints.

Closes #321

@vercel

vercel Bot commented Oct 4, 2025

Copy link
Copy Markdown

@nafiuishaaq is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yusuftomilola
yusuftomilola merged commit fe662b5 into DistinctCodes:main Oct 4, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Asset Audit Module

2 participants