Overview
VendorsService (backend/src/vendors/vendors.service.ts) has findAll, findById, create, and update, but no delete() — a vendor created by mistake, or one the org no longer works with, can never be removed.
Tasks
Acceptance Criteria
Notes for Contributors
Comment below to be assigned.
Overview
VendorsService(backend/src/vendors/vendors.service.ts) hasfindAll,findById,create, andupdate, but nodelete()— a vendor created by mistake, or one the org no longer works with, can never be removed.Tasks
delete(id), guarding against removing a vendor still referenced by an openPurchaseOrder.vendorId(purchase_orderscurrently has no DB-level foreign key on this column — see [BE-134]).DELETE /vendors/:idintoVendorsController.Acceptance Criteria
DELETE /vendors/:idremoves a vendor with no open purchase orders.Notes for Contributors
Comment below to be assigned.