Skip to content

Feat procurement module#276

Merged
yusuftomilola merged 4 commits intoDistinctCodes:mainfrom
RUKAYAT-CODER:feat-procurement-module
Oct 1, 2025
Merged

Feat procurement module#276
yusuftomilola merged 4 commits intoDistinctCodes:mainfrom
RUKAYAT-CODER:feat-procurement-module

Conversation

@RUKAYAT-CODER
Copy link
Contributor

[BACKEND] Implement Procurement Module

📌 Description

The Procurement Module will handle the lifecycle of asset purchase requests and approvals, ensuring that procurement is properly tracked and linked to asset registration.


✅ Expected Behavior

  • Table procurement_requests with fields:
    • itemName
    • quantity
    • requestedBy
    • status
  • API endpoints to create and approve/reject procurement requests.
  • Approved procurements are automatically linked to asset registration.

🛠️ Tasks

  • Generate procurement module.
  • Define ProcurementRequest entity & DTOs.
  • Implement ProcurementService with request + approval logic.
    -[x] Add controller endpoints for:
    • Create procurement request
    • Approve/reject procurement request
  • Link approved requests to asset registration module.
  • Add unit tests for request and approval workflows.

📂 Impacted Files

  • src/modules/procurement/procurement.module.ts (new)
  • src/modules/procurement/entities/procurement-request.entity.ts (new)
  • src/modules/procurement/dto/*.dto.ts (new)
  • src/modules/procurement/procurement.service.ts (new)
  • src/modules/procurement/procurement.controller.ts (new)
  • test/procurement/*.spec.ts (new)

🧪 Acceptance Criteria

  • Procurement requests can be created with required fields.
  • Approve/reject endpoints correctly update status.
  • Approved procurements are linked to asset registration.
  • All tests pass with correct request + approval logic.

🏷️ Labels

backend procurement asset-management priority-high

close #226

@vercel
Copy link

vercel bot commented Sep 29, 2025

@RUKAYAT-CODER 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 57b04e7 into DistinctCodes:main Oct 1, 2025
5 of 6 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.

16. [BACKEND] Implement Procurement Module

2 participants